Package com.okta.authn.sdk.http
Class RequestContext
- java.lang.Object
-
- com.okta.authn.sdk.http.RequestContext
-
public final class RequestContext extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description RequestContext()
RequestContext(java.util.List<Header> headers, java.util.List<QueryParameter> queryParams)
RequestContext(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers, java.util.Map<java.lang.String,java.lang.String> queryParams)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RequestContext
addHeader(Header header)
RequestContext
addHeader(java.lang.String key, java.lang.String value)
RequestContext
addHeader(java.lang.String key, java.util.List<java.lang.String> values)
RequestContext
addQuery(QueryParameter query)
RequestContext
addQuery(java.lang.String key, java.lang.String value)
java.util.List<Header>
getHeaders()
java.util.List<QueryParameter>
getQueryParams()
-
-
-
Constructor Detail
-
RequestContext
public RequestContext()
-
RequestContext
public RequestContext(java.util.List<Header> headers, java.util.List<QueryParameter> queryParams)
-
RequestContext
public RequestContext(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers, java.util.Map<java.lang.String,java.lang.String> queryParams)
-
-
Method Detail
-
getHeaders
public java.util.List<Header> getHeaders()
-
getQueryParams
public java.util.List<QueryParameter> getQueryParams()
-
addHeader
public RequestContext addHeader(Header header)
-
addHeader
public RequestContext addHeader(java.lang.String key, java.lang.String value)
-
addHeader
public RequestContext addHeader(java.lang.String key, java.util.List<java.lang.String> values)
-
addQuery
public RequestContext addQuery(QueryParameter query)
-
addQuery
public RequestContext addQuery(java.lang.String key, java.lang.String value)
-
-