public class EmbeddedRequestBuilder extends Object
EmbeddedRequest.EmbeddedRequest| Constructor and Description |
|---|
EmbeddedRequestBuilder()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
EmbeddedRequestBuilder |
attribute(String name,
Object value)
Add an attribute.
|
EmbeddedRequest |
build()
Build the request.
|
EmbeddedRequestBuilder |
contextPath(String contextPath)
Set the context path.
|
EmbeddedRequestBuilder |
cookie(javax.servlet.http.Cookie cookie)
Add a cookie.
|
EmbeddedRequestBuilder |
header(String name,
String value)
Adds a single valued header
|
EmbeddedRequestBuilder |
method(String method)
Set the method.
|
EmbeddedRequestBuilder |
parameter(String name,
String... values)
Add a parameter.
|
EmbeddedRequestBuilder |
pathInfo(String pathInfo)
Set the path info.
|
EmbeddedRequestBuilder |
requestedSessionId(String requestedSessionId)
Set the requested session id.
|
EmbeddedRequestBuilder |
requestedSessionIdFromCookie(boolean requestedSessionIdFromCookie)
Set the requested session id from cookie flag.
|
EmbeddedRequestBuilder |
scheme(String scheme)
Set the scheme.
|
EmbeddedRequestBuilder |
servletPath(String servletPath)
Set the servlet path.
|
EmbeddedRequestBuilder |
webApplication(cloud.piranha.api.WebApplication webApp)
Set the web application.
|
public EmbeddedRequestBuilder attribute(String name, Object value)
name - the name.value - the value.public EmbeddedRequest build()
public EmbeddedRequestBuilder contextPath(String contextPath)
contextPath - the context path.public EmbeddedRequestBuilder cookie(javax.servlet.http.Cookie cookie)
cookie - the cookie.public EmbeddedRequestBuilder header(String name, String value)
name - the name of the headervalue - the value of the headerpublic EmbeddedRequestBuilder method(String method)
method - the method.public EmbeddedRequestBuilder parameter(String name, String... values)
name - the name.values - the values.public EmbeddedRequestBuilder pathInfo(String pathInfo)
pathInfo - the path info.public EmbeddedRequestBuilder requestedSessionId(String requestedSessionId)
requestedSessionId - the requested session id.public EmbeddedRequestBuilder requestedSessionIdFromCookie(boolean requestedSessionIdFromCookie)
requestedSessionIdFromCookie - the requested session id from cookie flag.public EmbeddedRequestBuilder scheme(String scheme)
scheme - the scheme.public EmbeddedRequestBuilder servletPath(String servletPath)
servletPath - the servlet path.public EmbeddedRequestBuilder webApplication(cloud.piranha.api.WebApplication webApp)
webApp - the web application.Copyright © 2020. All rights reserved.