|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwicket.request.target.resource.ResourceStreamRequestTarget
public class ResourceStreamRequestTarget
Request target that responds by sending it's resources stream.
| Constructor Summary | |
|---|---|
ResourceStreamRequestTarget(IResourceStream resourceStream)
Construct. |
|
ResourceStreamRequestTarget(IResourceStream resourceStream,
java.lang.String responseType)
Deprecated. Will be removed in 2.0. Response type can be determined from resource stream |
|
| Method Summary | |
|---|---|
protected void |
configure(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 alled on 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(java.lang.Object obj)
|
java.lang.String |
getFileName()
|
java.lang.Object |
getLock(RequestCycle requestCycle)
Gets the lock to be used for synchronization. |
IResourceStream |
getResourceStream()
Gets the resource stream for the response. |
java.lang.String |
getResponseType()
Deprecated. Will be removed in 2.0. Response type can be determined by looking at the resource stream |
int |
hashCode()
|
void |
respond(RequestCycle requestCycle)
Responds by sending the contents of the resource stream. |
void |
setFileName(java.lang.String fileName)
|
java.lang.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 response
public ResourceStreamRequestTarget(IResourceStream resourceStream,
java.lang.String responseType)
resourceStream - the resource stream for the responseresponseType - the response type, eg 'text/html'| Method Detail |
|---|
public void detach(RequestCycle requestCycle)
IRequestTarget
detach in interface IRequestTargetrequestCycle - the current request cycleIRequestTarget.detach(wicket.RequestCycle)public boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public java.lang.String getFileName()
public java.lang.Object getLock(RequestCycle requestCycle)
IRequestTarget
getLock in interface IRequestTargetrequestCycle - the current request cycle
IRequestTarget.getLock(RequestCycle)public final IResourceStream getResourceStream()
public final java.lang.String getResponseType()
public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public void respond(RequestCycle requestCycle)
respond in interface IRequestTargetrequestCycle - the current request cycleIRequestTarget.respond(wicket.RequestCycle)public void setFileName(java.lang.String fileName)
fileName - Optional filename, used to set the content disposition header.
Only meaningful when using with web requests.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
protected void configure(Response response,
IResourceStream resourceStream)
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 | |||||||||