public class XmlResponseWriter extends AbstractResponseWriter<org.apache.xmlbeans.XmlObject>
Modifier and Type | Field and Description |
---|---|
private MediaType |
contentType |
Constructor and Description |
---|
XmlResponseWriter() |
Modifier and Type | Method and Description |
---|---|
MediaType |
getContentType()
Get the current contentType
|
void |
setContentType(MediaType contentType)
Set the contentType
|
boolean |
supportsGZip(org.apache.xmlbeans.XmlObject t)
Check if GZip is supported by this writer
|
void |
write(org.apache.xmlbeans.XmlObject xml,
OutputStream out,
ResponseProxy responseProxy)
Write object t to
OutputStream out |
getEncodedContentType, getEncoder, isSetContentType
private MediaType contentType
public void write(org.apache.xmlbeans.XmlObject xml, OutputStream out, ResponseProxy responseProxy) throws IOException
ResponseWriter
OutputStream
outxml
- Object to writeout
- OutputStream
to be written toresponseProxy
- ResponseProxy
giving access to header and content length settersIOException
- If an error occurs during writingpublic MediaType getContentType()
ResponseWriter
getContentType
in interface ResponseWriter<org.apache.xmlbeans.XmlObject>
getContentType
in class AbstractResponseWriter<org.apache.xmlbeans.XmlObject>
public void setContentType(MediaType contentType)
ResponseWriter
setContentType
in interface ResponseWriter<org.apache.xmlbeans.XmlObject>
setContentType
in class AbstractResponseWriter<org.apache.xmlbeans.XmlObject>
contentType
- to setpublic boolean supportsGZip(org.apache.xmlbeans.XmlObject t)
ResponseWriter
t
- Object to writetrue
, if GZip is supportedCopyright © 2012-2015 52north.org. All Rights Reserved.