org.apache.wicket.request.resource
Class ResourceStreamResource
java.lang.Object
org.apache.wicket.request.resource.AbstractResource
org.apache.wicket.request.resource.ResourceStreamResource
- All Implemented Interfaces:
- Serializable, IClusterable, IResource
public class ResourceStreamResource
- extends AbstractResource
TODO javadoc
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceStreamResource
public ResourceStreamResource(IResourceStream stream)
- Construct.
- Parameters:
stream
-
setFileName
public ResourceStreamResource setFileName(String fileName)
- Parameters:
fileName
-
- Returns:
- this
setContentDisposition
public ResourceStreamResource setContentDisposition(ContentDisposition contentDisposition)
- Parameters:
contentDisposition
-
- Returns:
- thsi
setTextEncoding
public ResourceStreamResource setTextEncoding(String textEncoding)
- Parameters:
textEncoding
-
- Returns:
- this
getCacheDuration
public Duration getCacheDuration()
- Returns:
- the duration for which the resource will be cached by the browser
setCacheDuration
public ResourceStreamResource setCacheDuration(Duration cacheDuration)
- Parameters:
cacheDuration
- the duration for which the resource will be cached by the browser
- Returns:
- this component
getResourceStream
protected IResourceStream getResourceStream()
- Lazy or dynamic initialization of the wrapped IResourceStream(Writer)
- Returns:
- the underlying IResourceStream
newResourceResponse
protected AbstractResource.ResourceResponse newResourceResponse(IResource.Attributes attributes)
- Description copied from class:
AbstractResource
- Override this method to return a
AbstractResource.ResourceResponse
for the request.
- Specified by:
newResourceResponse
in class AbstractResource
- Parameters:
attributes
- request attributes
- Returns:
- resource data instance
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.