public class HttpContext
extends java.lang.Object
implements java.io.Serializable
Specifies the HTTP context to use for the test authorizer request.
Constructor and Description |
---|
HttpContext() |
Modifier and Type | Method and Description |
---|---|
HttpContext |
addheadersEntry(java.lang.String key,
java.lang.String value)
The header keys and values in an HTTP authorization request.
|
HttpContext |
clearheadersEntries()
Removes all the entries added into headers.
|
boolean |
equals(java.lang.Object obj) |
java.util.Map<java.lang.String,java.lang.String> |
getHeaders()
The header keys and values in an HTTP authorization request.
|
java.lang.String |
getQueryString()
The query string keys and values in an HTTP authorization request.
|
int |
hashCode() |
void |
setHeaders(java.util.Map<java.lang.String,java.lang.String> headers)
The header keys and values in an HTTP authorization request.
|
void |
setQueryString(java.lang.String queryString)
The query string keys and values in an HTTP authorization request.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
HttpContext |
withHeaders(java.util.Map<java.lang.String,java.lang.String> headers)
The header keys and values in an HTTP authorization request.
|
HttpContext |
withQueryString(java.lang.String queryString)
The query string keys and values in an HTTP authorization request.
|
public java.util.Map<java.lang.String,java.lang.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(java.util.Map<java.lang.String,java.lang.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(java.util.Map<java.lang.String,java.lang.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(java.lang.String key, java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.