org.openbandy.example.remotestore
Class RemoteStoreProtocol
java.lang.Object
org.openbandy.example.remotestore.RemoteStoreProtocol
- All Implemented Interfaces:
- ServerProtocol
public class RemoteStoreProtocol
- extends java.lang.Object
- implements ServerProtocol
TODO describe purpose and usage
(c) Copyright Philipp Bolliger 2007, ALL RIGHTS RESERVED.
- Version:
- 0.1
- Author:
- Philipp Bolliger (philipp@bolliger.name)
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemoteStoreProtocol
public RemoteStoreProtocol()
createMessage
public Message createMessage(java.lang.String sender,
Serializable objectToStoreOnServer)
- TODO comment!
- Parameters:
sender
- objectToStoreOnServer
-
- Returns:
isValidMessage
public boolean isValidMessage(Message msg)
- Description copied from interface:
ServerProtocol
- This method will test the
message
for
validity according to its implementation.
- Specified by:
isValidMessage
in interface ServerProtocol
- Returns:
getPort
public int getPort()
- Specified by:
getPort
in interface ServerProtocol
- Returns:
- The port number of the service.