BaltradDex
BALTRAD Data Exchange System
Loading...
Searching...
No Matches
eu.baltrad.dex.net.request.impl.NodeRequest Class Reference
Inheritance diagram for eu.baltrad.dex.net.request.impl.NodeRequest:
eu.baltrad.dex.net.request.INodeRequest

Public Member Functions

 NodeRequest (HttpServletRequest request)
 
String getMessage ()
 
String getSignature ()
 
String getUser ()
 
String getNodeName ()
 
String getProtocolVersion ()
 

Additional Inherited Members

- Static Public Attributes inherited from eu.baltrad.dex.net.request.INodeRequest
static final String[] HEADERS = {"Content-Type", "Content-MD5", "Date"}
 
static final String NODE_NAME_HDR = "Node-Name"
 
static final String AUTH_HDR = "Authorization"
 
static final String HDR_SEPARATOR = ":"
 
static final String PROTOCOL_VERSION_HDR = "DEX-Protocol-Version"
 

Detailed Description

Http servlet request wrapper.

Author
Maciej Szewczykowski | macie.nosp@m.j@ba.nosp@m.ltrad.nosp@m..eu
Version
1.2.2
Since
1.1.1

Constructor & Destructor Documentation

◆ NodeRequest()

eu.baltrad.dex.net.request.impl.NodeRequest.NodeRequest ( HttpServletRequest request)
inline

Constructor.

Parameters
requestHttp servlet request

Member Function Documentation

◆ getMessage()

String eu.baltrad.dex.net.request.impl.NodeRequest.getMessage ( )
inline

Retrieves message for authentication.

Returns
Message to be signed

Implements eu.baltrad.dex.net.request.INodeRequest.

◆ getNodeName()

String eu.baltrad.dex.net.request.impl.NodeRequest.getNodeName ( )
inline

Retrieves node name from request.

Returns
Name of the requesting node

Implements eu.baltrad.dex.net.request.INodeRequest.

◆ getProtocolVersion()

String eu.baltrad.dex.net.request.impl.NodeRequest.getProtocolVersion ( )
inline
Returns
the protocol version. If nothing found, empty string should be returned. null should never be returned.

Implements eu.baltrad.dex.net.request.INodeRequest.

◆ getSignature()

String eu.baltrad.dex.net.request.impl.NodeRequest.getSignature ( )
inline

Extracts signature from request header.

Returns
Signature string

Implements eu.baltrad.dex.net.request.INodeRequest.

◆ getUser()

String eu.baltrad.dex.net.request.impl.NodeRequest.getUser ( )
inline

Extracts user name from request header.

Returns
User identity string

Implements eu.baltrad.dex.net.request.INodeRequest.


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