public class CorbaClientDelegateImpl extends CorbaClientDelegate
Constructor and Description |
---|
CorbaClientDelegateImpl(ORB orb,
CorbaContactInfoList contactInfoList) |
Modifier and Type | Method and Description |
---|---|
Request |
create_request(Object obj,
Context ctx,
String operation,
NVList arg_list,
NamedValue result)
Creates a Request instance for use in the Dynamic Invocation Interface.
|
Request |
create_request(Object obj,
Context ctx,
String operation,
NVList arg_list,
NamedValue result,
ExceptionList exclist,
ContextList ctxlist)
Creates a Request instance for use in the Dynamic Invocation Interface.
|
Object |
duplicate(Object obj)
Returns a duplicate of the object reference provided.
|
boolean |
equals(Object self,
Object other)
This method overrides the org.omg.CORBA.portable.Delegate.equals method,
and does the equality check based on IOR equality.
|
String |
get_codebase(Object self)
Returns the codebase for object reference provided.
|
Object |
get_interface_def(Object obj)
Return an InterfaceDef for the object reference provided.
|
Broker |
getBroker()
The
Broker associated
with an invocation. |
ContactInfoList |
getContactInfoList()
Get the
ContactInfoList
which represents they encoding/protocol/transport combinations that
may be used to contact the service. |
int |
hash(Object obj,
int maximum)
Returns an ORB-internal identifier (hashcode) for this object reference.
|
int |
hashCode() |
int |
hashCode(Object obj)
Provides the implementation to override the hashCode() method
of the delegating CORBA object.
|
InputStream |
invoke(Object self,
OutputStream output)
invoke is called by a stub to invoke an operation.
|
boolean |
is_a(Object obj,
String dest)
Checks if the object reference is an instance of the given interface.
|
boolean |
is_equivalent(Object obj,
Object ref)
Determines if the two object references are equivalent.
|
boolean |
is_local(Object self)
Returns true if this object is implemented by a local servant.
|
boolean |
non_existent(Object obj)
Determines whether the server object for the object reference has been
destroyed.
|
ORB |
orb(Object obj)
Provides a reference to the orb associated with its parameter.
|
void |
release(Object obj)
Releases resources associated with the object reference provided.
|
void |
releaseReply(Object self,
InputStream input)
releaseReply may optionally be called by a stub to release a
reply stream back to the ORB when the unmarshaling has
completed.
|
Request |
request(Object obj,
String operation)
Creates a Request instance for use in the Dynamic Invocation Interface.
|
OutputStream |
request(Object self,
String operation,
boolean responseExpected)
request is called by a stub to obtain an OutputStream for
marshaling arguments.
|
void |
servant_postinvoke(Object self,
ServantObject servant)
servant_postinvoke() is invoked by the local stub after the operation
has been invoked on the local servant.
|
ServantObject |
servant_preinvoke(Object self,
String operation,
Class expectedType)
Returns a Java reference to the servant which should be used for this
request.
|
String |
toString(Object self)
Provides the implementation to override the toString() method
of the delegating CORBA object.
|
get_domain_managers, get_policy, set_policy_override
public CorbaClientDelegateImpl(ORB orb, CorbaContactInfoList contactInfoList)
public Broker getBroker()
ClientDelegate
Broker
associated
with an invocation.Broker
public ContactInfoList getContactInfoList()
ClientDelegate
ContactInfoList
which represents they encoding/protocol/transport combinations that
may be used to contact the service.ContactInfoList
public OutputStream request(Object self, String operation, boolean responseExpected)
Delegate
request
in class Delegate
self
- The object reference which delegated to this delegate.operation
- a string containing the operation name.
The operation name corresponds to the operation name as it would be
encoded in a GIOP request.responseExpected
- false if the operation is a one way operation,
and true otherwise.portable
package comments for unimplemented featurespublic InputStream invoke(Object self, OutputStream output) throws ApplicationException, RemarshalException
Delegate
invoke
in class Delegate
self
- The object reference which delegated to this delegate.output
- the OutputStream which contains marshaled argumentsApplicationException
- thrown when implementation throws
(upon invocation) an exception defined as part of its remote method
definition.RemarshalException
- thrown when remarshalling fails.portable
package comments for unimplemented featurespublic void releaseReply(Object self, InputStream input)
Delegate
releaseReply
in class Delegate
self
- The object reference which delegated to this delegate.input
- the InputStream returned from invoke().portable
package comments for unimplemented featurespublic Object get_interface_def(Object obj)
Delegate
get_interface_def
in class Delegate
obj
- The object reference whose InterfaceDef needs to be returnedpublic boolean is_a(Object obj, String dest)
Delegate
public boolean non_existent(Object obj)
Delegate
non_existent
in class Delegate
obj
- The object reference which delegated to this delegate.public Object duplicate(Object obj)
Delegate
public void release(Object obj)
Delegate
public boolean is_equivalent(Object obj, Object ref)
Delegate
is_equivalent
in class Delegate
obj
- The object reference which delegated to this delegate.ref
- The object reference to check equivalence against.public boolean equals(Object self, Object other)
public int hashCode(Object obj)
Delegate
public int hash(Object obj, int maximum)
Delegate
public Request request(Object obj, String operation)
Delegate
public Request create_request(Object obj, Context ctx, String operation, NVList arg_list, NamedValue result)
Delegate
create_request
in class Delegate
obj
- The object reference which delegated to this delegate.ctx
- The context to be used.operation
- The name of the operation to be
invoked.arg_list
- The arguments to the operation in the
form of an NVList.result
- A container for the result as a NamedValue.public Request create_request(Object obj, Context ctx, String operation, NVList arg_list, NamedValue result, ExceptionList exclist, ContextList ctxlist)
Delegate
create_request
in class Delegate
obj
- The object reference which delegated to this delegate.ctx
- The context to be used.operation
- The name of the operation to be
invoked.arg_list
- The arguments to the operation in the
form of an NVList.result
- A container for the result as a NamedValue.exclist
- A list of possible exceptions the
operation can throw.ctxlist
- A list of context strings that need
to be resolved and sent with the
Request.public ORB orb(Object obj)
Delegate
orb
in class Delegate
obj
- the object reference which delegated to this delegate.portable
package comments for unimplemented featurespublic boolean is_local(Object self)
public ServantObject servant_preinvoke(Object self, String operation, Class expectedType)
Delegate
servant_preinvoke
in class Delegate
self
- The object reference which delegated to this delegate.operation
- a string containing the operation name.
The operation name corresponds to the operation name as it would be
encoded in a GIOP request.expectedType
- a Class object representing the expected type of the servant.
The expected type is the Class object associated with the operations
class of the stub's interface (e.g. A stub for an interface Foo,
would pass the Class object for the FooOperations interface).public void servant_postinvoke(Object self, ServantObject servant)
Delegate
servant_postinvoke
in class Delegate
self
- The object reference which delegated to this delegate.servant
- the instance of the ServantObject returned from
the servant_preinvoke() method.public String get_codebase(Object self)
Delegate
get_codebase
in class Delegate
self
- the object reference whose codebase needs to be returned.public String toString(Object self)
Delegate
Copyright © 2021 JBoss by Red Hat. All rights reserved.