public class HttpContext extends Object implements Serializable
Specifies the HTTP context to use for the test authorizer request.
| Constructor and Description |
|---|
HttpContext() |
| Modifier and Type | Method and Description |
|---|---|
HttpContext |
addheadersEntry(String key,
String value)
The header keys and values in an HTTP authorization request.
|
HttpContext |
clearheadersEntries()
Removes all the entries added into headers.
|
boolean |
equals(Object obj) |
Map<String,String> |
getHeaders()
The header keys and values in an HTTP authorization request.
|
String |
getQueryString()
The query string keys and values in an HTTP authorization request.
|
int |
hashCode() |
void |
setHeaders(Map<String,String> headers)
The header keys and values in an HTTP authorization request.
|
void |
setQueryString(String queryString)
The query string keys and values in an HTTP authorization request.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
HttpContext |
withHeaders(Map<String,String> headers)
The header keys and values in an HTTP authorization request.
|
HttpContext |
withQueryString(String queryString)
The query string keys and values in an HTTP authorization request.
|
public Map<String,String> getHeaders()
The header keys and values in an HTTP authorization request.
The header keys and values in an HTTP authorization request.
public void setHeaders(Map<String,String> headers)
The header keys and values in an HTTP authorization request.
headers - The header keys and values in an HTTP authorization request.
public HttpContext withHeaders(Map<String,String> headers)
The header keys and values in an HTTP authorization request.
Returns a reference to this object so that method calls can be chained together.
headers - The header keys and values in an HTTP authorization request.
public HttpContext addheadersEntry(String key, String value)
The header keys and values in an HTTP authorization request.
The method adds a new key-value pair into headers parameter, and returns a reference to this object so that method calls can be chained together.
key - The key of the entry to be added into headers.value - The corresponding value of the entry to be added into
headers.public HttpContext clearheadersEntries()
Returns a reference to this object so that method calls can be chained together.
public String getQueryString()
The query string keys and values in an HTTP authorization request.
Constraints:
Length: 1 - 4096
The query string keys and values in an HTTP authorization request.
public void setQueryString(String queryString)
The query string keys and values in an HTTP authorization request.
Constraints:
Length: 1 - 4096
queryString - The query string keys and values in an HTTP authorization request.
public HttpContext withQueryString(String queryString)
The query string keys and values in an HTTP authorization request.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 4096
queryString - The query string keys and values in an HTTP authorization request.
public String toString()
toString in class ObjectObject.toString()Copyright © 2020. All rights reserved.