org.objectweb.carol.rmi.jrmp.interceptor
Class JClientInterceptorHelper

java.lang.Object
  |
  +--org.objectweb.carol.rmi.jrmp.interceptor.JInterceptorHelper
        |
        +--org.objectweb.carol.rmi.jrmp.interceptor.JClientInterceptorHelper

public class JClientInterceptorHelper
extends JInterceptorHelper

Class JClientInterceptorHelper is the CAROL JRMP Client Interceptor Helper this class is used by the other pakage class to manage client interception

Version:
1.0, 15/07/2002
Author:
Guillaume Riviere (Guillaume.Riviere@inrialpes.fr)

Field Summary
 
Fields inherited from class org.objectweb.carol.rmi.jrmp.interceptor.JInterceptorHelper
LOCAL_CTX, NO_CTX, REMOTE_CTX, rk, spaceID
 
Constructor Summary
JClientInterceptorHelper()
           
 
Method Summary
static JServiceContext[] getClientContextFromInput(java.io.ObjectInput in, int ctxValue, boolean request)
          Get Context from Object Input
static void receive_exception(java.io.ObjectInput in, JClientRequestInterceptor[] cis)
          Receive exception interception
static void receive_other(java.io.ObjectInput in, JClientRequestInterceptor[] cis)
           
static void receive_reply(java.io.ObjectInput in, JClientRequestInterceptor[] cis)
          Receive reply interception
static void send_poll(java.io.ObjectOutput out, JClientRequestInterceptor[] cis, boolean localRef)
          send client context in pool (see CORBA Specifications)
static void send_request(java.io.ObjectOutput out, JClientRequestInterceptor[] cis, boolean localRef)
          send client context with the request.
static void setClientContextInOutput(java.io.ObjectOutput out, JClientRequestInfo ri, boolean locRef)
          Set Context inObject Outut
 
Methods inherited from class org.objectweb.carol.rmi.jrmp.interceptor.JInterceptorHelper
getRemoteKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JClientInterceptorHelper

public JClientInterceptorHelper()
Method Detail

send_request

public static void send_request(java.io.ObjectOutput out,
                                JClientRequestInterceptor[] cis,
                                boolean localRef)
                         throws java.io.IOException
send client context with the request. The sendingRequest method of the PortableInterceptors is called prior to marshalling arguments and contexts

Throws:
java.io.IOException - if an exception occur with the ObjectOutput

send_poll

public static void send_poll(java.io.ObjectOutput out,
                             JClientRequestInterceptor[] cis,
                             boolean localRef)
                      throws java.io.IOException
send client context in pool (see CORBA Specifications)

Throws:
java.io.IOException - if an exception occur with the ObjectOutput

receive_reply

public static void receive_reply(java.io.ObjectInput in,
                                 JClientRequestInterceptor[] cis)
                          throws java.io.IOException
Receive reply interception

Throws:
java.io.IOException - if an exception occur with the ObjectOutput

receive_exception

public static void receive_exception(java.io.ObjectInput in,
                                     JClientRequestInterceptor[] cis)
                              throws java.io.IOException
Receive exception interception

Throws:
java.io.IOException - if an exception occur with the ObjectOutput

receive_other

public static void receive_other(java.io.ObjectInput in,
                                 JClientRequestInterceptor[] cis)
                          throws java.io.IOException
java.io.IOException

getClientContextFromInput

public static JServiceContext[] getClientContextFromInput(java.io.ObjectInput in,
                                                          int ctxValue,
                                                          boolean request)
                                                   throws java.lang.ClassNotFoundException,
                                                          java.io.IOException
Get Context from Object Input

java.lang.ClassNotFoundException
java.io.IOException

setClientContextInOutput

public static void setClientContextInOutput(java.io.ObjectOutput out,
                                            JClientRequestInfo ri,
                                            boolean locRef)
                                     throws java.io.IOException
Set Context inObject Outut

java.io.IOException