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

java.lang.Object
  extended byorg.objectweb.carol.rmi.jrmp.interceptor.JInterceptorHelper
      extended byorg.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
ia, LOCAL_CTX, NO_CTX, REMOTE_CTX, spaceID
 
Constructor Summary
JClientInterceptorHelper()
           
 
Method Summary
static JClientRequestInfo getClientRequestContextFromInput(java.io.ObjectInput in, int ctxValue, JClientRequestInfo jrc)
          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
getInetAddress, getSpaceID
 
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
Throws:
java.io.IOException

getClientRequestContextFromInput

public static JClientRequestInfo getClientRequestContextFromInput(java.io.ObjectInput in,
                                                                  int ctxValue,
                                                                  JClientRequestInfo jrc)
                                                           throws java.lang.ClassNotFoundException,
                                                                  java.io.IOException
Get Context from Object Input

Returns:
jrc the client request info
Throws:
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

Throws:
java.io.IOException