|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.enhydra.servlet.connectionMethods.EnhydraDirector.DirectorResponse
Enhydra Director implementation of the response.
Field Summary | |
protected boolean |
appCommitted
|
protected EnhydraDirectorConnection |
connection
|
protected boolean |
error
|
protected boolean |
included
|
protected boolean |
suspended
|
protected org.apache.catalina.Request |
wrappedRequest
|
Fields inherited from interface javax.servlet.http.HttpServletResponse |
SC_ACCEPTED, SC_BAD_GATEWAY, SC_BAD_REQUEST, SC_CONFLICT, SC_CONTINUE, SC_CREATED, SC_EXPECTATION_FAILED, SC_FORBIDDEN, SC_FOUND, SC_GATEWAY_TIMEOUT, SC_GONE, SC_HTTP_VERSION_NOT_SUPPORTED, SC_INTERNAL_SERVER_ERROR, SC_LENGTH_REQUIRED, SC_METHOD_NOT_ALLOWED, SC_MOVED_PERMANENTLY, SC_MOVED_TEMPORARILY, SC_MULTIPLE_CHOICES, SC_NO_CONTENT, SC_NON_AUTHORITATIVE_INFORMATION, SC_NOT_ACCEPTABLE, SC_NOT_FOUND, SC_NOT_IMPLEMENTED, SC_NOT_MODIFIED, SC_OK, SC_PARTIAL_CONTENT, SC_PAYMENT_REQUIRED, SC_PRECONDITION_FAILED, SC_PROXY_AUTHENTICATION_REQUIRED, SC_REQUEST_ENTITY_TOO_LARGE, SC_REQUEST_TIMEOUT, SC_REQUEST_URI_TOO_LONG, SC_REQUESTED_RANGE_NOT_SATISFIABLE, SC_RESET_CONTENT, SC_SEE_OTHER, SC_SERVICE_UNAVAILABLE, SC_SWITCHING_PROTOCOLS, SC_TEMPORARY_REDIRECT, SC_UNAUTHORIZED, SC_UNSUPPORTED_MEDIA_TYPE, SC_USE_PROXY |
Constructor Summary | |
DirectorResponse(EnhydraDirectorConnection res)
|
Method Summary | |
void |
addCookie(javax.servlet.http.Cookie cookie)
Add the Cookie to this Response. |
void |
addDateHeader(java.lang.String name,
long date)
Adds a response header with the given name and date-value. |
void |
addHeader(java.lang.String name,
java.lang.String value)
Adds a response header with the given name and value. |
void |
addIntHeader(java.lang.String name,
int value)
Adds a response header with the given name and integer value. |
boolean |
containsHeader(java.lang.String name)
Returns a boolean indicating whether the named response header has already been set. |
javax.servlet.ServletOutputStream |
createOutputStream()
Create and return a ServletOutputStream to write the content associated with this Response. |
java.lang.String |
encodeRedirectUrl(java.lang.String url)
|
java.lang.String |
encodeRedirectURL(java.lang.String url)
Encodes the specified URL for use in the sendRedirect method or |
java.lang.String |
encodeUrl(java.lang.String url)
|
java.lang.String |
encodeURL(java.lang.String url)
Encodes the specified URL by including the session ID in it |
void |
finishResponse()
Perform whatever actions are required to close the output |
void |
flushBuffer()
Forces any content in the buffer to be written to the client. |
int |
getBufferSize()
Returns the actual buffer size used for the response. |
java.lang.String |
getCharacterEncoding()
Returns the name of the character encoding (MIME charset) used for the body sent in this response. |
org.apache.catalina.Connector |
getConnector()
Return the Connector through which this Response is returned. |
int |
getContentCount()
Return the number of bytes actually written to the output stream. |
int |
getContentLength()
Return the content length that was set or calculated for this Response. |
java.lang.String |
getContentType()
Returns the content type used for the MIME body sent in this response. |
org.apache.catalina.Context |
getContext()
Return the Context with which this Response is associated. |
javax.servlet.http.Cookie[] |
getCookies()
Get the Cookies associated with this Response. |
java.lang.String |
getHeader(java.lang.String name)
Get the Header with the specified name associated with this Response. |
java.lang.String[] |
getHeaderNames()
Get the Header Names associated with this Response. |
java.lang.String[] |
getHeaderValues(java.lang.String name)
Get the Header Values with the specified name associated with this Response. |
boolean |
getIncluded()
Return the "processing inside an include" flag. |
java.lang.String |
getInfo()
Return descriptive information about this Response implementation |
java.util.Locale |
getLocale()
Returns the locale specified for this response |
java.lang.String |
getMessage()
Get the Message associated with this Response. |
javax.servlet.ServletOutputStream |
getOutputStream()
Returns a ServletOutputStream suitable for writing binary
data in the response. |
java.io.PrintWriter |
getReporter()
Return a PrintWriter that can be used to render error messages |
org.apache.catalina.Request |
getRequest()
Return the Request with which this Response is associated. |
javax.servlet.ServletResponse |
getResponse()
Return the ServletResponse for which this object
is the facade. |
int |
getStatus()
Get the Status associated with this Response. |
java.io.OutputStream |
getStream()
Return the output stream associated with this Response. |
java.io.PrintWriter |
getWriter()
Returns a PrintWriter object that
can send character text to the client. |
boolean |
isAppCommitted()
Application commit flag accessor. |
boolean |
isCommitted()
Returns a boolean indicating if the response has been committed. |
boolean |
isError()
Error flag accessor. |
boolean |
isSuspended()
Suspended flag accessor. |
void |
recycle()
Release all object references, and initialize instance variables, in preparation for reuse of this object. |
void |
reset()
Clears any data that exists in the buffer as well as the status code and headers. |
void |
reset(int status,
java.lang.String message)
|
void |
resetBuffer()
Clears the content of the underlying buffer in the response without clearing headers or status code. |
void |
sendAcknowledgement()
Send an acknowledgment of a request. |
void |
sendError(int sc)
Sends an error response to the client using the specified status code |
void |
sendError(int sc,
java.lang.String msg)
Sends an error response to the client using the specified status. |
void |
sendRedirect(java.lang.String location)
Sends a temporary redirect response to the client using the specified redirect location URL. |
void |
setAppCommitted(boolean appCommitted)
Set the application commit flag. |
void |
setBufferSize(int size)
Sets the preferred buffer size for the body of the response. |
void |
setCharacterEncoding(java.lang.String charset)
|
void |
setConnector(org.apache.catalina.Connector connector)
Set the Connector through which this Response is returned. |
void |
setContentLength(int len)
Sets the length of the content body in the response |
void |
setContentType(java.lang.String type)
Sets the content type of the response being sent to the client, if the response has not been committed yet. |
void |
setContext(org.apache.catalina.Context context)
Set the Context with which this Response is associated. |
void |
setDateHeader(java.lang.String name,
long date)
Sets a response header with the given name and date-value. |
void |
setError()
Set the error flag. |
void |
setHeader(java.lang.String name,
java.lang.String value)
Sets a response header with the given name and value. |
void |
setIncluded(boolean included)
Set the "processing inside an include" flag. |
void |
setIntHeader(java.lang.String name,
int value)
Sets a response header with the given name and integer value. |
void |
setLocale(java.util.Locale loc)
Sets the locale of the response, if the response has not been committed yet. |
void |
setRequest(org.apache.catalina.Request request)
Set the Request with which this Response is associated. |
void |
setStatus(int sc)
Sets the status code for this response. |
void |
setStatus(int sc,
java.lang.String sm)
|
void |
setStream(java.io.OutputStream stream)
Set the output stream associated with this Response. |
void |
setSuspended(boolean suspended)
Set the suspended flag. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected EnhydraDirectorConnection connection
protected org.apache.catalina.Request wrappedRequest
protected boolean appCommitted
protected boolean included
protected boolean suspended
protected boolean error
Constructor Detail |
public DirectorResponse(EnhydraDirectorConnection res)
Method Detail |
public org.apache.catalina.Connector getConnector()
getConnector
in interface org.apache.catalina.Response
public void setConnector(org.apache.catalina.Connector connector)
setConnector
in interface org.apache.catalina.Response
public int getContentCount()
getContentCount
in interface org.apache.catalina.Response
public org.apache.catalina.Context getContext()
getContext
in interface org.apache.catalina.Response
public void setContext(org.apache.catalina.Context context)
setContext
in interface org.apache.catalina.Response
public void setAppCommitted(boolean appCommitted)
setAppCommitted
in interface org.apache.catalina.Response
public boolean isAppCommitted()
isAppCommitted
in interface org.apache.catalina.Response
public boolean getIncluded()
getIncluded
in interface org.apache.catalina.Response
public void setIncluded(boolean included)
setIncluded
in interface org.apache.catalina.Response
public java.lang.String getInfo()
getInfo
in interface org.apache.catalina.Response
public org.apache.catalina.Request getRequest()
getRequest
in interface org.apache.catalina.Response
public void setRequest(org.apache.catalina.Request request)
setRequest
in interface org.apache.catalina.Response
public javax.servlet.ServletResponse getResponse()
ServletResponse
for which this object
is the facade.
getResponse
in interface org.apache.catalina.Response
public java.io.OutputStream getStream()
getStream
in interface org.apache.catalina.Response
public void setStream(java.io.OutputStream stream)
setStream
in interface org.apache.catalina.Response
public void setSuspended(boolean suspended)
setSuspended
in interface org.apache.catalina.Response
public boolean isSuspended()
isSuspended
in interface org.apache.catalina.Response
public void setError()
setError
in interface org.apache.catalina.Response
public boolean isError()
isError
in interface org.apache.catalina.Response
public javax.servlet.ServletOutputStream createOutputStream() throws java.io.IOException
createOutputStream
in interface org.apache.catalina.Response
java.io.IOException
public void finishResponse() throws java.io.IOException
finishResponse
in interface org.apache.catalina.Response
java.io.IOException
public int getContentLength()
getContentLength
in interface org.apache.catalina.Response
public java.io.PrintWriter getReporter() throws java.io.IOException
getReporter
in interface org.apache.catalina.Response
java.io.IOException
public void recycle()
recycle
in interface org.apache.catalina.Response
public void sendAcknowledgement() throws java.io.IOException
sendAcknowledgement
in interface org.apache.catalina.Response
java.io.IOException
public javax.servlet.http.Cookie[] getCookies()
getCookies
in interface org.apache.catalina.HttpResponse
public java.lang.String getHeader(java.lang.String name)
getHeader
in interface org.apache.catalina.HttpResponse
public java.lang.String[] getHeaderNames()
getHeaderNames
in interface org.apache.catalina.HttpResponse
public java.lang.String[] getHeaderValues(java.lang.String name)
getHeaderValues
in interface org.apache.catalina.HttpResponse
public java.lang.String getMessage()
getMessage
in interface org.apache.catalina.HttpResponse
public int getStatus()
getStatus
in interface org.apache.catalina.HttpResponse
public void reset(int status, java.lang.String message)
reset
in interface org.apache.catalina.HttpResponse
public void addCookie(javax.servlet.http.Cookie cookie)
addCookie
in interface javax.servlet.http.HttpServletResponse
public boolean containsHeader(java.lang.String name)
containsHeader
in interface javax.servlet.http.HttpServletResponse
public java.lang.String encodeURL(java.lang.String url)
encodeURL
in interface javax.servlet.http.HttpServletResponse
public java.lang.String encodeRedirectURL(java.lang.String url)
sendRedirect
method or
encodeRedirectURL
in interface javax.servlet.http.HttpServletResponse
public java.lang.String encodeUrl(java.lang.String url)
encodeUrl
in interface javax.servlet.http.HttpServletResponse
public java.lang.String encodeRedirectUrl(java.lang.String url)
encodeRedirectUrl
in interface javax.servlet.http.HttpServletResponse
public void sendError(int sc, java.lang.String msg) throws java.io.IOException
sendError
in interface javax.servlet.http.HttpServletResponse
java.io.IOException
public void sendError(int sc) throws java.io.IOException
sendError
in interface javax.servlet.http.HttpServletResponse
java.io.IOException
public void sendRedirect(java.lang.String location) throws java.io.IOException
sendRedirect
in interface javax.servlet.http.HttpServletResponse
java.io.IOException
public void setDateHeader(java.lang.String name, long date)
setDateHeader
in interface javax.servlet.http.HttpServletResponse
public void addDateHeader(java.lang.String name, long date)
addDateHeader
in interface javax.servlet.http.HttpServletResponse
public void setHeader(java.lang.String name, java.lang.String value)
setHeader
in interface javax.servlet.http.HttpServletResponse
public void addHeader(java.lang.String name, java.lang.String value)
addHeader
in interface javax.servlet.http.HttpServletResponse
public void setIntHeader(java.lang.String name, int value)
setIntHeader
in interface javax.servlet.http.HttpServletResponse
public void addIntHeader(java.lang.String name, int value)
addIntHeader
in interface javax.servlet.http.HttpServletResponse
public void setStatus(int sc)
setStatus
in interface javax.servlet.http.HttpServletResponse
public void setStatus(int sc, java.lang.String sm)
setStatus
in interface javax.servlet.http.HttpServletResponse
public java.lang.String getCharacterEncoding()
getCharacterEncoding
in interface javax.servlet.ServletResponse
public java.lang.String getContentType()
getContentType
in interface org.apache.catalina.Response
public javax.servlet.ServletOutputStream getOutputStream() throws java.io.IOException
ServletOutputStream
suitable for writing binary
data in the response.
getOutputStream
in interface javax.servlet.ServletResponse
java.io.IOException
public java.io.PrintWriter getWriter() throws java.io.IOException
PrintWriter
object that
can send character text to the client.
getWriter
in interface javax.servlet.ServletResponse
java.io.IOException
public void setCharacterEncoding(java.lang.String charset)
setCharacterEncoding
in interface javax.servlet.ServletResponse
public void setContentLength(int len)
setContentLength
in interface javax.servlet.ServletResponse
public void setContentType(java.lang.String type)
setContentType
in interface javax.servlet.ServletResponse
public void setBufferSize(int size)
setBufferSize
in interface javax.servlet.ServletResponse
public int getBufferSize()
getBufferSize
in interface javax.servlet.ServletResponse
public void flushBuffer() throws java.io.IOException
flushBuffer
in interface javax.servlet.ServletResponse
java.io.IOException
public void resetBuffer()
resetBuffer
in interface org.apache.catalina.Response
public boolean isCommitted()
isCommitted
in interface javax.servlet.ServletResponse
public void reset()
reset
in interface javax.servlet.ServletResponse
public void setLocale(java.util.Locale loc)
setLocale
in interface javax.servlet.ServletResponse
public java.util.Locale getLocale()
getLocale
in interface javax.servlet.ServletResponse
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |