org.omg.CORBA.portable
Class Delegate

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by org.omg.CORBA.portable.Delegate
Direct Known Subclasses:
Delegate sample code for org.omg.CORBA_2_3.portable.Delegate definition code for org.omg.CORBA_2_3.portable.Delegate

public abstract class Delegate
extends Object sample code for java.lang.Object definition code for java.lang.Object

Specifies a portable API for ORB-vendor-specific implementation of the org.omg.CORBA.Object methods. Each stub (proxy) contains a delegate object, to which all org.omg.CORBA.Object methods are forwarded. This allows a stub generated by one vendor's ORB to work with the delegate from another vendor's ORB.

See Also:
Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object

Constructor Summary
Delegate sample code for org.omg.CORBA.portable.Delegate.Delegate() definition code for org.omg.CORBA.portable.Delegate.Delegate() ()
           
 
Method Summary
abstract  Request sample code for org.omg.CORBA.Request definition code for org.omg.CORBA.Request create_request sample code for org.omg.CORBA.portable.Delegate.create_request(org.omg.CORBA.Object, org.omg.CORBA.Context, java.lang.String, org.omg.CORBA.NVList, org.omg.CORBA.NamedValue) definition code for org.omg.CORBA.portable.Delegate.create_request(org.omg.CORBA.Object, org.omg.CORBA.Context, java.lang.String, org.omg.CORBA.NVList, org.omg.CORBA.NamedValue) (Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  obj, Context sample code for org.omg.CORBA.Context definition code for org.omg.CORBA.Context  ctx, String sample code for java.lang.String definition code for java.lang.String  operation, NVList sample code for org.omg.CORBA.NVList definition code for org.omg.CORBA.NVList  arg_list, NamedValue sample code for org.omg.CORBA.NamedValue definition code for org.omg.CORBA.NamedValue  result)
          Creates a Request instance for use in the Dynamic Invocation Interface.
abstract  Request sample code for org.omg.CORBA.Request definition code for org.omg.CORBA.Request create_request sample code for org.omg.CORBA.portable.Delegate.create_request(org.omg.CORBA.Object, org.omg.CORBA.Context, java.lang.String, org.omg.CORBA.NVList, org.omg.CORBA.NamedValue, org.omg.CORBA.ExceptionList, org.omg.CORBA.ContextList) definition code for org.omg.CORBA.portable.Delegate.create_request(org.omg.CORBA.Object, org.omg.CORBA.Context, java.lang.String, org.omg.CORBA.NVList, org.omg.CORBA.NamedValue, org.omg.CORBA.ExceptionList, org.omg.CORBA.ContextList) (Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  obj, Context sample code for org.omg.CORBA.Context definition code for org.omg.CORBA.Context  ctx, String sample code for java.lang.String definition code for java.lang.String  operation, NVList sample code for org.omg.CORBA.NVList definition code for org.omg.CORBA.NVList  arg_list, NamedValue sample code for org.omg.CORBA.NamedValue definition code for org.omg.CORBA.NamedValue  result, ExceptionList sample code for org.omg.CORBA.ExceptionList definition code for org.omg.CORBA.ExceptionList  exclist, ContextList sample code for org.omg.CORBA.ContextList definition code for org.omg.CORBA.ContextList  ctxlist)
          Creates a Request instance for use in the Dynamic Invocation Interface.
abstract  Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object duplicate sample code for org.omg.CORBA.portable.Delegate.duplicate(org.omg.CORBA.Object) definition code for org.omg.CORBA.portable.Delegate.duplicate(org.omg.CORBA.Object) (Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  obj)
          Returns a duplicate of the object reference provided.
 boolean equals sample code for org.omg.CORBA.portable.Delegate.equals(org.omg.CORBA.Object, java.lang.Object) definition code for org.omg.CORBA.portable.Delegate.equals(org.omg.CORBA.Object, java.lang.Object) (Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  self, Object sample code for java.lang.Object definition code for java.lang.Object  obj)
          Provides the implementation to override the equals(java.lang.Object obj) method of the delegating CORBA object.
 DomainManager sample code for org.omg.CORBA.DomainManager definition code for org.omg.CORBA.DomainManager [] get_domain_managers sample code for org.omg.CORBA.portable.Delegate.get_domain_managers(org.omg.CORBA.Object) definition code for org.omg.CORBA.portable.Delegate.get_domain_managers(org.omg.CORBA.Object) (Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  self)
          Retrieves the DomainManagers of this object.
abstract  Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object get_interface_def sample code for org.omg.CORBA.portable.Delegate.get_interface_def(org.omg.CORBA.Object) definition code for org.omg.CORBA.portable.Delegate.get_interface_def(org.omg.CORBA.Object) (Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  self)
          Return an InterfaceDef for the object reference provided.
 Policy sample code for org.omg.CORBA.Policy definition code for org.omg.CORBA.Policy get_policy sample code for org.omg.CORBA.portable.Delegate.get_policy(org.omg.CORBA.Object, int) definition code for org.omg.CORBA.portable.Delegate.get_policy(org.omg.CORBA.Object, int) (Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  self, int policy_type)
          Returns the Policy object of the specified type which applies to this object.
abstract  int hash sample code for org.omg.CORBA.portable.Delegate.hash(org.omg.CORBA.Object, int) definition code for org.omg.CORBA.portable.Delegate.hash(org.omg.CORBA.Object, int) (Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  obj, int max)
          Returns an ORB-internal identifier (hashcode) for this object reference.
 int hashCode sample code for org.omg.CORBA.portable.Delegate.hashCode(org.omg.CORBA.Object) definition code for org.omg.CORBA.portable.Delegate.hashCode(org.omg.CORBA.Object) (Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  self)
          Provides the implementation to override the hashCode() method of the delegating CORBA object.
 InputStream sample code for org.omg.CORBA.portable.InputStream definition code for org.omg.CORBA.portable.InputStream invoke sample code for org.omg.CORBA.portable.Delegate.invoke(org.omg.CORBA.Object, org.omg.CORBA.portable.OutputStream) definition code for org.omg.CORBA.portable.Delegate.invoke(org.omg.CORBA.Object, org.omg.CORBA.portable.OutputStream) (Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  self, OutputStream sample code for org.omg.CORBA.portable.OutputStream definition code for org.omg.CORBA.portable.OutputStream  output)
          invoke is called by a stub to invoke an operation.
abstract  boolean is_a sample code for org.omg.CORBA.portable.Delegate.is_a(org.omg.CORBA.Object, java.lang.String) definition code for org.omg.CORBA.portable.Delegate.is_a(org.omg.CORBA.Object, java.lang.String) (Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  obj, String sample code for java.lang.String definition code for java.lang.String  repository_id)
          Checks if the object reference is an instance of the given interface.
abstract  boolean is_equivalent sample code for org.omg.CORBA.portable.Delegate.is_equivalent(org.omg.CORBA.Object, org.omg.CORBA.Object) definition code for org.omg.CORBA.portable.Delegate.is_equivalent(org.omg.CORBA.Object, org.omg.CORBA.Object) (Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  obj, Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  other)
          Determines if the two object references are equivalent.
 boolean is_local sample code for org.omg.CORBA.portable.Delegate.is_local(org.omg.CORBA.Object) definition code for org.omg.CORBA.portable.Delegate.is_local(org.omg.CORBA.Object) (Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  self)
          Returns true if this object is implemented by a local servant.
abstract  boolean non_existent sample code for org.omg.CORBA.portable.Delegate.non_existent(org.omg.CORBA.Object) definition code for org.omg.CORBA.portable.Delegate.non_existent(org.omg.CORBA.Object) (Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  obj)
          Determines whether the server object for the object reference has been destroyed.
 ORB sample code for org.omg.CORBA.ORB definition code for org.omg.CORBA.ORB orb sample code for org.omg.CORBA.portable.Delegate.orb(org.omg.CORBA.Object) definition code for org.omg.CORBA.portable.Delegate.orb(org.omg.CORBA.Object) (Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  obj)
          Provides a reference to the orb associated with its parameter.
abstract  void release sample code for org.omg.CORBA.portable.Delegate.release(org.omg.CORBA.Object) definition code for org.omg.CORBA.portable.Delegate.release(org.omg.CORBA.Object) (Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  obj)
          Releases resources associated with the object reference provided.
 void releaseReply sample code for org.omg.CORBA.portable.Delegate.releaseReply(org.omg.CORBA.Object, org.omg.CORBA.portable.InputStream) definition code for org.omg.CORBA.portable.Delegate.releaseReply(org.omg.CORBA.Object, org.omg.CORBA.portable.InputStream) (Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  self, InputStream sample code for org.omg.CORBA.portable.InputStream definition code for org.omg.CORBA.portable.InputStream  input)
          releaseReply may optionally be called by a stub to release a reply stream back to the ORB when the unmarshaling has completed.
abstract  Request sample code for org.omg.CORBA.Request definition code for org.omg.CORBA.Request request sample code for org.omg.CORBA.portable.Delegate.request(org.omg.CORBA.Object, java.lang.String) definition code for org.omg.CORBA.portable.Delegate.request(org.omg.CORBA.Object, java.lang.String) (Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  obj, String sample code for java.lang.String definition code for java.lang.String  operation)
          Creates a Request instance for use in the Dynamic Invocation Interface.
 OutputStream sample code for org.omg.CORBA.portable.OutputStream definition code for org.omg.CORBA.portable.OutputStream request sample code for org.omg.CORBA.portable.Delegate.request(org.omg.CORBA.Object, java.lang.String, boolean) definition code for org.omg.CORBA.portable.Delegate.request(org.omg.CORBA.Object, java.lang.String, boolean) (Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  self, String sample code for java.lang.String definition code for java.lang.String  operation, boolean responseExpected)
          request is called by a stub to obtain an OutputStream for marshaling arguments.
 void servant_postinvoke sample code for org.omg.CORBA.portable.Delegate.servant_postinvoke(org.omg.CORBA.Object, org.omg.CORBA.portable.ServantObject) definition code for org.omg.CORBA.portable.Delegate.servant_postinvoke(org.omg.CORBA.Object, org.omg.CORBA.portable.ServantObject) (Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  self, ServantObject sample code for org.omg.CORBA.portable.ServantObject definition code for org.omg.CORBA.portable.ServantObject  servant)
          servant_postinvoke() is invoked by the local stub after the operation has been invoked on the local servant.
 ServantObject sample code for org.omg.CORBA.portable.ServantObject definition code for org.omg.CORBA.portable.ServantObject servant_preinvoke sample code for org.omg.CORBA.portable.Delegate.servant_preinvoke(org.omg.CORBA.Object, java.lang.String, java.lang.Class) definition code for org.omg.CORBA.portable.Delegate.servant_preinvoke(org.omg.CORBA.Object, java.lang.String, java.lang.Class) (Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  self, String sample code for java.lang.String definition code for java.lang.String  operation, Class sample code for java.lang.Class definition code for java.lang.Class  expectedType)
          Returns a Java reference to the servant which should be used for this request.
 Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object set_policy_override sample code for org.omg.CORBA.portable.Delegate.set_policy_override(org.omg.CORBA.Object, org.omg.CORBA.Policy[], org.omg.CORBA.SetOverrideType) definition code for org.omg.CORBA.portable.Delegate.set_policy_override(org.omg.CORBA.Object, org.omg.CORBA.Policy[], org.omg.CORBA.SetOverrideType) (Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  self, Policy sample code for org.omg.CORBA.Policy definition code for org.omg.CORBA.Policy [] policies, SetOverrideType sample code for org.omg.CORBA.SetOverrideType definition code for org.omg.CORBA.SetOverrideType  set_add)
          Associates the policies passed in with a newly created object reference that it returns.
 String sample code for java.lang.String definition code for java.lang.String toString sample code for org.omg.CORBA.portable.Delegate.toString(org.omg.CORBA.Object) definition code for org.omg.CORBA.portable.Delegate.toString(org.omg.CORBA.Object) (Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  self)
          Provides the implementation to override the toString() method of the delegating CORBA object.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

Delegate sample code for org.omg.CORBA.portable.Delegate() definition code for org.omg.CORBA.portable.Delegate()

public Delegate()
Method Detail

get_interface_def sample code for org.omg.CORBA.portable.Delegate.get_interface_def(org.omg.CORBA.Object) definition code for org.omg.CORBA.portable.Delegate.get_interface_def(org.omg.CORBA.Object)

public abstract Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  get_interface_def(Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  self)
Return an InterfaceDef for the object reference provided.

Parameters:
self - The object reference whose InterfaceDef needs to be returned
Returns:
the InterfaceDef

duplicate sample code for org.omg.CORBA.portable.Delegate.duplicate(org.omg.CORBA.Object) definition code for org.omg.CORBA.portable.Delegate.duplicate(org.omg.CORBA.Object)

public abstract Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  duplicate(Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  obj)
Returns a duplicate of the object reference provided.

Parameters:
obj - The object reference whose duplicate needs to be returned
Returns:
the duplicate object reference

release sample code for org.omg.CORBA.portable.Delegate.release(org.omg.CORBA.Object) definition code for org.omg.CORBA.portable.Delegate.release(org.omg.CORBA.Object)

public abstract void release(Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  obj)
Releases resources associated with the object reference provided.

Parameters:
obj - The object reference whose resources need to be released

is_a sample code for org.omg.CORBA.portable.Delegate.is_a(org.omg.CORBA.Object, java.lang.String) definition code for org.omg.CORBA.portable.Delegate.is_a(org.omg.CORBA.Object, java.lang.String)

public abstract boolean is_a(Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  obj,
                             String sample code for java.lang.String definition code for java.lang.String  repository_id)
Checks if the object reference is an instance of the given interface.

Parameters:
obj - The object reference to be checked.
repository_id - The repository identifier of the interface to check against.
Returns:
true if the object reference supports the interface

non_existent sample code for org.omg.CORBA.portable.Delegate.non_existent(org.omg.CORBA.Object) definition code for org.omg.CORBA.portable.Delegate.non_existent(org.omg.CORBA.Object)

public abstract boolean non_existent(Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  obj)
Determines whether the server object for the object reference has been destroyed.

Parameters:
obj - The object reference which delegated to this delegate.
Returns:
true if the ORB knows authoritatively that the server object does not exist, false otherwise

is_equivalent sample code for org.omg.CORBA.portable.Delegate.is_equivalent(org.omg.CORBA.Object, org.omg.CORBA.Object) definition code for org.omg.CORBA.portable.Delegate.is_equivalent(org.omg.CORBA.Object, org.omg.CORBA.Object)

public abstract boolean is_equivalent(Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  obj,
                                      Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  other)
Determines if the two object references are equivalent.

Parameters:
obj - The object reference which delegated to this delegate.
other - The object reference to check equivalence against.
Returns:
true if the objects are CORBA-equivalent.

hash sample code for org.omg.CORBA.portable.Delegate.hash(org.omg.CORBA.Object, int) definition code for org.omg.CORBA.portable.Delegate.hash(org.omg.CORBA.Object, int)

public abstract int hash(Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  obj,
                         int max)
Returns an ORB-internal identifier (hashcode) for this object reference.

Parameters:
obj - The object reference which delegated to this delegate.
max - specifies an upper bound on the hash value returned by the ORB.
Returns:
ORB-internal hash identifier for object reference

request sample code for org.omg.CORBA.portable.Delegate.request(org.omg.CORBA.Object, java.lang.String) definition code for org.omg.CORBA.portable.Delegate.request(org.omg.CORBA.Object, java.lang.String)

public abstract Request sample code for org.omg.CORBA.Request definition code for org.omg.CORBA.Request  request(Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  obj,
                                String sample code for java.lang.String definition code for java.lang.String  operation)
Creates a Request instance for use in the Dynamic Invocation Interface.

Parameters:
obj - The object reference which delegated to this delegate.
operation - The name of the operation to be invoked using the Request instance.
Returns:
the created Request instance

create_request sample code for org.omg.CORBA.portable.Delegate.create_request(org.omg.CORBA.Object, org.omg.CORBA.Context, java.lang.String, org.omg.CORBA.NVList, org.omg.CORBA.NamedValue) definition code for org.omg.CORBA.portable.Delegate.create_request(org.omg.CORBA.Object, org.omg.CORBA.Context, java.lang.String, org.omg.CORBA.NVList, org.omg.CORBA.NamedValue)

public abstract Request sample code for org.omg.CORBA.Request definition code for org.omg.CORBA.Request  create_request(Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  obj,
                                       Context sample code for org.omg.CORBA.Context definition code for org.omg.CORBA.Context  ctx,
                                       String sample code for java.lang.String definition code for java.lang.String  operation,
                                       NVList sample code for org.omg.CORBA.NVList definition code for org.omg.CORBA.NVList  arg_list,
                                       NamedValue sample code for org.omg.CORBA.NamedValue definition code for org.omg.CORBA.NamedValue  result)
Creates a Request instance for use in the Dynamic Invocation Interface.

Parameters:
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.
Returns:
The created Request object.

create_request sample code for org.omg.CORBA.portable.Delegate.create_request(org.omg.CORBA.Object, org.omg.CORBA.Context, java.lang.String, org.omg.CORBA.NVList, org.omg.CORBA.NamedValue, org.omg.CORBA.ExceptionList, org.omg.CORBA.ContextList) definition code for org.omg.CORBA.portable.Delegate.create_request(org.omg.CORBA.Object, org.omg.CORBA.Context, java.lang.String, org.omg.CORBA.NVList, org.omg.CORBA.NamedValue, org.omg.CORBA.ExceptionList, org.omg.CORBA.ContextList)

public abstract Request sample code for org.omg.CORBA.Request definition code for org.omg.CORBA.Request  create_request(Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  obj,
                                       Context sample code for org.omg.CORBA.Context definition code for org.omg.CORBA.Context  ctx,
                                       String sample code for java.lang.String definition code for java.lang.String  operation,
                                       NVList sample code for org.omg.CORBA.NVList definition code for org.omg.CORBA.NVList  arg_list,
                                       NamedValue sample code for org.omg.CORBA.NamedValue definition code for org.omg.CORBA.NamedValue  result,
                                       ExceptionList sample code for org.omg.CORBA.ExceptionList definition code for org.omg.CORBA.ExceptionList  exclist,
                                       ContextList sample code for org.omg.CORBA.ContextList definition code for org.omg.CORBA.ContextList  ctxlist)
Creates a Request instance for use in the Dynamic Invocation Interface.

Parameters:
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.
Returns:
The created Request object.

orb sample code for org.omg.CORBA.portable.Delegate.orb(org.omg.CORBA.Object) definition code for org.omg.CORBA.portable.Delegate.orb(org.omg.CORBA.Object)

public ORB sample code for org.omg.CORBA.ORB definition code for org.omg.CORBA.ORB  orb(Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  obj)
Provides a reference to the orb associated with its parameter.

Parameters:
obj - the object reference which delegated to this delegate.
Returns:
the associated orb.
See Also:
portable package comments for unimplemented features

get_policy sample code for org.omg.CORBA.portable.Delegate.get_policy(org.omg.CORBA.Object, int) definition code for org.omg.CORBA.portable.Delegate.get_policy(org.omg.CORBA.Object, int)

public Policy sample code for org.omg.CORBA.Policy definition code for org.omg.CORBA.Policy  get_policy(Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  self,
                         int policy_type)
Returns the Policy object of the specified type which applies to this object.

Parameters:
self - The object reference which delegated to this delegate.
policy_type - The type of policy to be obtained.
Returns:
A Policy object of the type specified by the policy_type parameter.
Throws:
BAD_PARAM sample code for org.omg.CORBA.BAD_PARAM definition code for org.omg.CORBA.BAD_PARAM - raised when the value of policy type is not valid either because the specified type is not supported by this ORB or because a policy object of that type is not associated with this Object.
See Also:
portable package comments for unimplemented features

get_domain_managers sample code for org.omg.CORBA.portable.Delegate.get_domain_managers(org.omg.CORBA.Object) definition code for org.omg.CORBA.portable.Delegate.get_domain_managers(org.omg.CORBA.Object)

public DomainManager sample code for org.omg.CORBA.DomainManager definition code for org.omg.CORBA.DomainManager [] get_domain_managers(Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  self)
Retrieves the DomainManagers of this object. This allows administration services (and applications) to retrieve the domain managers, and hence the security and other policies applicable to individual objects that are members of the domain.

Parameters:
self - The object reference which delegated to this delegate.
Returns:
The list of immediately enclosing domain managers of this object. At least one domain manager is always returned in the list since by default each object is associated with at least one domain manager at creation.
See Also:
portable package comments for unimplemented features

set_policy_override sample code for org.omg.CORBA.portable.Delegate.set_policy_override(org.omg.CORBA.Object, org.omg.CORBA.Policy[], org.omg.CORBA.SetOverrideType) definition code for org.omg.CORBA.portable.Delegate.set_policy_override(org.omg.CORBA.Object, org.omg.CORBA.Policy[], org.omg.CORBA.SetOverrideType)

public Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  set_policy_override(Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  self,
                                  Policy sample code for org.omg.CORBA.Policy definition code for org.omg.CORBA.Policy [] policies,
                                  SetOverrideType sample code for org.omg.CORBA.SetOverrideType definition code for org.omg.CORBA.SetOverrideType  set_add)
Associates the policies passed in with a newly created object reference that it returns. Only certain policies that pertain to the invocation of an operation at the client end can be overridden using this operation. Attempts to override any other policy will result in the raising of the CORBA::NO_PERMISSION exception.

Parameters:
self - The object reference which delegated to this delegate.
policies - A sequence of references to Policy objects.
set_add - Indicates whether these policies should be added onto any otheroverrides that already exist (ADD_OVERRIDE) in the object reference, or they should be added to a clean override free object reference (SET_OVERRIDE).
Returns:
A new object reference with the new policies associated with it.
See Also:
portable package comments for unimplemented features

is_local sample code for org.omg.CORBA.portable.Delegate.is_local(org.omg.CORBA.Object) definition code for org.omg.CORBA.portable.Delegate.is_local(org.omg.CORBA.Object)

public boolean is_local(Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  self)
Returns true if this object is implemented by a local servant.

Parameters:
self - The object reference which delegated to this delegate.
Returns:
true only if the servant incarnating this object is located in this Java VM. Return false if the servant is not local or the ORB does not support local stubs for this particular servant. The default behavior of is_local() is to return false.

servant_preinvoke sample code for org.omg.CORBA.portable.Delegate.servant_preinvoke(org.omg.CORBA.Object, java.lang.String, java.lang.Class) definition code for org.omg.CORBA.portable.Delegate.servant_preinvoke(org.omg.CORBA.Object, java.lang.String, java.lang.Class)

public ServantObject sample code for org.omg.CORBA.portable.ServantObject definition code for org.omg.CORBA.portable.ServantObject  servant_preinvoke(Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  self,
                                       String sample code for java.lang.String definition code for java.lang.String  operation,
                                       Class sample code for java.lang.Class definition code for java.lang.Class  expectedType)
Returns a Java reference to the servant which should be used for this request. servant_preinvoke() is invoked by a local stub. If a ServantObject object is returned, then its servant field has been set to an object of the expected type (Note: the object may or may not be the actual servant instance). The local stub may cast the servant field to the expected type, and then invoke the operation directly. The ServantRequest object is valid for only one invocation, and cannot be used for more than one invocation.

Parameters:
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).
Returns:
a ServantObject object. The method may return a null value if it does not wish to support this optimization (e.g. due to security, transactions, etc). The method must return null if the servant is not of the expected type.

servant_postinvoke sample code for org.omg.CORBA.portable.Delegate.servant_postinvoke(org.omg.CORBA.Object, org.omg.CORBA.portable.ServantObject) definition code for org.omg.CORBA.portable.Delegate.servant_postinvoke(org.omg.CORBA.Object, org.omg.CORBA.portable.ServantObject)

public void servant_postinvoke(Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  self,
                               ServantObject sample code for org.omg.CORBA.portable.ServantObject definition code for org.omg.CORBA.portable.ServantObject  servant)
servant_postinvoke() is invoked by the local stub after the operation has been invoked on the local servant. This method must be called if servant_preinvoke() returned a non-null value, even if an exception was thrown by the servant's method. For this reason, the call to servant_postinvoke() should be placed in a Java finally clause.

Parameters:
self - The object reference which delegated to this delegate.
servant - the instance of the ServantObject returned from the servant_preinvoke() method.

request sample code for org.omg.CORBA.portable.Delegate.request(org.omg.CORBA.Object, java.lang.String, boolean) definition code for org.omg.CORBA.portable.Delegate.request(org.omg.CORBA.Object, java.lang.String, boolean)

public OutputStream sample code for org.omg.CORBA.portable.OutputStream definition code for org.omg.CORBA.portable.OutputStream  request(Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  self,
                            String sample code for java.lang.String definition code for java.lang.String  operation,
                            boolean responseExpected)
request is called by a stub to obtain an OutputStream for marshaling arguments. The stub must supply the operation name, and indicate if a response is expected (i.e is this a oneway call).

Parameters:
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.
Returns:
OutputStream the OutputStream into which request arguments can be marshaled.
See Also:
portable package comments for unimplemented features

invoke sample code for org.omg.CORBA.portable.Delegate.invoke(org.omg.CORBA.Object, org.omg.CORBA.portable.OutputStream) definition code for org.omg.CORBA.portable.Delegate.invoke(org.omg.CORBA.Object, org.omg.CORBA.portable.OutputStream)

public InputStream sample code for org.omg.CORBA.portable.InputStream definition code for org.omg.CORBA.portable.InputStream  invoke(Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  self,
                          OutputStream sample code for org.omg.CORBA.portable.OutputStream definition code for org.omg.CORBA.portable.OutputStream  output)
                   throws ApplicationException sample code for org.omg.CORBA.portable.ApplicationException definition code for org.omg.CORBA.portable.ApplicationException ,
                          RemarshalException sample code for org.omg.CORBA.portable.RemarshalException definition code for org.omg.CORBA.portable.RemarshalException 
invoke is called by a stub to invoke an operation. The stub provides an OutputStream that was previously returned by a request() call. invoke returns an InputStream which contains the marshaled reply. If an exception occurs, invoke may throw an ApplicationException object which contains an InputStream from which the user exception state may be unmarshaled.

Parameters:
self - The object reference which delegated to this delegate.
output - the OutputStream which contains marshaled arguments
Returns:
input the InputStream from which reply parameters can be unmarshaled.
Throws:
ApplicationException sample code for org.omg.CORBA.portable.ApplicationException definition code for org.omg.CORBA.portable.ApplicationException - thrown when implementation throws (upon invocation) an exception defined as part of its remote method definition.
RemarshalException sample code for org.omg.CORBA.portable.RemarshalException definition code for org.omg.CORBA.portable.RemarshalException - thrown when remarshalling fails.
See Also:
portable package comments for unimplemented features

releaseReply sample code for org.omg.CORBA.portable.Delegate.releaseReply(org.omg.CORBA.Object, org.omg.CORBA.portable.InputStream) definition code for org.omg.CORBA.portable.Delegate.releaseReply(org.omg.CORBA.Object, org.omg.CORBA.portable.InputStream)

public void releaseReply(Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  self,
                         InputStream sample code for org.omg.CORBA.portable.InputStream definition code for org.omg.CORBA.portable.InputStream  input)
releaseReply may optionally be called by a stub to release a reply stream back to the ORB when the unmarshaling has completed. The stub passes the InputStream returned by invoke() or ApplicationException.getInputStream(). A null value may also be passed to releaseReply, in which case the method is a noop.

Parameters:
self - The object reference which delegated to this delegate.
input - the InputStream returned from invoke().
See Also:
portable package comments for unimplemented features

toString sample code for org.omg.CORBA.portable.Delegate.toString(org.omg.CORBA.Object) definition code for org.omg.CORBA.portable.Delegate.toString(org.omg.CORBA.Object)

public String sample code for java.lang.String definition code for java.lang.String  toString(Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  self)
Provides the implementation to override the toString() method of the delegating CORBA object.

Parameters:
self - the object reference that delegated to this delegate
Returns:
a String object that represents the object reference that delegated to this Delegate object

hashCode sample code for org.omg.CORBA.portable.Delegate.hashCode(org.omg.CORBA.Object) definition code for org.omg.CORBA.portable.Delegate.hashCode(org.omg.CORBA.Object)

public int hashCode(Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  self)
Provides the implementation to override the hashCode() method of the delegating CORBA object.

Parameters:
self - the object reference that delegated to this delegate
Returns:
an int that represents the hashcode for the object reference that delegated to this Delegate object

equals sample code for org.omg.CORBA.portable.Delegate.equals(org.omg.CORBA.Object, java.lang.Object) definition code for org.omg.CORBA.portable.Delegate.equals(org.omg.CORBA.Object, java.lang.Object)

public boolean equals(Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object  self,
                      Object sample code for java.lang.Object definition code for java.lang.Object  obj)
Provides the implementation to override the equals(java.lang.Object obj) method of the delegating CORBA object.

Parameters:
self - the object reference that delegated to this delegate
obj - the Object with which to compare
Returns:
true if obj equals self; false otherwise