com.sun.jts.pi
Class InterceptorImpl

java.lang.Object
  extended by org.omg.CORBA.LocalObject
      extended by com.sun.jts.pi.InterceptorImpl
All Implemented Interfaces:
java.io.Serializable, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity, org.omg.PortableInterceptor.ClientRequestInterceptor, org.omg.PortableInterceptor.ClientRequestInterceptorOperations, org.omg.PortableInterceptor.Interceptor, org.omg.PortableInterceptor.InterceptorOperations, org.omg.PortableInterceptor.ServerRequestInterceptor, org.omg.PortableInterceptor.ServerRequestInterceptorOperations

public class InterceptorImpl
extends org.omg.CORBA.LocalObject
implements org.omg.PortableInterceptor.ClientRequestInterceptor, org.omg.PortableInterceptor.ServerRequestInterceptor

This is the implementation of the JTS PI-based client/server interceptor. This will be called during request/reply invocation path.

Version:
1.0, $Revision: 1.7 $ on $Date: 2007/04/02 09:07:59 $
Author:
Ram Jeyaraman 11/11/2000, $Author: sankara $
See Also:
Serialized Form

Field Summary
static java.lang.String CLIENT_POLICY_CHECKING
           
static java.lang.String INTEROP_MODE
           
static java.lang.Object NO_REPLY
           
static int NO_REPLY_SLOT
           
static java.lang.Object NULL_CTX
           
static int NULL_CTX_SLOT
           
static java.lang.ThreadLocal otsThreadLocal
           
static java.lang.Object PROPER_CTX
           
static java.lang.Object REPLY
           
static org.omg.CORBA.ORB txOrb
           
 
Constructor Summary
InterceptorImpl(org.omg.PortableInterceptor.Current pic, org.omg.IOP.Codec codec, int[] slotIds, org.omg.CORBA.TSIdentification tsi)
           
 
Method Summary
 void destroy()
           
static java.lang.Object getThreadLocalData(int slot)
           
static boolean isDummyContext(org.omg.CosTransactions.PropagationContext ctx)
           
static boolean isEjbAdapterName(java.lang.String[] adapterName)
           
static boolean isNullContext(org.omg.CosTransactions.PropagationContext ctx)
           
static boolean isTxCtxtNull()
           
 java.lang.String name()
           
 void receive_exception(org.omg.PortableInterceptor.ClientRequestInfo ri)
           
 void receive_other(org.omg.PortableInterceptor.ClientRequestInfo ri)
           
 void receive_reply(org.omg.PortableInterceptor.ClientRequestInfo ri)
           
 void receive_request_service_contexts(org.omg.PortableInterceptor.ServerRequestInfo ri)
           
 void receive_request(org.omg.PortableInterceptor.ServerRequestInfo ri)
           
 void send_exception(org.omg.PortableInterceptor.ServerRequestInfo ri)
           
 void send_other(org.omg.PortableInterceptor.ServerRequestInfo ri)
           
 void send_poll(org.omg.PortableInterceptor.ClientRequestInfo ri)
           
 void send_reply(org.omg.PortableInterceptor.ServerRequestInfo ri)
           
 void send_request(org.omg.PortableInterceptor.ClientRequestInfo ri)
           
static void setOrb(org.omg.CORBA.ORB orb)
           
static void setThreadLocalData(int slot, java.lang.Object data)
           
 void setTSIdentification(org.omg.CORBA.TSIdentification tsi)
           
 
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
 

Field Detail

NO_REPLY_SLOT

public static final int NO_REPLY_SLOT
See Also:
Constant Field Values

NULL_CTX_SLOT

public static final int NULL_CTX_SLOT
See Also:
Constant Field Values

PROPER_CTX

public static final java.lang.Object PROPER_CTX

NULL_CTX

public static final java.lang.Object NULL_CTX

REPLY

public static final java.lang.Object REPLY

NO_REPLY

public static final java.lang.Object NO_REPLY

CLIENT_POLICY_CHECKING

public static final java.lang.String CLIENT_POLICY_CHECKING
See Also:
Constant Field Values

INTEROP_MODE

public static final java.lang.String INTEROP_MODE
See Also:
Constant Field Values

otsThreadLocal

public static final java.lang.ThreadLocal otsThreadLocal

txOrb

public static org.omg.CORBA.ORB txOrb
Constructor Detail

