edu.uci.isr.yancees.client
Class ClientProtocolSession

java.lang.Object
  extended byedu.uci.isr.yancees.client.ClientProtocolSession
All Implemented Interfaces:
ProtocolSessionInterface

public class ClientProtocolSession
extends java.lang.Object
implements ProtocolSessionInterface

Author:
Roberto Silveira Silva Filho [rsilvafi@ics.uci.edu] This class works as a wrapper to the remote protocol session allowing the interception of messages between the local and remote implementations. It's main job is to hide the remote interaction from local users, in doing som, it converts remote exceptions to local (client-side) exceptions.

Constructor Summary
ClientProtocolSession(RemoteProtocolSessionInterface rpsi)
          Constructor of this client object
 
Method Summary
 void sendMessage(MessageInterface message)
          Send a message to the protocol plug-in that is responsible for this context
 void terminate()
          Gracefully terminates the current session
 void terminate(MessageInterface message)
          Gracefully terminates the current session
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientProtocolSession

public ClientProtocolSession(RemoteProtocolSessionInterface rpsi)
Constructor of this client object

Method Detail

sendMessage

public void sendMessage(MessageInterface message)
                 throws YanceesException
Description copied from interface: ProtocolSessionInterface
Send a message to the protocol plug-in that is responsible for this context

Specified by:
sendMessage in interface ProtocolSessionInterface
Parameters:
message - is an XML document wrapped in the message.
Throws:
YanceesException

terminate

public void terminate(MessageInterface message)
               throws YanceesException
Description copied from interface: ProtocolSessionInterface
Gracefully terminates the current session

Specified by:
terminate in interface ProtocolSessionInterface
Parameters:
message - is a finalization message to be sent to the plug-in(s) created to handle this session
Throws:
YanceesException - in case of parsing or message errors

terminate

public void terminate()
               throws YanceesException
Description copied from interface: ProtocolSessionInterface
Gracefully terminates the current session

Specified by:
terminate in interface ProtocolSessionInterface
Throws:
YanceesException - in case of parsing or message errors