|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
jrun.servlet.JRunResponse
Implementation of HttpServletResponse. This is the main workhorse of response. It coordinates buffering, and whether or not headers are committed. Much of the ServletResponse functionality is deferred to the underlying response object from the actual connection.
| Fields inherited from interface jrun.servlet.HttpConstants |
ACCEPT_CHARSET, ACCEPT_LANGUAGE, CACHE_CONTROL, CONNECTION, CONTENT_LANGUAGE, CONTENT_LENGTH, CONTENT_TYPE, COOKIE, DATE, EXPIRES, HOST, LOCATION, SERVER, SET_COOKIE |
| Method Summary | |
void |
closeFinal()
called by the servlet engine after a servlet finishes running. |
java.lang.String |
encodeRedirectUrl(java.lang.String u)
|
java.lang.String |
encodeRedirectURL(java.lang.String url)
Encodes the specified URL for use in the sendRedirect method or, if encoding is not needed, returns the URL unchanged. |
java.lang.String |
encodeUrl(java.lang.String u)
|
java.lang.String |
encodeURL(java.lang.String url)
Encodes the specified URL by including the session ID in it, or, if encoding is not needed, returns the URL unchanged. |
void |
flushBuffer()
flush the underlying response without knowing ahead of time which output method was called. |
java.lang.String |
getCharacterEncoding()
Returns the character set encoding used for this MIME body. |
java.lang.String |
getContentType()
Get the content type. |
java.util.Locale |
getLocale()
Gets the locale for this response. |
javax.servlet.ServletOutputStream |
getOutputStream()
Returns an output stream for writing binary response data. |
java.io.PrintWriter |
getWriter()
Returns a print writer for writing formatted text responses. |
void |
reset()
Resets the response by clearing the headers and output stream. |
void |
resetBuffer()
reset any output that has been generated, but don't reset headers, status code, or cookies. |
void |
sendError(int s)
|
void |
sendError(int sc,
java.lang.String msg)
Sends an error response to the client using the specified status code and descriptive message. |
void |
sendRedirect(java.lang.String location)
Sends a temporary redirect response to the client using the specified redirect location URL. |
void |
setContentType(java.lang.String type)
Sets the content type for this response. |
void |
setLocale(java.util.Locale locale)
Sets the locale for this response. |
| Method Detail |
public final void resetBuffer()
public final void reset()
public final void flushBuffer()
throws java.io.IOException
public final java.lang.String getCharacterEncoding()
public final javax.servlet.ServletOutputStream getOutputStream()
throws java.io.IOException
public final java.io.PrintWriter getWriter()
throws java.io.IOException
public void setContentType(java.lang.String type)
public final java.lang.String getContentType()
public final void setLocale(java.util.Locale locale)
locale - Locale object.public final java.util.Locale getLocale()
public final void closeFinal()
throws java.io.IOException
public java.lang.String encodeRedirectURL(java.lang.String url)
public java.lang.String encodeURL(java.lang.String url)
public void sendError(int sc,
java.lang.String msg)
throws java.io.IOException
public void sendRedirect(java.lang.String location)
throws java.io.IOException
public void sendError(int s)
throws java.io.IOException
public java.lang.String encodeUrl(java.lang.String u)
public java.lang.String encodeRedirectUrl(java.lang.String u)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||