InterceptorImpl

public InterceptorImpl(org.omg.PortableInterceptor.Current pic,
                       org.omg.IOP.Codec codec,
                       int[] slotIds,
                       org.omg.CORBA.TSIdentification tsi)
Method Detail

setTSIdentification

public void setTSIdentification(org.omg.CORBA.TSIdentification tsi)

name

public java.lang.String name()
Specified by:
name in interface org.omg.PortableInterceptor.InterceptorOperations

destroy

public void destroy()
Specified by:
destroy in interface org.omg.PortableInterceptor.InterceptorOperations

send_request

public void send_request(org.omg.PortableInterceptor.ClientRequestInfo ri)
                  throws org.omg.PortableInterceptor.ForwardRequest
Specified by:
send_request in interface org.omg.PortableInterceptor.ClientRequestInterceptorOperations
Throws:
org.omg.PortableInterceptor.ForwardRequest

send_poll

public void send_poll(org.omg.PortableInterceptor.ClientRequestInfo ri)
Specified by:
send_poll in interface org.omg.PortableInterceptor.ClientRequestInterceptorOperations

receive_reply

public void receive_reply(org.omg.PortableInterceptor.ClientRequestInfo ri)
Specified by:
receive_reply in interface org.omg.PortableInterceptor.ClientRequestInterceptorOperations

receive_exception

public void receive_exception(org.omg.PortableInterceptor.ClientRequestInfo ri)
                       throws org.omg.PortableInterceptor.ForwardRequest
Specified by:
receive_exception in interface org.omg.PortableInterceptor.ClientRequestInterceptorOperations
Throws:
org.omg.PortableInterceptor.ForwardRequest

receive_other

public void receive_other(org.omg.PortableInterceptor.ClientRequestInfo ri)
                   throws org.omg.PortableInterceptor.ForwardRequest
Specified by:
receive_other in interface org.omg.PortableInterceptor.ClientRequestInterceptorOperations
Throws:
org.omg.PortableInterceptor.ForwardRequest

receive_request_service_contexts

public void receive_request_service_contexts(org.omg.PortableInterceptor.ServerRequestInfo ri)
                                      throws org.omg.PortableInterceptor.ForwardRequest
Specified by:
receive_request_service_contexts in interface org.omg.PortableInterceptor.ServerRequestInterceptorOperations
Throws:
org.omg.PortableInterceptor.ForwardRequest

receive_request

public void receive_request(org.omg.PortableInterceptor.ServerRequestInfo ri)
                     throws org.omg.PortableInterceptor.ForwardRequest
Specified by:
receive_request in interface org.omg.PortableInterceptor.ServerRequestInterceptorOperations
Throws:
org.omg.PortableInterceptor.ForwardRequest

send_reply

public void send_reply(org.omg.PortableInterceptor.ServerRequestInfo ri)
Specified by:
send_reply in interface org.omg.PortableInterceptor.ServerRequestInterceptorOperations

send_exception

public void send_exception(org.omg.PortableInterceptor.ServerRequestInfo ri)
                    throws org.omg.PortableInterceptor.ForwardRequest
Specified by:
send_exception in interface org.omg.PortableInterceptor.ServerRequestInterceptorOperations
Throws:
org.omg.PortableInterceptor.ForwardRequest

send_other

public void send_other(org.omg.PortableInterceptor.ServerRequestInfo ri)
                throws org.omg.PortableInterceptor.ForwardRequest
Specified by:
send_other in interface org.omg.PortableInterceptor.ServerRequestInterceptorOperations
Throws:
org.omg.PortableInterceptor.ForwardRequest

isTxCtxtNull

public static boolean isTxCtxtNull()

isNullContext

public static boolean isNullContext(org.omg.CosTransactions.PropagationContext ctx)

isDummyContext

public static boolean isDummyContext(org.omg.CosTransactions.PropagationContext ctx)

setThreadLocalData

public static void setThreadLocalData(int slot,
                                      java.lang.Object data)

getThreadLocalData

public static java.lang.Object getThreadLocalData(int slot)

setOrb

public static void setOrb(org.omg.CORBA.ORB orb)

isEjbAdapterName

public static boolean isEjbAdapterName(java.lang.String[] adapterName)


Copyright © 2012 GlassFish Community. All Rights Reserved.