BaltradDex
BALTRAD Data Exchange System
|
Public Member Functions | |
RequestFactory | getFactory (String nodeAddress) |
RequestFactory | getFactory (String nodeAddress, String version) |
ResponseParser | createParser (HttpResponse hresp) |
RequestParser | createParser (HttpServletRequest request) |
String | getVersion () |
JsonProtocol | getJsonProtocolForVersion (String version) |
All access to the communication protocol can be aquired through this manager.
ResponseParser eu.baltrad.dex.net.protocol.ProtocolManager.createParser | ( | HttpResponse | hresp | ) |
Creates a response parser that can handle the http response.
hresp | the response that should be parsed. |
Implemented in eu.baltrad.dex.net.protocol.impl.ProtocolVersionManager.
RequestParser eu.baltrad.dex.net.protocol.ProtocolManager.createParser | ( | HttpServletRequest | request | ) |
Creates a request parser that can handle http servlet requests
request | the http request |
Implemented in eu.baltrad.dex.net.protocol.impl.ProtocolVersionManager.
RequestFactory eu.baltrad.dex.net.protocol.ProtocolManager.getFactory | ( | String | nodeAddress | ) |
Returns or creates the factory to use for this address. The returned factory will be using the default version.
nodeAddress | the node address |
Implemented in eu.baltrad.dex.net.protocol.impl.ProtocolVersionManager.
RequestFactory eu.baltrad.dex.net.protocol.ProtocolManager.getFactory | ( | String | nodeAddress, |
String | version ) |
Returns or creates the factory for the specified version to use for this address
nodeAddress | the node address |
version | the version to use |
Implemented in eu.baltrad.dex.net.protocol.impl.ProtocolVersionManager.
JsonProtocol eu.baltrad.dex.net.protocol.ProtocolManager.getJsonProtocolForVersion | ( | String | version | ) |
Returns the json protocol handler that is used for the specified dex version. If null is returned, then this protocol version does not support json.
version | the dex protocol version |
Implemented in eu.baltrad.dex.net.protocol.impl.ProtocolVersionManager.
String eu.baltrad.dex.net.protocol.ProtocolManager.getVersion | ( | ) |
Implemented in eu.baltrad.dex.net.protocol.impl.ProtocolVersionManager.