Skip navigation links
com.day.cq.commons.feed

Class StringResponseWrapper

    • Constructor Detail

      • StringResponseWrapper

        public StringResponseWrapper(SlingHttpServletResponse slingHttpServletResponse)
        Creates a new StringResponseWrapper using the specified response.
        Parameters:
        slingHttpServletResponse - The response
    • Method Detail

      • 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
      • getString

        public java.lang.String getString()
                                   throws java.io.UnsupportedEncodingException
        Returns the response body as a String
        Returns:
        The response body
        Throws:
        java.io.UnsupportedEncodingException - If the encoding is not supported

"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"