Package rife.servlet
Class HttpResponse
java.lang.Object
rife.engine.AbstractResponse
rife.servlet.HttpResponse
- All Implemented Interfaces:
Response
-
Field Summary
Fields inherited from class rife.engine.AbstractResponse
contentType_, gzipByteOutputStream_, gzipOutputStream_, lastElement_, outputStream_, responseOutputStream_, textBuffer_, textBufferEnabled_ -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected OutputStreamThis method needs to be implemented by the extending back-end class and will be called byAbstractResponseduring the RIFE2-specific additional behaviour.protected void_setContentType(String contentType) This method needs to be implemented by the extending back-end class and will be called byAbstractResponseduring the RIFE2-specific additional behaviour.voidvoidaddDateHeader(String name, long date) voidvoidaddIntHeader(String name, int integer) booleancontainsHeader(String name) Retrieves the underlyingHttpServletResponse.voidsendError(int statusCode) voidvoidsendRedirect(String location) voidsetContentLength(int length) voidsetDateHeader(String name, long date) voidvoidsetIntHeader(String name, int value) voidvoidsetStatus(int statusCode) Methods inherited from class rife.engine.AbstractResponse
clearBuffer, close, enableTextBuffer, flush, getContentType, getLastElement, getOutputStream, getRequest, isContentTypeSet, isTextBufferEnabled, print, print, print, setContentType, setLastElement
-
Constructor Details
-
HttpResponse
-
-
Method Details
-
_setContentType
Description copied from class:AbstractResponseThis method needs to be implemented by the extending back-end class and will be called byAbstractResponseduring the RIFE2-specific additional behaviour. It behaves exactly like itscounter-part in the Response interface.- Specified by:
_setContentTypein classAbstractResponse- See Also:
-
_getOutputStream
Description copied from class:AbstractResponseThis method needs to be implemented by the extending back-end class and will be called byAbstractResponseduring the RIFE2-specific additional behaviour. It behaves exactly like itscounter-part in the Request interface.- Specified by:
_getOutputStreamin classAbstractResponse- Throws:
IOException- See Also:
-
addCookie
Description copied from interface:Response -
addHeader
Description copied from interface:Response -
addDateHeader
Description copied from interface:Response -
addIntHeader
Description copied from interface:Response -
containsHeader
Description copied from interface:Response -
sendError
Description copied from interface:Response- Throws:
EngineException
-
sendError
Description copied from interface:Response- Throws:
EngineException
-
sendRedirect
Description copied from interface:Response- Throws:
EngineException
-
setDateHeader
Description copied from interface:Response -
setHeader
Description copied from interface:Response -
setIntHeader
Description copied from interface:Response -
setStatus
public void setStatus(int statusCode) Description copied from interface:Response -
encodeURL
Description copied from interface:Response -
setLocale
Description copied from interface:Response -
getLocale
Description copied from interface:Response -
getCharacterEncoding
Description copied from interface:Response -
setContentLength
public void setContentLength(int length) Description copied from interface:Response -
getWriter
Description copied from interface:Response- Throws:
IOException
-
getHttpServletResponse
Description copied from interface:ResponseRetrieves the underlyingHttpServletResponse.- Returns:
- the underlying
HttpServletResponseinstance; ornullif this response isn't backed byHttpServletResponse
-