![]() |
BaltradDex
BALTRAD Data Exchange System
|
Public Member Functions | |
| ProtocolVersionResponseWriter (HttpServletResponse response, String responseVersion, String supportedVersion) | |
| void | userAccountResponse (String localNodeName, User user, int status) throws IOException |
| void | dataSourcesResponse (String localNodeName, Set< DataSource > dataSources, int status) throws IOException |
| void | dataSourcesResponse (String localNodeName, List< DataSource > dataSources, int status) throws IOException |
| void | subscriptionResponse (String localNodeName, List< Subscription > subscriptions, int status) throws IOException |
| void | messageResponse (String message, int status) |
| void | statusResponse (int status) |
Protected Member Functions | |
| HttpServletResponseWrapper | createResponseWrapper (HttpServletResponse response) |
| Set< DataSource > | dsListToSet (List< DataSource > dataSources) |
| PrintWriter | createPrintWriter (HttpServletResponseWrapper wrapper) throws IOException |
| JsonProtocol | getJsonProtocol (String version) |
|
inline |
Constructor
| response | the http response |
| responseVersion | the version to be used in the response |
| supportedVersion | what version we want to use |
|
inlineprotected |
Creates the print wrapper
| wrapper | the wrapper around the servlet response |
| IOException | upon error |
|
inlineprotected |
Creates a http response wrapper.
| response | the response to wrap |
|
inline |
Implements eu.baltrad.dex.net.protocol.ResponseWriter.
|
inline |
Implements eu.baltrad.dex.net.protocol.ResponseWriter.
|
inlineprotected |
Creates a set from a list
| dataSources | the list to convert |
|
inlineprotected |
Returns a json protocol suitable for provided version
| version | the version |
|
inline |
Implements eu.baltrad.dex.net.protocol.ResponseWriter.
|
inline |
|
inline |
Implements eu.baltrad.dex.net.protocol.ResponseWriter.
|
inline |
Implements eu.baltrad.dex.net.protocol.ResponseWriter.