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

Public Member Functions

 ProtocolVersionRequestParser (HttpServletRequest request, String defaultVersion, IXmlMessageParser xmlMessageParser)
 
String getMessage ()
 
String getSignature ()
 
String getUser ()
 
String getNodeName ()
 
String getProtocolVersion ()
 
ResponseWriter getWriter (HttpServletResponse response)
 
boolean isAuthenticated (Authenticator authenticator) throws KeyczarException
 
User getUserAccount ()
 
Set< DataSourcegetDataSources ()
 
List< SubscriptiongetSubscriptions ()
 
IBltXmlMessage getBltXmlMessage ()
 

Protected Member Functions

String readInputStream () throws IOException
 
NodeRequest createNodeRequest (HttpServletRequest req)
 
JsonProtocol getJsonProtocol (String version)
 

Detailed Description

Author
Anders Henja

Constructor & Destructor Documentation

◆ ProtocolVersionRequestParser()

eu.baltrad.dex.net.protocol.impl.ProtocolVersionRequestParser.ProtocolVersionRequestParser ( HttpServletRequest request,
String defaultVersion,
IXmlMessageParser xmlMessageParser )
inline

Constructor

Parameters
requestthe http request
defaultVersionthe default version that we want to use for the communication.
xmlMessageParseran xml message parser instance

Member Function Documentation

◆ createNodeRequest()

NodeRequest eu.baltrad.dex.net.protocol.impl.ProtocolVersionRequestParser.createNodeRequest ( HttpServletRequest req)
inlineprotected

Creates a node request from the servlet request

Parameters
reqthe servlet request
Returns
the node request

◆ getBltXmlMessage()

IBltXmlMessage eu.baltrad.dex.net.protocol.impl.ProtocolVersionRequestParser.getBltXmlMessage ( )
inline

◆ getDataSources()

Set< DataSource > eu.baltrad.dex.net.protocol.impl.ProtocolVersionRequestParser.getDataSources ( )
inline

◆ getJsonProtocol()

JsonProtocol eu.baltrad.dex.net.protocol.impl.ProtocolVersionRequestParser.getJsonProtocol ( String version)
inlineprotected
Parameters
versionthe protocol version we are using
Returns
the json protocol to use for this version

◆ getMessage()

String eu.baltrad.dex.net.protocol.impl.ProtocolVersionRequestParser.getMessage ( )
inline

◆ getNodeName()

String eu.baltrad.dex.net.protocol.impl.ProtocolVersionRequestParser.getNodeName ( )
inline

◆ getProtocolVersion()

String eu.baltrad.dex.net.protocol.impl.ProtocolVersionRequestParser.getProtocolVersion ( )
inline

◆ getSignature()

String eu.baltrad.dex.net.protocol.impl.ProtocolVersionRequestParser.getSignature ( )
inline

◆ getSubscriptions()

List< Subscription > eu.baltrad.dex.net.protocol.impl.ProtocolVersionRequestParser.getSubscriptions ( )
inline

◆ getUser()

String eu.baltrad.dex.net.protocol.impl.ProtocolVersionRequestParser.getUser ( )
inline

◆ getUserAccount()

User eu.baltrad.dex.net.protocol.impl.ProtocolVersionRequestParser.getUserAccount ( )
inline

◆ getWriter()

ResponseWriter eu.baltrad.dex.net.protocol.impl.ProtocolVersionRequestParser.getWriter ( HttpServletResponse response)
inline
See also
eu.baltrad.dex.net.protocol.RequestParser.getWriter(javax.servlet.http.HttpServletResponse)

Implements eu.baltrad.dex.net.protocol.RequestParser.

◆ isAuthenticated()

boolean eu.baltrad.dex.net.protocol.impl.ProtocolVersionRequestParser.isAuthenticated ( Authenticator authenticator) throws KeyczarException
inline

◆ readInputStream()

String eu.baltrad.dex.net.protocol.impl.ProtocolVersionRequestParser.readInputStream ( ) throws IOException
inlineprotected
Returns
the input stream as UTF-8
Exceptions
IOExceptionupon failure

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