public class StringResponseWrapper extends SlingHttpServletResponseWrapper
StringResponseWrapper is a response wrapper
providing the response body as a String.| Modifier and Type | Class and Description |
|---|---|
class |
StringResponseWrapper.AtomFeedOutputStream
The
AtomFeedOutputStream allows for deferring
the data to another OutputStream. |
| Constructor and Description |
|---|
StringResponseWrapper(SlingHttpServletResponse slingHttpServletResponse)
Creates a new
StringResponseWrapper using the specified
response. |
| Modifier and Type | Method and Description |
|---|---|
ServletOutputStream |
getOutputStream() |
java.lang.String |
getString()
Returns the response body as a
String |
java.io.PrintWriter |
getWriter() |
adaptTo, getSlingResponsepublic StringResponseWrapper(SlingHttpServletResponse slingHttpServletResponse)
StringResponseWrapper using the specified
response.slingHttpServletResponse - The responsepublic ServletOutputStream getOutputStream()
throws java.io.IOException
java.io.IOExceptionpublic java.io.PrintWriter getWriter()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getString()
throws java.io.UnsupportedEncodingException
Stringjava.io.UnsupportedEncodingException - If the encoding is not supported"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"