org.objectweb.david.libs.stub_factories.std
Class ServerDelegate
java.lang.Object
|
+--org.omg.CORBA.portable.Delegate
|
+--org.omg.CORBA_2_3.portable.Delegate
|
+--org.objectweb.david.apis.binding.DavidDelegate
|
+--org.objectweb.david.libs.stub_factories.std.JDelegate
|
+--org.objectweb.david.libs.stub_factories.std.ServerDelegate
- All Implemented Interfaces:
- Constants, Reference, RequestSession
- public class ServerDelegate
- extends JDelegate
- implements RequestSession
Class for server-side delegates.
|
Method Summary |
Object |
getTarget()
Returns the object implementation provided at creation time. |
boolean |
is_local(Object self)
Returns true if the object is local. |
ORB |
orb(Object obj)
Returns an ORB implementation (the singleton ORB in our case). |
void |
send(UnMarshaller message,
ReplySession session)
Sends a message up to a service implementation (RequestSession method) |
| Methods inherited from class org.objectweb.david.libs.stub_factories.std.JDelegate |
create_request, create_request, duplicate, finalize, get_interface, getIdentifiers, hash, is_a, is_equivalent, non_existent, release, request, setIdentifiers |
| Methods inherited from class org.omg.CORBA.portable.Delegate |
equals, get_domain_managers, get_interface_def, get_policy, hashCode, invoke, releaseReply, request, servant_postinvoke, servant_preinvoke, set_policy_override, toString |
getTarget
public Object getTarget()
- Returns the object implementation provided at creation time.
- Specified by:
getTarget in interface RequestSession
- Returns:
- the object implementation provided at creation time.
is_local
public boolean is_local(Object self)
- Returns true if the object is local.
- Overrides:
is_local in class Delegate
- Parameters:
self - the target implementation- Returns:
- true.
orb
public ORB orb(Object obj)
- Returns an ORB implementation (the singleton ORB in our case).
- Overrides:
orb in class Delegate
- Parameters:
obj - unused.- Returns:
- an ORB implementation (the singleton ORB in our case).
send
public void send(UnMarshaller message,
ReplySession session)
throws JonathanException
- Sends a message up to a service implementation (RequestSession method)
- Specified by:
send in interface RequestSession
- Parameters:
message - a request messagesession - the request session- Throws:
JonathanException - if something goes wrong.