Class EmbeddedResponse

java.lang.Object
java.io.OutputStream
All Implemented Interfaces:
WebApplicationResponse, java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable, HttpServletResponse, ServletResponse

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

  • Method Details

    • getResponseAsByteArray

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

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