Class ExternalRequestContext.Builder
java.lang.Object
org.forgerock.openam.auth.node.api.ExternalRequestContext.Builder
- Enclosing class:
- ExternalRequestContext
A builder for
ExternalRequestContext
instances.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the authId of the request.build()
Creates a newExternalRequestContext
instance.Sets the client IP address for the request.Sets the cookies for the request.Sets the HTTP headers for the request.Sets the hostname for the request.locales
(PreferredLocales locales) Sets the preferred locales for the request.parameters
(Map<String, String[]> parameters) Sets the parameterMap of the request.Sets the serverUrl of the request.servletRequest
(javax.servlet.http.HttpServletRequest request) Sets theHttpServletRequest
.servletResponse
(javax.servlet.http.HttpServletResponse response) Sets theHttpServletResponse
.ssoTokenId
(String ssoTokenId) Sets the ssoTokenId of the request.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
headers
public ExternalRequestContext.Builder headers(com.google.common.collect.ListMultimap<String, String> headers) Sets the HTTP headers for the request.- Parameters:
headers
- The HTTP headers.- Returns:
- This builder instance.
-
cookies
Sets the cookies for the request.- Parameters:
cookies
- The cookies.- Returns:
- This builder instance.
-
locales
Sets the preferred locales for the request.- Parameters:
locales
- The preferred locales.- Returns:
- This builder instance.
-
clientIp
Sets the client IP address for the request.- Parameters:
clientIp
- The client's IP address.- Returns:
- This builder instance.
-
hostName
Sets the hostname for the request.- Parameters:
hostName
- the host name.- Returns:
- This builder instance.
-
ssoTokenId
Sets the ssoTokenId of the request.- Parameters:
ssoTokenId
- the ssoTokenId.- Returns:
- this builder.
-
authId
Sets the authId of the request.- Parameters:
authId
- the authId.- Returns:
- this builder.
-
parameters
Sets the parameterMap of the request.- Parameters:
parameters
- the parameters- Returns:
- this builder
-
serverUrl
Sets the serverUrl of the request.- Parameters:
serverUrl
- the serverUrl.- Returns:
- this builder.
-
servletRequest
Sets theHttpServletRequest
.- Parameters:
request
- theHttpServletRequest
- Returns:
- this builder.
-
servletResponse
public ExternalRequestContext.Builder servletResponse(javax.servlet.http.HttpServletResponse response) Sets theHttpServletResponse
.- Parameters:
response
- theHttpServletResponse
- Returns:
- this builder.
-
build
Creates a newExternalRequestContext
instance.- Returns:
- A new instance of
ExternalRequestContext
.
-