|
![]() |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.droplets.apix.servlet.DropletsHttpServletResponse
Implements HttpServletResponse for use in a Droplet calling a Servlet. Use it to call your Servlet's doGetService and doPostService. Many of the methods are marked as "Not implemented". This is because there is no Droplets alternative and probably depends on the specifics of the Servlet being used. It is expected that you subclass DropletsHttpServletResponse and provide an implementation that is appropriate for the Servlet you are trying to call. Most of the methods that are marked as "Not implemented" have a default implementation that may be appropriate, but are marked that way nonetheless to alert the developer to check to see if they need something else.
Copyright: Copyright (c) 2003
Company: Droplets
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_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_UNAUTHORIZED, SC_UNSUPPORTED_MEDIA_TYPE, SC_USE_PROXY |
Constructor Summary | |
DropletsHttpServletResponse()
Construct objects of DropletsHttpServletResponse to pass to your Servlet's doGetService() and doPostService() |
Method Summary | |
void |
addCookie(javax.servlet.http.Cookie cookie)
Not implemented. |
void |
addDateHeader(java.lang.String name,
long date)
Not implemented. |
void |
addHeader(java.lang.String name,
java.lang.String value)
Not implemented. |
void |
addIntHeader(java.lang.String name,
int value)
Not implemented. |
boolean |
containsHeader(java.lang.String name)
Not implemented. |
java.lang.String |
encodeRedirectUrl(java.lang.String url)
Not implemented. |
java.lang.String |
encodeRedirectURL(java.lang.String url)
Not implemented. |
java.lang.String |
encodeUrl(java.lang.String url)
Not implemented. |
java.lang.String |
encodeURL(java.lang.String url)
Not implemented. |
void |
flushBuffer()
Not implemented. |
int |
getBufferSize()
Returns the value passed to setBufferSize (default is 0) |
java.lang.String |
getCharacterEncoding()
Returns the argument passed to setCharacterEncoding (or "ISO-8859-1" if it was never called) |
java.lang.String |
getContentType()
Gets the content type set by setContentType() (default "text/html; charset=ISO-8859-4") |
java.util.Locale |
getLocale()
Returns the value passed to setLocale (default is Locale.getDefault()) |
javax.servlet.ServletOutputStream |
getOutputStream()
Gets the stream for writing the result. |
java.io.PrintWriter |
getWriter()
Not Implemented. |
boolean |
isCommitted()
Not implemented. |
void |
reset()
Clears the output stream |
void |
resetBuffer()
Clears the output stream |
void |
sendError(int sc)
Not implemented. |
void |
sendError(int sc,
java.lang.String msg)
Not implemented. |
void |
sendRedirect(java.lang.String location)
Not implemented. |
void |
setBufferSize(int size)
Used to set the return value of getBufferSize (default is 0) |
void |
setCharacterEncoding(java.lang.String charset)
Sets the encoding. |
void |
setContentLength(int len)
Not implemented. |
void |
setContentType(java.lang.String type)
Sets the content type returned by getContentType() (default "text/html; charset=ISO-8859-4") |
void |
setDateHeader(java.lang.String name,
long date)
Not implemented. |
void |
setHeader(java.lang.String name,
java.lang.String value)
Not implemented. |
void |
setIntHeader(java.lang.String name,
int value)
Not implemented. |
void |
setLocale(java.util.Locale loc)
Used to set the return value of getLocale (default is Locale.getDefault()) |
void |
setStatus(int sc)
Not implemented. |
void |
setStatus(int sc,
java.lang.String sm)
Not implemented. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DropletsHttpServletResponse()
Method Detail |
public java.lang.String getCharacterEncoding()
getCharacterEncoding
in interface javax.servlet.ServletResponse
public void setCharacterEncoding(java.lang.String charset)
the
- encoding of the result.public javax.servlet.ServletOutputStream getOutputStream() throws java.io.IOException
getOutputStream
in interface javax.servlet.ServletResponse
public java.io.PrintWriter getWriter() throws java.io.IOException
getWriter
in interface javax.servlet.ServletResponse
public void setContentLength(int len)
setContentLength
in interface javax.servlet.ServletResponse
len
- ignored.public void setContentType(java.lang.String type)
setContentType
in interface javax.servlet.ServletResponse
type
- used as the result of getContentType()public java.lang.String getContentType()
public void setBufferSize(int size)
setBufferSize
in interface javax.servlet.ServletResponse
size
- sets the return value of getBufferSizepublic int getBufferSize()
getBufferSize
in interface javax.servlet.ServletResponse
public void flushBuffer() throws java.io.IOException
flushBuffer
in interface javax.servlet.ServletResponse
public void resetBuffer()
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
loc
- sets the return value of getLocalepublic java.util.Locale getLocale()
getLocale
in interface javax.servlet.ServletResponse
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)
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
public void sendError(int sc) throws java.io.IOException
sendError
in interface javax.servlet.http.HttpServletResponse
public void sendRedirect(java.lang.String location) throws java.io.IOException
sendRedirect
in interface javax.servlet.http.HttpServletResponse
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
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |