java.lang.Object
cloud.piranha.embedded.EmbeddedResponseBuilder
public class EmbeddedResponseBuilder
extends java.lang.Object
The builder so you can easily build instances of
EmbeddedResponse
.- Author:
- Manfred Riem ([email protected])
- See Also:
EmbeddedResponse
-
Constructor Summary
Constructors Constructor Description EmbeddedResponseBuilder()
Constructor. -
Method Summary
Modifier and Type Method Description EmbeddedResponseBuilder
bodyOnly(boolean bodyOnly)
Set the body only flag.EmbeddedResponse
build()
Build the response.EmbeddedResponseBuilder
webApplication(DefaultWebApplication webApp)
Set the web application.
-
Constructor Details
-
EmbeddedResponseBuilder
public EmbeddedResponseBuilder()Constructor.
-
-
Method Details
-
bodyOnly
Set the body only flag.- Parameters:
bodyOnly
- the body only flag.- Returns:
- the builder.
-
build
Build the response.- Returns:
- the response.
-
webApplication
Set the web application.- Parameters:
webApp
- the web application.- Returns:
- the builder.
-