|
||||||||||
| 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.connector.chain.AbstractConnectorResponse
public abstract class AbstractConnectorResponse
An abstract implementation of the connector response. It implements the
javax.servlet.ServletResponse interface by applying methods
provided by Connection.
| Constructor Summary | |
|---|---|
AbstractConnectorResponse()
Constructs a new response. |
|
AbstractConnectorResponse(ServletResponse res)
Constructs a new response with a wrapped one. |
|
| Method Summary | |
|---|---|
void |
dispose()
Disposes the object after use. |
void |
disposed()
A call back indicating that this instance is not needed any more and can be disposed. |
void |
flushBuffer()
|
int |
getBufferSize()
|
protected int |
getByteCount()
Gets the byte count of the output stream. |
String |
getCharacterEncoding()
|
String |
getContentType()
|
Locale |
getLocale()
|
ServletOutputStream |
getOutputStream()
|
protected abstract OutputStream |
getRawOutputStream()
Gets the raw output stream. |
PrintWriter |
getWriter()
|
boolean |
isCommitted()
|
void |
reset()
|
void |
resetBuffer()
|
void |
setBufferSize(int size)
|
void |
setCharacterEncoding(String enc)
|
void |
setContentLength(int value)
|
void |
setContentType(String type)
|
void |
setLocale(Locale locale)
|
| Methods inherited from class org.norther.tammi.spray.filter.chain.ServletResponseWrapper |
|---|
completed, filtered, getExtension, getFilterChain, getFilteredRequest, getFilteredResponse, isDisposed, recycle, recycle, recycled |
| Methods inherited from class javax.servlet.ServletResponseWrapper |
|---|
getResponse, setResponse |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractConnectorResponse()
public AbstractConnectorResponse(ServletResponse res)
res - the wrapped response.| Method Detail |
|---|
public void dispose()
Recyclable
dispose in interface Recyclabledispose in class ServletResponseWrapperpublic void disposed()
Poolable
disposed in interface Poolabledisposed in class ServletResponseWrapperpublic void setContentLength(int value)
setContentLength in interface ServletResponsesetContentLength in class ServletResponseWrapperpublic String getContentType()
getContentType in interface ServletResponsegetContentType in class ServletResponseWrapperpublic void setContentType(String type)
setContentType in interface ServletResponsesetContentType in class ServletResponseWrapperpublic String getCharacterEncoding()
getCharacterEncoding in interface ServletResponsegetCharacterEncoding in class ServletResponseWrapperpublic void setCharacterEncoding(String enc)
setCharacterEncoding in interface ServletResponsesetCharacterEncoding in class ServletResponseWrapperpublic Locale getLocale()
getLocale in interface ServletResponsegetLocale in class ServletResponseWrapperpublic void setLocale(Locale locale)
setLocale in interface ServletResponsesetLocale in class ServletResponseWrapper
public ServletOutputStream getOutputStream()
throws IOException
getOutputStream in interface ServletResponsegetOutputStream in class ServletResponseWrapperIOException
public PrintWriter getWriter()
throws IOException
getWriter in interface ServletResponsegetWriter in class ServletResponseWrapperIOExceptionpublic boolean isCommitted()
isCommitted in interface ServletResponseisCommitted in class ServletResponseWrapperpublic void reset()
reset in interface ServletResponsereset in class ServletResponseWrapperpublic void resetBuffer()
resetBuffer in interface ServletResponseresetBuffer in class ServletResponseWrapper
public void flushBuffer()
throws IOException
flushBuffer in interface ServletResponseflushBuffer in class ServletResponseWrapperIOExceptionpublic int getBufferSize()
getBufferSize in interface ServletResponsegetBufferSize in class ServletResponseWrapperpublic void setBufferSize(int size)
setBufferSize in interface ServletResponsesetBufferSize in class ServletResponseWrapperprotected abstract OutputStream getRawOutputStream()
protected int getByteCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||