|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.taursys.servlet.respond.AbstractResponder com.taursys.servlet.respond.ContentResponder com.taursys.servlet.respond.StreamResponder
StreamResponder responds by sending its input stream to the response output stream. The inputStream must be open before the respond method is invoked. The respond method will close the inputStream upon completion. You must reset or re-open the inputStream before this response object can respond again.
Constructor Summary | |
StreamResponder()
Constructs a new StreamResponder |
Method Summary | |
java.io.InputStream |
getInputStream()
Get the inputStream which will be used for the response. |
void |
respond()
Responds by sending given input stream to response output stream. |
void |
setInputStream(java.io.InputStream newInputStream)
Set the inputStream which will be used for the response. |
Methods inherited from class com.taursys.servlet.respond.ContentResponder |
getContentType, setContentType |
Methods inherited from class com.taursys.servlet.respond.AbstractResponder |
getServletForm, setServletForm |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StreamResponder()
Method Detail |
public void respond() throws java.lang.Exception
respond
in interface Responder
respond
in class AbstractResponder
java.lang.Exception
- if problem respondingpublic void setInputStream(java.io.InputStream newInputStream)
respond
method upon completion.
newInputStream
- which will be used for the response.public java.io.InputStream getInputStream()
respond
method upon completion.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |