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
-
Method Summary
Modifier and TypeMethodDescriptionprotected OutputStream
This method needs to be implemented by the extending back-end class and will be called byAbstractResponse
during 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 byAbstractResponse
during the RIFE2-specific additional behaviour.void
void
addDateHeader
(String name, long date) void
void
addIntHeader
(String name, int integer) boolean
containsHeader
(String name) Retrieves the underlyingHttpServletResponse
.void
sendError
(int statusCode) void
void
sendRedirect
(String location) void
setContentLength
(int length) void
setDateHeader
(String name, long date) void
void
setIntHeader
(String name, int value) void
void
setStatus
(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:AbstractResponse
This method needs to be implemented by the extending back-end class and will be called byAbstractResponse
during the RIFE2-specific additional behaviour. It behaves exactly like itscounter-part in the Response interface
.- Specified by:
_setContentType
in classAbstractResponse
- See Also:
-
_getOutputStream
Description copied from class:AbstractResponse
This method needs to be implemented by the extending back-end class and will be called byAbstractResponse
during the RIFE2-specific additional behaviour. It behaves exactly like itscounter-part in the Request interface
.- Specified by:
_getOutputStream
in 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:Response
Retrieves the underlyingHttpServletResponse
.- Returns:
- the underlying
HttpServletResponse
instance; ornull
if this response isn't backed byHttpServletResponse
-