Class EmbeddedResponseBuilder

java.lang.Object
cloud.piranha.embedded.EmbeddedResponseBuilder

public class EmbeddedResponseBuilder extends Object
The builder so you can easily build instances of EmbeddedResponse.
Author:
Manfred Riem ([email protected])
See Also:
  • Constructor Details

    • EmbeddedResponseBuilder

      public EmbeddedResponseBuilder()
      Constructor.
  • Method Details

    • bodyOnly

      public EmbeddedResponseBuilder bodyOnly(boolean bodyOnly)
      Set the body only flag.
      Parameters:
      bodyOnly - the body only flag.
      Returns:
      the builder.
    • build

      public EmbeddedResponse build()
      Build the response.
      Returns:
      the response.
    • webApplication

      public EmbeddedResponseBuilder webApplication(WebApplication webApplication)
      Set the web application.
      Parameters:
      webApplication - the web application.
      Returns:
      the builder.