org.openbandy.net.server
Interface ServerService
- All Known Implementing Classes:
- PingPongService, RemoteStoreService
public interface ServerService
A Service is a server side logic component which handles
incoming request accordingly. Hence it defines the communication
protocol for a given server service.
(c) Copyright Philipp Bolliger 2007, ALL RIGHTS RESERVED.
- Version:
- 1.1
- Author:
- Philipp Bolliger (philipp@bolliger.name)
getNewInstance
ServerService getNewInstance()
- Returns:
- A new instance of this service.
getName
java.lang.String getName()
- Returns:
- The name of the service.
getProtocol
ServerProtocol getProtocol()
- Returns:
- The corresponding BandyProtocol.
processMessage
Message processMessage(Message message)
- This method may be called for every message coming in
on
port
. It will process the message
according to its implementation. Eventually the service
can return a response message will be sent back to the
request issuer.
- Parameters:
message
- The Message that must be processed.
- Returns:
- The message that should be sent back or null otherwise.