![]() |
BaltradDex
BALTRAD Data Exchange System
|
Public Member Functions | |
| ProtocolVersionResponseParser (HttpResponse httpResponse) | |
| int | getStatusCode () |
| String | getNodeName () |
| String | getProtocolVersion () |
| String | getConfiguredProtocolVersion () |
| String | getReasonPhrase () |
| Set< DataSource > | getDataSources () |
| User | getUserAccount () |
| List< Subscription > | getSubscriptions () |
| boolean | isRedirected () |
| String | getRedirectURL () |
Protected Member Functions | |
| ProtocolVersionResponseParser () | |
| void | init (HttpResponse httpResponse) |
| int | parseStatusCode (HttpResponse response) |
| String | parseNodeName (HttpResponse response) |
| String | parseProtocolVersion (HttpResponse response) |
| String | readResponse () |
Protected Attributes | |
| HttpResponse | httpResponse |
| JsonProtocol | jsonProtocol |
Supports parsing of responses and is able to manage different versions of the dex protocol
|
inline |
Constructor. Initially parses statusCode, nodeName and protocolVersion since there is no meaning to allow the constructor to be created without this information.
| httpResponse | the http response to parse |
| ResponseParserException | if above mentioned values not can be extracted |
|
inlineprotected |
Protected default constructor Mostly for test purpose
|
inline |
|
inline |
Implements eu.baltrad.dex.net.protocol.ResponseParser.
|
inline |
Implements eu.baltrad.dex.net.protocol.ResponseParser.
|
inline |
Implements eu.baltrad.dex.net.protocol.ResponseParser.
|
inline |
Implements eu.baltrad.dex.net.protocol.ResponseParser.
|
inline |
Implements eu.baltrad.dex.net.protocol.ResponseParser.
|
inline |
Implements eu.baltrad.dex.net.protocol.ResponseParser.
|
inline |
|
inline |
Implements eu.baltrad.dex.net.protocol.ResponseParser.
|
inlineprotected |
Initializes the object with the http response
| httpResponse | the http response |
|
inline |
|
inlineprotected |
Extracts the node name from the http response
| response | the http response |
|
inlineprotected |
Extracts the protocol version from the http response
| response | the http response |
|
inlineprotected |
Parses the status code from the response
| response | the response |
|
inlineprotected |
Read http response body
| response | Http response |
| ResponseParserException |
|
protected |
The http response that is parsed
|
protected |
The json protocol to use (if any)