Class EmbeddedResponse

java.lang.Object
java.io.OutputStream
jakarta.servlet.ServletOutputStream
cloud.piranha.core.impl.DefaultWebApplicationResponse
cloud.piranha.embedded.EmbeddedResponse
All Implemented Interfaces:
WebApplicationResponse, jakarta.servlet.http.HttpServletResponse, jakarta.servlet.ServletResponse, Closeable, Flushable, AutoCloseable

public class EmbeddedResponse extends DefaultWebApplicationResponse
The WebApplicationResponse class used by EmbeddedPiranha
Author:
Manfred Riem ([email protected])
See Also:
  • 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