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

Public Member Functions

 ProtocolVersionManager ()
 
 ProtocolVersionManager (String defaultVersion)
 
synchronized RequestFactory getFactory (String nodeAddress)
 
synchronized RequestFactory getFactory (String nodeAddress, String version)
 
String getVersion ()
 
JsonProtocol getJsonProtocolForVersion (String version)
 
ResponseParser createParser (HttpResponse hresp)
 
RequestParser createParser (HttpServletRequest request)
 
void setXmlMessageParser (IXmlMessageParser xmlMessageParser)
 

Detailed Description

Provides the user with appropriate communication handler.

Author
Anders Henja
Date
2014-01-30

Constructor & Destructor Documentation

◆ ProtocolVersionManager() [1/2]

eu.baltrad.dex.net.protocol.impl.ProtocolVersionManager.ProtocolVersionManager ( )
inline

Default constructor

◆ ProtocolVersionManager() [2/2]

eu.baltrad.dex.net.protocol.impl.ProtocolVersionManager.ProtocolVersionManager ( String defaultVersion)
inline

Default constructor

Member Function Documentation

◆ createParser() [1/2]

ResponseParser eu.baltrad.dex.net.protocol.impl.ProtocolVersionManager.createParser ( HttpResponse hresp)
inline

Creates a response parser that can handle the http response.

Parameters
hrespthe response that should be parsed.
Returns
the parser

Implements eu.baltrad.dex.net.protocol.ProtocolManager.

◆ createParser() [2/2]

RequestParser eu.baltrad.dex.net.protocol.impl.ProtocolVersionManager.createParser ( HttpServletRequest request)
inline

Creates a request parser that can handle http servlet requests

Parameters
requestthe http request
Returns
the request parser

Implements eu.baltrad.dex.net.protocol.ProtocolManager.

◆ getFactory() [1/2]

synchronized RequestFactory eu.baltrad.dex.net.protocol.impl.ProtocolVersionManager.getFactory ( String nodeAddress)
inline

◆ getFactory() [2/2]

synchronized RequestFactory eu.baltrad.dex.net.protocol.impl.ProtocolVersionManager.getFactory ( String nodeAddress,
String version )
inline

◆ getJsonProtocolForVersion()

JsonProtocol eu.baltrad.dex.net.protocol.impl.ProtocolVersionManager.getJsonProtocolForVersion ( String version)
inline

◆ getVersion()

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

Implements eu.baltrad.dex.net.protocol.ProtocolManager.

◆ setXmlMessageParser()

void eu.baltrad.dex.net.protocol.impl.ProtocolVersionManager.setXmlMessageParser ( IXmlMessageParser xmlMessageParser)
inline
Parameters
xmlMessageParserthe xml message parser to use

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