java.lang.Object
cloud.piranha.embedded.EmbeddedRequestBuilder
The builder so you can easily build instances of
EmbeddedRequest
.- Author:
- Manfred Riem ([email protected])
- See Also:
EmbeddedRequest
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdd an attribute.build()
Build the request.contextPath(String contextPath)
Set the context path.Add a cookie.Adds a single valued headerSet the method.Add a parameter.Set the path info.requestedSessionId(String requestedSessionId)
Set the requested session id.requestedSessionIdFromCookie(boolean requestedSessionIdFromCookie)
Set the requested session id from cookie flag.Set the scheme.servletPath(String servletPath)
Set the servlet path.webApplication(WebApplication webApp)
Set the web application.
-
Constructor Details
-
EmbeddedRequestBuilder
public EmbeddedRequestBuilder()Constructor.
-
-
Method Details
-
attribute
Add an attribute.- Parameters:
name
- the name.value
- the value.- Returns:
- the builder.
-
build
Build the request.- Returns:
- the request.
-
contextPath
Set the context path.- Parameters:
contextPath
- the context path.- Returns:
- the builder.
-
cookie
Add a cookie.- Parameters:
cookie
- the cookie.- Returns:
- the builder.
-
header
Adds a single valued header- Parameters:
name
- the name of the headervalue
- the value of the header- Returns:
- the builder.
-
method
Set the method.- Parameters:
method
- the method.- Returns:
- the builder.
-
parameter
Add a parameter.- Parameters:
name
- the name.values
- the values.- Returns:
- the builder.
-
pathInfo
Set the path info.- Parameters:
pathInfo
- the path info.- Returns:
- the builder.
-
requestedSessionId
Set the requested session id.- Parameters:
requestedSessionId
- the requested session id.- Returns:
- the builder.
-
requestedSessionIdFromCookie
Set the requested session id from cookie flag.- Parameters:
requestedSessionIdFromCookie
- the requested session id from cookie flag.- Returns:
- the builder.
-
scheme
Set the scheme.- Parameters:
scheme
- the scheme.- Returns:
- the builder.
-
servletPath
Set the servlet path.- Parameters:
servletPath
- the servlet path.- Returns:
- the builder.
-
webApplication
Set the web application.- Parameters:
webApp
- the web application.- Returns:
- return the builder.
-