|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.ServletResponseWrapper
org.norther.tammi.spray.filter.chain.ServletResponseWrapper
org.norther.tammi.spray.protocol.chain.HttpRelayResponse
public final class HttpRelayResponse
A HTTP relay response.
| Constructor Summary | |
|---|---|
HttpRelayResponse()
Constructs a new response. |
|
HttpRelayResponse(ServletResponse res)
Constructs a new response with a wrapped one. |
|
| Method Summary | |
|---|---|
void |
dispose()
Disposes the object after use. |
boolean |
isRelaying()
Checks the relaying status. |
void |
relay(InputStream in)
Relays the response. |
void |
run()
Relays until the stream is closed. |
| Methods inherited from class org.norther.tammi.spray.filter.chain.ServletResponseWrapper |
|---|
completed, disposed, filtered, getExtension, getFilterChain, getFilteredRequest, getFilteredResponse, isDisposed, recycle, recycle, recycled |
| Methods inherited from class javax.servlet.ServletResponseWrapper |
|---|
flushBuffer, getBufferSize, getCharacterEncoding, getContentType, getLocale, getOutputStream, getResponse, getWriter, isCommitted, reset, resetBuffer, setBufferSize, setCharacterEncoding, setContentLength, setContentType, setLocale, setResponse |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HttpRelayResponse()
public HttpRelayResponse(ServletResponse res)
res - the wrapped response.| Method Detail |
|---|
public void dispose()
Recyclable
dispose in interface Recyclabledispose in class ServletResponseWrapperpublic boolean isRelaying()
public void relay(InputStream in)
throws IOException
in - the relayed input stream.
IOException - for parsing errors.public void run()
run in interface Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||