public class RemoteServletResponse extends Object implements javax.servlet.ServletResponse, Serializable
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
RemoteServletResponse()
Used by deserialization.
|
RemoteServletResponse(javax.servlet.ServletResponse response)
Creates a ServletResponse adaptor wrapping the given response object.
|
Modifier and Type | Method and Description |
---|---|
void |
flushBuffer()
The default behavior of this method is to call flushBuffer()
on the wrapped response object.
|
int |
getBufferSize()
The default behavior of this method is to return getBufferSize()
on the wrapped response object.
|
String |
getCharacterEncoding()
The default behavior of this method is to return getCharacterEncoding()
on the wrapped response object.
|
String |
getContentType()
Returns the MIME type for the content response
|
Locale |
getLocale()
The default behavior of this method is to return getLocale()
on the wrapped response object.
|
javax.servlet.ServletOutputStream |
getOutputStream()
The default behavior of this method is to return getOutputStream()
on the wrapped response object.
|
javax.servlet.ServletResponse |
getResponse()
Return the wrapped ServletResponse object.
|
PrintWriter |
getWriter()
The default behavior of this method is to return getWriter()
on the wrapped response object.
|
boolean |
isCommitted()
The default behavior of this method is to return isCommitted()
on the wrapped response object.
|
protected void |
processResponse() |
void |
reset()
The default behavior of this method is to call reset()
on the wrapped response object.
|
void |
resetBuffer()
The default behavior of this method is to call resetBuffer()
on the wrapped response object.
|
void |
setBufferSize(int size)
The default behavior of this method is to call setBufferSize(int size)
on the wrapped response object.
|
void |
setCharacterEncoding(String charSet)
Sets the character encoding of the response
|
void |
setContentLength(int len)
The default behavior of this method is to call setContentLength(int len)
on the wrapped response object.
|
void |
setContentLengthLong(long len) |
void |
setContentType(String type)
The default behavior of this method is to call setContentType(String type)
on the wrapped response object.
|
void |
setLocale(Locale loc)
The default behavior of this method is to call setLocale(Locale loc)
on the wrapped response object.
|
void |
setResponse(javax.servlet.ServletResponse response)
Sets the response being wrapped.
|
public static final long serialVersionUID
public RemoteServletResponse(javax.servlet.ServletResponse response)
response
- The response to wrap.IllegalArgumentException
- if the response is null.public RemoteServletResponse()
protected void processResponse()
public javax.servlet.ServletResponse getResponse()
public void setResponse(javax.servlet.ServletResponse response)
IllegalArgumentException
- if the response is null.public String getCharacterEncoding()
getCharacterEncoding
in interface javax.servlet.ServletResponse
public String getContentType()
getContentType
in interface javax.servlet.ServletResponse
public javax.servlet.ServletOutputStream getOutputStream() throws IOException
getOutputStream
in interface javax.servlet.ServletResponse
IOException
public PrintWriter getWriter() throws IOException
getWriter
in interface javax.servlet.ServletResponse
IOException
public void setContentLength(int len)
setContentLength
in interface javax.servlet.ServletResponse
len
- The new content length of the response.public void setContentLengthLong(long len)
setContentLengthLong
in interface javax.servlet.ServletResponse
public void setContentType(String type)
setContentType
in interface javax.servlet.ServletResponse
type
- The new content type of the response.public void setBufferSize(int size)
setBufferSize
in interface javax.servlet.ServletResponse
size
- The new buffer size of the request.public int getBufferSize()
getBufferSize
in interface javax.servlet.ServletResponse
public void flushBuffer() throws IOException
flushBuffer
in interface javax.servlet.ServletResponse
IOException
public boolean isCommitted()
isCommitted
in interface javax.servlet.ServletResponse
public void reset()
reset
in interface javax.servlet.ServletResponse
public void resetBuffer()
resetBuffer
in interface javax.servlet.ServletResponse
public void setLocale(Locale loc)
setLocale
in interface javax.servlet.ServletResponse
loc
- Sets the new locale of the response.public void setCharacterEncoding(String charSet)
setCharacterEncoding
in interface javax.servlet.ServletResponse
charSet
- Sets the new charSet of the response.public Locale getLocale()
getLocale
in interface javax.servlet.ServletResponse
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.