BEAST
eu.baltrad.beast.exchange.json.RequestMapper Interface Reference

Translates between json and objects used for exchange. More...

Inheritance diagram for eu.baltrad.beast.exchange.json.RequestMapper:
eu.baltrad.beast.exchange.json.RequestMapperImpl

Public Member Functions

String toJson (AuthorizationRequest request)
 Translates an authorization request into a json string.
 
ExchangeMessage parse (InputStream jsonStream)
 Parses an input stream containing json.
 
ExchangeMessage parse (String json)
 Parses a json string.
 

Detailed Description

Translates between json and objects used for exchange.

Author
anders

Member Function Documentation

◆ parse() [1/2]

ExchangeMessage eu.baltrad.beast.exchange.json.RequestMapper.parse ( InputStream jsonStream)

Parses an input stream containing json.

Parameters
jsonStreamthe json stream
Returns
the exchange message

Implemented in eu.baltrad.beast.exchange.json.RequestMapperImpl.

◆ parse() [2/2]

ExchangeMessage eu.baltrad.beast.exchange.json.RequestMapper.parse ( String json)

Parses a json string.

Parameters
jsonthe json string
Returns
the exchange message

Implemented in eu.baltrad.beast.exchange.json.RequestMapperImpl.

◆ toJson()

String eu.baltrad.beast.exchange.json.RequestMapper.toJson ( AuthorizationRequest request)

Translates an authorization request into a json string.

Parameters
requestthe request
Returns
the json string

Implemented in eu.baltrad.beast.exchange.json.RequestMapperImpl.


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