protected static class ImportSupport.ImportResponseWrapper
extends HttpServletResponseWrapper
Modifier and Type | Field and Description |
---|---|
private java.io.ByteArrayOutputStream |
bos
A buffer, alternatively, to accumulate bytes.
|
private boolean |
isStreamUsed
'True if getOutputStream() was called; false otherwise.
|
private boolean |
isWriterUsed
'True' if getWriter() was called; false otherwise.
|
private int |
status
The HTTP status set by the target.
|
private java.io.StringWriter |
sw
The Writer we convey.
|
Constructor and Description |
---|
ImportSupport.ImportResponseWrapper(HttpServletResponse response)
Constructs a new ImportResponseWrapper.
|
Modifier and Type | Method and Description |
---|---|
ServletOutputStream |
getOutputStream() |
int |
getStatus() |
java.lang.String |
getString()
Retrieves the buffered output, using the containing tag's
'charEncoding' attribute, or the tag's default encoding,
if necessary.
|
java.io.PrintWriter |
getWriter() |
void |
setContentType(java.lang.String x)
Has no effect.
|
void |
setLocale(java.util.Locale x)
Has no effect.
|
void |
setStatus(int status)
Sets the status of the response
|
private java.io.StringWriter sw
private java.io.ByteArrayOutputStream bos
private boolean isWriterUsed
private boolean isStreamUsed
private int status
public ImportSupport.ImportResponseWrapper(HttpServletResponse response)
response
- the response to wrappublic java.io.PrintWriter getWriter()
public ServletOutputStream getOutputStream()
public void setContentType(java.lang.String x)
public void setLocale(java.util.Locale x)
public void setStatus(int status)
status
- the status codepublic int getStatus()
public java.lang.String getString() throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
- if the encoding is not supportedCopyright (c) 2003-2007 Apache Software Foundation