Class prominence.msgx.GenericSourceIDHandler
All Packages Class Hierarchy This Package Previous Next Index
Class prominence.msgx.GenericSourceIDHandler
java.lang.Object
|
+----java.lang.Thread
|
+----prominence.msg.GenericHandler
|
+----prominence.msgx.GenericSourceIDHandler
- public class GenericSourceIDHandler
- extends GenericHandler
A variant of the GenericHandler classes that supports message
source identification, i.e., all messages are prefixed with a
header that indicates the sender's name.
- See Also:
- GenericSourceIDServer
-
GenericSourceIDHandler(Hashtable, InputStream, OutputStream)
- Creates a new GenericSourceIDHandler with a specified
routing table and a communication channel to the client.
-
send(byte[], MessageOutput)
- Sends a message body to a specified MessageOutput.
GenericSourceIDHandler
public GenericSourceIDHandler(Hashtable routes,
InputStream i,
OutputStream o)
- Creates a new GenericSourceIDHandler with a specified
routing table and a communication channel to the client.
- Parameters:
- routes - The server routing table
- i - An InputStream from the client
- o - An OutputStream to the client
send
protected void send(byte buffer[],
MessageOutput o) throws IOException
- Sends a message body to a specified MessageOutput.
Does not send a message back to the sender or to null.
Attaches a multiplexing header to the message that consists
of the sending client's name.
- Throws: IOException
- Should not occur; we are writing to a Queue.
- Overrides:
- send in class GenericHandler
All Packages Class Hierarchy This Package Previous Next Index