|
| ExchangeResponse | createResponse (HttpResponse response) |
| | Creates an exchange response from a http response instance.
|
| |
| ByteArrayEntity | createByteArrayEntity (byte[] arr) |
| | Creates a byte array entity for use in a http post.
|
| |
| boolean | isRedirected (HttpResponse response) |
| | Checks if there is an indication that the http url has changed.
|
| |
| String | getRedirectURL (HttpResponse response) |
| | Extracts the redirect URL from response if there is one, otherwise null.
|
| |
| HttpPost | createPost (String url) |
| | Creates a HttpPost.
|
| |
| HttpClient | createClient () |
| | Creates a http client with the relevant http parameters set.
|
| |
| void | shutdownClient (HttpClient httpClient) |
| |
◆ HttpExchangeConnector()
| eu.baltrad.beast.exchange.json.HttpExchangeConnector.HttpExchangeConnector |
( |
| ) |
|
|
inline |
◆ createByteArrayEntity()
| ByteArrayEntity eu.baltrad.beast.exchange.json.HttpExchangeConnector.createByteArrayEntity |
( |
byte[] | arr | ) |
|
|
inlineprotected |
Creates a byte array entity for use in a http post.
- Parameters
-
| arr | the byte array to be wrapped in the byte array entity |
- Returns
- the byte array entity
◆ createClient()
| HttpClient eu.baltrad.beast.exchange.json.HttpExchangeConnector.createClient |
( |
| ) |
|
|
inlineprotected |
Creates a http client with the relevant http parameters set.
- Returns
- the http client
◆ createPost()
| HttpPost eu.baltrad.beast.exchange.json.HttpExchangeConnector.createPost |
( |
String | url | ) |
|
|
inlineprotected |
Creates a HttpPost.
- Parameters
-
| url | the url that the post is for |
- Returns
- the http post
◆ createResponse()
| ExchangeResponse eu.baltrad.beast.exchange.json.HttpExchangeConnector.createResponse |
( |
HttpResponse | response | ) |
|
|
inlineprotected |
Creates an exchange response from a http response instance.
- Parameters
-
| response | the http response |
- Returns
- the exchange response
◆ getRedirectURL()
| String eu.baltrad.beast.exchange.json.HttpExchangeConnector.getRedirectURL |
( |
HttpResponse | response | ) |
|
|
inlineprotected |
Extracts the redirect URL from response if there is one, otherwise null.
- Parameters
-
- Returns
- the redirect URL if there is any
◆ getRequestMapper()
| RequestMapper eu.baltrad.beast.exchange.json.HttpExchangeConnector.getRequestMapper |
( |
| ) |
|
|
inline |
- Returns
- the request mapper
◆ isRedirected()
| boolean eu.baltrad.beast.exchange.json.HttpExchangeConnector.isRedirected |
( |
HttpResponse | response | ) |
|
|
inlineprotected |
Checks if there is an indication that the http url has changed.
- Parameters
-
- Returns
- true if there is an indication that address has been changed
◆ parse()
| ExchangeMessage eu.baltrad.beast.exchange.json.HttpExchangeConnector.parse |
( |
InputStream | json | ) |
|
|
inline |
Parses a http key authorization request according to protocol version 2.2.
- Parameters
-
- Returns
- the parsed authorization request if parsable otherwise a HttpConnectorException will be thrown
Implements eu.baltrad.beast.exchange.ExchangeConnector.
◆ send() [1/3]
◆ send() [2/3]
◆ send() [3/3]
| ExchangeResponse eu.baltrad.beast.exchange.json.HttpExchangeConnector.send |
( |
String | remoteAddress, |
|
|
String | json ) |
|
inline |
Sends the authorization request as a json message over http.
- Parameters
-
| remoteAddress | the remote address |
| json | the json string |
- Returns
- the status code
◆ sendDexStyle()
◆ setRequestMapper()
| void eu.baltrad.beast.exchange.json.HttpExchangeConnector.setRequestMapper |
( |
RequestMapper | requestMapper | ) |
|
|
inline |
- Parameters
-
| requestMapper | the request mapper |
◆ setSecurityManager()
| void eu.baltrad.beast.exchange.json.HttpExchangeConnector.setSecurityManager |
( |
ISecurityManager | securityManager | ) |
|
|
inline |
- Parameters
-
| securityManager | the security manager to be used |
◆ shutdownClient()
| void eu.baltrad.beast.exchange.json.HttpExchangeConnector.shutdownClient |
( |
HttpClient | httpClient | ) |
|
|
inlineprotected |
The documentation for this class was generated from the following file:
- src/eu/baltrad/beast/exchange/json/HttpExchangeConnector.java