com.raritantechnologies.HTML
Class HttpServletResponseStub
java.lang.Object
com.raritantechnologies.HTML.HttpServletResponseStub
- public class HttpServletResponseStub
- extends java.lang.Object
Proxy for an HttpServletResponse with an outputStream inserted to divert Http response outputs.
Adds getBytes( ) method for bytes that have been added to the outputStream.
Developed by
Raritan Technologies Inc..
- Author:
- Ted Sullivan
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpServletResponseStub
public HttpServletResponseStub(java.io.OutputStream oStream)
getCharacterEncoding
public java.lang.String getCharacterEncoding()
getOutputStream
public ServletOutputStream getOutputStream()
throws java.io.IOException
- Throws:
java.io.IOException
getWriter
public java.io.PrintWriter getWriter()
throws java.io.IOException
- Throws:
java.io.IOException
setContentLength
public void setContentLength(int len)
getContentLength
public int getContentLength()
setContentType
public void setContentType(java.lang.String type)
getContentType
public java.lang.String getContentType()
setBufferSize
public void setBufferSize(int size)
getBufferSize
public int getBufferSize()
flushBuffer
public void flushBuffer()
throws java.io.IOException
- Throws:
java.io.IOException
isCommitted
public boolean isCommitted()
reset
public void reset()
setLocale
public void setLocale(java.util.Locale loc)
getLocale
public java.util.Locale getLocale()
addCookie
public void addCookie(Cookie cookie)
containsHeader
public boolean containsHeader(java.lang.String name)
encodeURL
public java.lang.String encodeURL(java.lang.String url)
encodeRedirectURL
public java.lang.String encodeRedirectURL(java.lang.String url)
encodeUrl
public java.lang.String encodeUrl(java.lang.String url)
encodeRedirectUrl
public java.lang.String encodeRedirectUrl(java.lang.String url)
sendError
public void sendError(int sc,
java.lang.String msg)
throws java.io.IOException
- Throws:
java.io.IOException
sendError
public void sendError(int sc)
throws java.io.IOException
- Throws:
java.io.IOException
sendRedirect
public void sendRedirect(java.lang.String location)
throws java.io.IOException
- Throws:
java.io.IOException
setDateHeader
public void setDateHeader(java.lang.String name,
long date)
addDateHeader
public void addDateHeader(java.lang.String name,
long date)
setHeader
public void setHeader(java.lang.String name,
java.lang.String value)
addHeader
public void addHeader(java.lang.String name,
java.lang.String value)
setIntHeader
public void setIntHeader(java.lang.String name,
int value)
addIntHeader
public void addIntHeader(java.lang.String name,
int value)
setStatus
public void setStatus(int sc)
setStatus
public void setStatus(int sc,
java.lang.String sm)
resetBuffer
public void resetBuffer()
setCharacterEncoding
public void setCharacterEncoding(java.lang.String arg0)