org.objectweb.jeremie.stub_factories.std
Class StdStubFactory.RequestSessionImpl

java.lang.Object
  extended by org.objectweb.jeremie.stub_factories.std.StdStubFactory.RequestSessionImpl
All Implemented Interfaces:
org.objectweb.jonathan.protocols.api.RequestSession
Enclosing class:
StdStubFactory

protected class StdStubFactory.RequestSessionImpl
extends Object
implements org.objectweb.jonathan.protocols.api.RequestSession

Provides an implementation of a request session.


Constructor Summary
protected StdStubFactory.RequestSessionImpl(Object target)
          Builds a new RequestSessionImpl.
 
Method Summary
 boolean equals(Object other)
           
 Object getTarget()
          Returns this session's target.
 int hashCode()
           
 void send(org.objectweb.jonathan.presentation.api.UnMarshaller message, org.objectweb.jonathan.protocols.api.ReplySession session)
          Sends a message to the session target.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StdStubFactory.RequestSessionImpl

protected StdStubFactory.RequestSessionImpl(Object target)
Builds a new RequestSessionImpl.

Parameters:
target - the session target.
Method Detail

send

public void send(org.objectweb.jonathan.presentation.api.UnMarshaller message,
                 org.objectweb.jonathan.protocols.api.ReplySession session)
          throws org.objectweb.jonathan.apis.kernel.JonathanException
Sends a message to the session target.

Specified by:
send in interface org.objectweb.jonathan.protocols.api.RequestSession
Parameters:
message - the message to be sent;
session - the reply session to be used for answering the request.
Throws:
org.objectweb.jonathan.apis.kernel.JonathanException - if something goes wrong.

getTarget

public Object getTarget()
Returns this session's target.

Specified by:
getTarget in interface org.objectweb.jonathan.protocols.api.RequestSession
Returns:
this session's target.

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object