|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.request.handler.resource.ResourceStreamRequestHandler
public class ResourceStreamRequestHandler
Request target that responds by sending its resource stream.
Constructor Summary | |
---|---|
ResourceStreamRequestHandler(IResourceStream resourceStream)
Construct. |
|
ResourceStreamRequestHandler(IResourceStream resourceStream,
String fileName)
Construct. |
Method Summary | |
---|---|
protected void |
configure(ResourceStreamResource resource)
Configures the ResourceStreamResource used by this request handler |
void |
detach(IRequestCycle requestCycle)
|
boolean |
equals(Object obj)
|
Duration |
getCacheDuration()
|
ContentDisposition |
getContentDisposition()
|
String |
getFileName()
|
ResourceStreamLogData |
getLogData()
|
IResourceStream |
getResourceStream()
Gets the resource stream for the response. |
int |
hashCode()
|
void |
respond(IRequestCycle requestCycle)
Responds by sending the contents of the resource stream. |
ResourceStreamRequestHandler |
setCacheDuration(Duration cacheDuration)
|
ResourceStreamRequestHandler |
setContentDisposition(ContentDisposition contentDisposition)
|
ResourceStreamRequestHandler |
setFileName(String fileName)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ResourceStreamRequestHandler(IResourceStream resourceStream)
resourceStream
- the resource stream for the responsepublic ResourceStreamRequestHandler(IResourceStream resourceStream, String fileName)
resourceStream
- the resource stream for the responsefileName
- Method Detail |
---|
public void detach(IRequestCycle requestCycle)
detach
in interface IRequestHandler
public ResourceStreamLogData getLogData()
getLogData
in interface ILoggableRequestHandler
public final String getFileName()
public final IResourceStream getResourceStream()
public void respond(IRequestCycle requestCycle)
respond
in interface IRequestHandler
IRequestHandler.respond(org.apache.wicket.request.IRequestCycle)
protected void configure(ResourceStreamResource resource)
resource
- the resource to configurepublic int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public final ResourceStreamRequestHandler setFileName(String fileName)
fileName
- Optional filename, used to set the content disposition header. Only meaningful
when using with web requests.
public String toString()
toString
in class Object
Object.toString()
public final ContentDisposition getContentDisposition()
public final ResourceStreamRequestHandler setContentDisposition(ContentDisposition contentDisposition)
contentDisposition
-
public Duration getCacheDuration()
public ResourceStreamRequestHandler setCacheDuration(Duration cacheDuration)
cacheDuration
- the duration for which the resource will be cached by the browser
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |