|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.request.target.resource.ResourceStreamRequestTarget
public class ResourceStreamRequestTarget
Request target that responds by sending its resource stream.
Constructor Summary | |
---|---|
ResourceStreamRequestTarget(IResourceStream resourceStream)
Construct. |
|
ResourceStreamRequestTarget(IResourceStream resourceStream,
String fileName)
Construct. |
Method Summary | |
---|---|
protected void |
configure(RequestCycle requestCycle,
Response response,
IResourceStream resourceStream)
Configures the response, default by setting the content type and length and content disposition (in case the fileName property was set). |
void |
detach(RequestCycle requestCycle)
This method is called at the end of a request cycle to indicate that processing is done and that cleaning up of the subject(s) of this target may be done. |
boolean |
equals(Object obj)
|
String |
getFileName()
|
IResourceStream |
getResourceStream()
Gets the resource stream for the response. |
int |
hashCode()
|
void |
respond(RequestCycle requestCycle)
Responds by sending the contents of the resource stream. |
ResourceStreamRequestTarget |
setFileName(String fileName)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ResourceStreamRequestTarget(IResourceStream resourceStream)
resourceStream
- the resource stream for the responsepublic ResourceStreamRequestTarget(IResourceStream resourceStream, String fileName)
resourceStream
- the resource stream for the responsefileName
- Method Detail |
---|
public void detach(RequestCycle requestCycle)
IRequestTarget
detach
in interface IRequestTarget
requestCycle
- the current request cycleIRequestTarget.detach(org.apache.wicket.RequestCycle)
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public String getFileName()
public final IResourceStream getResourceStream()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public void respond(RequestCycle requestCycle)
respond
in interface IRequestTarget
requestCycle
- the current request cycleIRequestTarget.respond(org.apache.wicket.RequestCycle)
public ResourceStreamRequestTarget 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()
protected void configure(RequestCycle requestCycle, Response response, IResourceStream resourceStream)
requestCycle
- response
- the responseresourceStream
- the resource stream that will be rendered
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |