Package cloud.piranha.embedded
Class EmbeddedResponseBuilder
- java.lang.Object
-
- cloud.piranha.embedded.EmbeddedResponseBuilder
-
public class EmbeddedResponseBuilder extends Object
The builder so you can easily build instances ofEmbeddedResponse
.- Author:
- Manfred Riem ([email protected])
- See Also:
EmbeddedResponse
-
-
Constructor Summary
Constructors Constructor Description EmbeddedResponseBuilder()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods 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.
-
-
-
Method Detail
-
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(DefaultWebApplication webApp)
Set the web application.- Parameters:
webApp
- the web application.- Returns:
- the builder.
-
-