BaltradDex
BALTRAD Data Exchange System
Loading...
Searching...
No Matches
eu.baltrad.dex.net.protocol.ResponseWriter Interface Reference
Inheritance diagram for eu.baltrad.dex.net.protocol.ResponseWriter:
eu.baltrad.dex.net.protocol.impl.ProtocolVersionResponseWriter

Public Member Functions

void userAccountResponse (String localNodeName, User user, int status) throws IOException
 
void dataSourcesResponse (String localNodeName, List< DataSource > dataSources, int status) throws IOException
 
void dataSourcesResponse (String localNodeName, Set< 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)
 

Detailed Description

Used for writing a response on a request.

Author
Anders Henja

Member Function Documentation

◆ dataSourcesResponse() [1/2]

void eu.baltrad.dex.net.protocol.ResponseWriter.dataSourcesResponse ( String localNodeName,
List< DataSource > dataSources,
int status ) throws IOException

Sends a data source response

Parameters
localNodeNamethe local node name
dataSourcesthe data sources
statusthe status
Exceptions
IOExceptionupon error

Implemented in eu.baltrad.dex.net.protocol.impl.ProtocolVersionResponseWriter.

◆ dataSourcesResponse() [2/2]

void eu.baltrad.dex.net.protocol.ResponseWriter.dataSourcesResponse ( String localNodeName,
Set< DataSource > dataSources,
int status ) throws IOException

Sends a data source response

Parameters
localNodeNamethe local node name
dataSourcesthe data sources
statusthe status
Exceptions
IOExceptionupon error

Implemented in eu.baltrad.dex.net.protocol.impl.ProtocolVersionResponseWriter.

◆ messageResponse()

void eu.baltrad.dex.net.protocol.ResponseWriter.messageResponse ( String message,
int status )

Sends a response with a reason

Parameters
messagethe reason
statusthe error message

Implemented in eu.baltrad.dex.net.protocol.impl.ProtocolVersionResponseWriter.

◆ statusResponse()

void eu.baltrad.dex.net.protocol.ResponseWriter.statusResponse ( int status)

Sends a status as a response

Parameters
statusthe status

Implemented in eu.baltrad.dex.net.protocol.impl.ProtocolVersionResponseWriter.

◆ subscriptionResponse()

void eu.baltrad.dex.net.protocol.ResponseWriter.subscriptionResponse ( String localNodeName,
List< Subscription > subscriptions,
int status ) throws IOException

Sends a subscription response

Parameters
localNodeNamethe local node name
subscriptionsthe subscriptions
statusthe status
Exceptions
IOExceptionupon error

Implemented in eu.baltrad.dex.net.protocol.impl.ProtocolVersionResponseWriter.

◆ userAccountResponse()

void eu.baltrad.dex.net.protocol.ResponseWriter.userAccountResponse ( String localNodeName,
User user,
int status ) throws IOException

Sends a user account response

Parameters
localNodeNamethe local node name
userthe user
statusthe http status
Exceptions
IOExceptionupon error

Implemented in eu.baltrad.dex.net.protocol.impl.ProtocolVersionResponseWriter.


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