net.sf.freecol.common.networking
Interface StreamedMessageHandler

All Known Implementing Classes:
AIInGameInputHandler, PreGameInputHandler, UserConnectionHandler

public interface StreamedMessageHandler

Handles streamed incoming messages.


Method Summary
 boolean accepts(java.lang.String tagName)
          Checks if the message handler support the given message.
 void handle(Connection connection, javax.xml.stream.XMLStreamReader in, javax.xml.stream.XMLStreamWriter out)
          Handles the main element of an XML message.
 

Method Detail

handle

void handle(Connection connection,
            javax.xml.stream.XMLStreamReader in,
            javax.xml.stream.XMLStreamWriter out)
Handles the main element of an XML message.

Parameters:
connection - The connection the message came from.
in - The stream containing the message.
out - The output stream for the reply.

accepts

boolean accepts(java.lang.String tagName)
Checks if the message handler support the given message.

Parameters:
tagName - The tag name of the message to check.
Returns:
The result.