Package | Description |
---|---|
org.restlet | |
org.restlet.data | |
org.restlet.engine.adapter | |
org.restlet.engine.header | |
org.restlet.ext.nio.internal.request | |
org.restlet.ext.sip.internal | |
org.restlet.resource |
Modifier and Type | Method and Description |
---|---|
List<CacheDirective> |
Message.getCacheDirectives()
Returns the cache directives.
Note that when used with HTTP connectors, this property maps to the "Cache-Control" header. |
Modifier and Type | Method and Description |
---|---|
void |
Message.setCacheDirectives(List<CacheDirective> cacheDirectives)
Sets the cache directives.
|
Modifier and Type | Method and Description |
---|---|
static CacheDirective |
CacheDirective.maxAge(int maxAge)
Creates a "max-age" directive.
|
static CacheDirective |
CacheDirective.maxStale()
Creates a "max-stale" directive.
|
static CacheDirective |
CacheDirective.maxStale(int maxStale)
Creates a "max-stale" directive.
|
static CacheDirective |
CacheDirective.minFresh(int minFresh)
Creates a "min-fresh" directive.
|
static CacheDirective |
CacheDirective.mustRevalidate()
Creates a "must-revalidate" directive.
|
static CacheDirective |
CacheDirective.noCache()
Creates a "no-cache" directive.
|
static CacheDirective |
CacheDirective.noCache(List<String> fieldNames)
Creates a "no-cache" directive.
|
static CacheDirective |
CacheDirective.noCache(String fieldName)
Creates a "no-cache" directive.
|
static CacheDirective |
CacheDirective.noStore()
Creates a "no-store" directive.
|
static CacheDirective |
CacheDirective.noTransform()
Creates a "no-transform" directive.
|
static CacheDirective |
CacheDirective.onlyIfCached()
Creates a "onlyIfCached" directive.
|
static CacheDirective |
CacheDirective.privateInfo()
Creates a "private" directive.
|
static CacheDirective |
CacheDirective.privateInfo(List<String> fieldNames)
Creates a "private" directive.
|
static CacheDirective |
CacheDirective.privateInfo(String fieldName)
Creates a "private" directive.
|
static CacheDirective |
CacheDirective.proxyMustRevalidate()
Creates a "proxy-revalidate" directive.
|
static CacheDirective |
CacheDirective.publicInfo()
Creates a "public" directive.
|
static CacheDirective |
CacheDirective.sharedMaxAge(int sharedMaxAge)
Creates a "s-maxage" directive.
|
Modifier and Type | Method and Description |
---|---|
List<CacheDirective> |
HttpRequest.getCacheDirectives() |
Modifier and Type | Method and Description |
---|---|
CacheDirective |
CacheDirectiveReader.readValue() |
Modifier and Type | Method and Description |
---|---|
CacheDirectiveWriter |
CacheDirectiveWriter.append(CacheDirective directive) |
Modifier and Type | Method and Description |
---|---|
static void |
CacheDirectiveReader.addValues(Header header,
Collection<CacheDirective> collection)
Adds values to the given collection.
|
static String |
CacheDirectiveWriter.write(List<CacheDirective> directives)
Writes a list of cache directives with a comma separator.
|
Modifier and Type | Method and Description |
---|---|
List<CacheDirective> |
HttpInboundRequest.getCacheDirectives() |
Modifier and Type | Method and Description |
---|---|
List<CacheDirective> |
SipInboundRequest.getCacheDirectives()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
List<CacheDirective> |
Resource.getRequestCacheDirectives()
Returns the request cache directives.
|
List<CacheDirective> |
Resource.getResponseCacheDirectives()
Returns the response cache directives.
|
Copyright © 2005–2016. All rights reserved.