Class EmbeddedResponse

All Implemented Interfaces:
WebApplicationResponse, HttpServletResponse, ServletResponse, Closeable, Flushable, AutoCloseable

public class EmbeddedResponse extends DefaultWebApplicationResponse
The WebApplicationResponse class used by EmbeddedPiranha
Author:
Manfred Riem ([email protected])
See Also:
EmbeddedPiranha
  • Constructor Details

    • EmbeddedResponse

      public EmbeddedResponse()
      Constructor.
  • Method Details

    • getResponseAsByteArray

      public byte[] getResponseAsByteArray()
      Get the response as a byte array.
      Returns:
      the body.
    • getResponseAsString

      public String getResponseAsString()
      Returns the response as a string.
      Returns:
      the response as a string