Package | Description |
---|---|
org.apache.wicket.request.resource | |
org.apache.wicket.request.resource.caching | |
org.apache.wicket.resource |
Locale aware resouce loaders.
|
org.apache.wicket.resource.bundles |
Modifier and Type | Method and Description |
---|---|
AbstractResource.ResourceResponse |
AbstractResource.ResourceResponse.disableCaching()
Disables caching.
|
protected AbstractResource.ResourceResponse |
BaseDataResource.newResourceResponse(IResource.Attributes attributes) |
protected AbstractResource.ResourceResponse |
ContextRelativeResource.newResourceResponse(IResource.Attributes attributes) |
protected AbstractResource.ResourceResponse |
ResourceStreamResource.newResourceResponse(IResource.Attributes attributes) |
protected AbstractResource.ResourceResponse |
DynamicImageResource.newResourceResponse(IResource.Attributes attributes) |
protected abstract AbstractResource.ResourceResponse |
AbstractResource.newResourceResponse(IResource.Attributes attributes)
Override this method to return a
AbstractResource.ResourceResponse for the request. |
protected AbstractResource.ResourceResponse |
PackageResource.newResourceResponse(IResource.Attributes attributes)
creates a new resource response based on the request attributes
|
AbstractResource.ResourceResponse |
AbstractResource.ResourceResponse.setCacheDuration(Duration duration)
Controls how long this response may be cached.
|
AbstractResource.ResourceResponse |
AbstractResource.ResourceResponse.setCacheDurationToMaximum()
Sets caching to maximum available duration.
|
AbstractResource.ResourceResponse |
AbstractResource.ResourceResponse.setCacheScope(WebResponse.CacheScope scope)
controls what kind of caches are allowed to cache the response
resources are only cached at all if caching is enabled by setting a cache duration.
|
AbstractResource.ResourceResponse |
AbstractResource.ResourceResponse.setContentDisposition(ContentDisposition contentDisposition)
Determines whether the resource will be inline or an attachment.
|
AbstractResource.ResourceResponse |
AbstractResource.ResourceResponse.setContentLength(long contentLength)
Sets the content length (in bytes) of the data.
|
AbstractResource.ResourceResponse |
AbstractResource.ResourceResponse.setContentType(String contentType)
Sets the content type for the resource.
|
AbstractResource.ResourceResponse |
AbstractResource.ResourceResponse.setError(Integer errorCode)
Sets the error code for resource.
|
AbstractResource.ResourceResponse |
AbstractResource.ResourceResponse.setError(Integer errorCode,
String errorMessage)
Sets the error code and message for resource.
|
AbstractResource.ResourceResponse |
AbstractResource.ResourceResponse.setFileName(String fileName)
Sets the file name of the resource.
|
AbstractResource.ResourceResponse |
AbstractResource.ResourceResponse.setLastModified(Time lastModified)
Sets the last modified data of the resource.
|
AbstractResource.ResourceResponse |
AbstractResource.ResourceResponse.setStatusCode(Integer statusCode)
Sets the status code for resource.
|
AbstractResource.ResourceResponse |
AbstractResource.ResourceResponse.setTextEncoding(String textEncoding)
Sets the text encoding for the resource.
|
AbstractResource.ResourceResponse |
AbstractResource.ResourceResponse.setWriteCallback(AbstractResource.WriteCallback writeCallback)
Sets the
AbstractResource.WriteCallback . |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractResource.configureCache(AbstractResource.ResourceResponse data,
IResource.Attributes attributes)
Configure the web response header for client cache control.
|
protected void |
BaseDataResource.configureResponse(AbstractResource.ResourceResponse response,
IResource.Attributes attributes)
Post-configures the given response, e.g.
|
protected void |
DynamicImageResource.configureResponse(AbstractResource.ResourceResponse response,
IResource.Attributes attributes) |
protected void |
AbstractResource.setResponseHeaders(AbstractResource.ResourceResponse resourceResponse,
IResource.Attributes attributes)
Sets the response header of resource response to the response received from the attributes
|
Modifier and Type | Method and Description |
---|---|
void |
FilenameWithVersionResourceCachingStrategy.decorateResponse(AbstractResource.ResourceResponse response,
IStaticCacheableResource resource)
set resource caching to maximum and set cache-visibility to 'public'
|
void |
IResourceCachingStrategy.decorateResponse(AbstractResource.ResourceResponse response,
IStaticCacheableResource resource)
decorate resource response
|
void |
NoOpResourceCachingStrategy.decorateResponse(AbstractResource.ResourceResponse response,
IStaticCacheableResource resource) |
void |
QueryStringWithVersionResourceCachingStrategy.decorateResponse(AbstractResource.ResourceResponse response,
IStaticCacheableResource resource) |
Modifier and Type | Method and Description |
---|---|
protected AbstractResource.ResourceResponse |
FileSystemResource.createResourceResponse(Path path)
Creates a resource response based on the given attributes
|
protected AbstractResource.ResourceResponse |
FileSystemResource.newResourceResponse(IResource.Attributes attributes)
Creates a new resource response and reads the given path
|
Modifier and Type | Method and Description |
---|---|
protected AbstractResource.ResourceResponse |
ConcatBundleResource.newResourceResponse(IResource.Attributes attributes) |
Copyright © 2006–2021 Apache Software Foundation. All rights reserved.