BaltradDex
BALTRAD Data Exchange System
Loading...
Searching...
No Matches
eu.baltrad.dex.net.protocol.ProtocolManager Interface Reference
Inheritance diagram for eu.baltrad.dex.net.protocol.ProtocolManager:
eu.baltrad.dex.net.protocol.impl.ProtocolVersionManager

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)
 

Detailed Description

All access to the communication protocol can be aquired through this manager.

Author
Anders Henja

Member Function Documentation

◆ createParser() [1/2]

ResponseParser eu.baltrad.dex.net.protocol.ProtocolManager.createParser ( HttpResponse hresp)

Creates a response parser that can handle the http response.

Parameters
hrespthe response that should be parsed.
Returns
the parser

Implemented in eu.baltrad.dex.net.protocol.impl.ProtocolVersionManager.

◆ createParser() [2/2]

RequestParser eu.baltrad.dex.net.protocol.ProtocolManager.createParser ( HttpServletRequest request)

Creates a request parser that can handle http servlet requests

Parameters
requestthe http request
Returns
the request parser

Implemented in eu.baltrad.dex.net.protocol.impl.ProtocolVersionManager.

◆ getFactory() [1/2]

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.

Parameters
nodeAddressthe node address
Returns
the request factory

Implemented in eu.baltrad.dex.net.protocol.impl.ProtocolVersionManager.

◆ getFactory() [2/2]

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

Parameters
nodeAddressthe node address
versionthe version to use
Returns
the request factory

Implemented in eu.baltrad.dex.net.protocol.impl.ProtocolVersionManager.

◆ getJsonProtocolForVersion()

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.

Parameters
versionthe dex protocol version
Returns
the json protocol to use or null if this version does not support json

Implemented in eu.baltrad.dex.net.protocol.impl.ProtocolVersionManager.

◆ getVersion()

String eu.baltrad.dex.net.protocol.ProtocolManager.getVersion ( )
Returns
the protocol version that is set as default for the manager

Implemented in eu.baltrad.dex.net.protocol.impl.ProtocolVersionManager.


The documentation for this interface was generated from the following file: