jp.go.aist.rtm.RTC
Class IopIorInterceptor

java.lang.Object
  extended by org.omg.CORBA.LocalObject
      extended by jp.go.aist.rtm.RTC.IopIorInterceptor
All Implemented Interfaces:
java.io.Serializable, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity, org.omg.PortableInterceptor.Interceptor, org.omg.PortableInterceptor.InterceptorOperations, org.omg.PortableInterceptor.IORInterceptor, org.omg.PortableInterceptor.IORInterceptorOperations

public class IopIorInterceptor
extends org.omg.CORBA.LocalObject
implements org.omg.PortableInterceptor.IORInterceptor

Rewrites IOR by using a portable interceptor.

See Also:
Serialized Form

Constructor Summary
IopIorInterceptor(org.omg.IOP.Codec codec)
           Constructor.
 
Method Summary
 void destroy()
           Destroys he interceptor.
 void establish_components(org.omg.PortableInterceptor.IORInfo info)
           sets endpoint to TAG_ALTERNATE_IIOP_ADDRESS.
 java.lang.String name()
           Returns the name of the interceptor.
static void replacePort0(org.omg.CORBA.ORB orb)
           Replaces the end point the end point.
static void setEndpoints(java.util.ArrayList endpoints)
           Sets the end points.
static void setEndpoints(java.lang.String hostString, java.lang.String portString)
           Sets the end points.
 
Methods inherited from class org.omg.CORBA.LocalObject
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_policy_override, validate_connection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.omg.CORBA.Object
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
 

Constructor Detail

IopIorInterceptor

public IopIorInterceptor(org.omg.IOP.Codec codec)
Constructor.

Parameters:
codec - Encoding
Method Detail

setEndpoints

public static void setEndpoints(java.util.ArrayList endpoints)
Sets the end points.

Parameters:
endpoints - endpoints

setEndpoints

public static void setEndpoints(java.lang.String hostString,
                                java.lang.String portString)
Sets the end points.

Parameters:
hostString - host
portString - port

replacePort0

public static void replacePort0(org.omg.CORBA.ORB orb)
Replaces the end point the end point.

Replaces the port number of the end point with the port number of the argument.Only the end point of port number 0 is replaced.

Parameters:
orb - ORB

name

public java.lang.String name()
Returns the name of the interceptor.

Specified by:
name in interface org.omg.PortableInterceptor.InterceptorOperations
Returns:
the name of the interceptor.

destroy

public void destroy()
Destroys he interceptor.

Specified by:
destroy in interface org.omg.PortableInterceptor.InterceptorOperations

establish_components

public void establish_components(org.omg.PortableInterceptor.IORInfo info)
sets endpoint to TAG_ALTERNATE_IIOP_ADDRESS.

Specified by:
establish_components in interface org.omg.PortableInterceptor.IORInterceptorOperations
Parameters:
info - IORInfo