BEAST
eu.baltrad.beast.admin.JsonCommandParser Interface Reference

Interface for processing commands. More...

Inheritance diagram for eu.baltrad.beast.admin.JsonCommandParser:
eu.baltrad.beast.admin.JsonCommandParserImpl

Public Member Functions

Command parse (InputStream inputStream)
 Parses a JSON request if supported.
 
Command parse (String s)
 Parses a JSON request if supported.
 
String getHelp ()
 
String getHelp (String method)
 Returns help about specified method.
 

Detailed Description

Interface for processing commands.

Author
anders

Member Function Documentation

◆ getHelp() [1/2]

String eu.baltrad.beast.admin.JsonCommandParser.getHelp ( )
Returns
the help as a json text

Implemented in eu.baltrad.beast.admin.JsonCommandParserImpl.

◆ getHelp() [2/2]

String eu.baltrad.beast.admin.JsonCommandParser.getHelp ( String method)

Returns help about specified method.

If method is null, then this is same as calling getHelp()

Parameters
methodthe method
Returns
the help text

Implemented in eu.baltrad.beast.admin.JsonCommandParserImpl.

◆ parse() [1/2]

Command eu.baltrad.beast.admin.JsonCommandParser.parse ( InputStream inputStream)

Parses a JSON request if supported.

Exceptions
aRuntimeException if not handled

Implemented in eu.baltrad.beast.admin.JsonCommandParserImpl.

◆ parse() [2/2]

Command eu.baltrad.beast.admin.JsonCommandParser.parse ( String s)

Parses a JSON request if supported.

Exceptions
aRuntimeException if not handled

Implemented in eu.baltrad.beast.admin.JsonCommandParserImpl.


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