org.objectweb.carol.rmi.jrmp.interceptor

Class 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, ia, spaceID

Method Summary

static JClientRequestInfo
getClientRequestContextFromInput(ObjectInput in, int ctxValue, JClientRequestInfo jrc)
Get Context from Object Input
static void
receive_exception(ObjectInput in, JClientRequestInterceptor cis)
Receive exception interception
static void
receive_other(ObjectInput in, JClientRequestInterceptor cis)
static void
receive_reply(ObjectInput in, JClientRequestInterceptor cis)
Receive reply interception
static void
send_poll(ObjectOutput out, JClientRequestInterceptor cis, boolean localRef)
send client context in pool (see CORBA Specifications)
static void
send_request(ObjectOutput out, JClientRequestInterceptor cis, boolean localRef)
send client context with the request.
static void
setClientContextInOutput(ObjectOutput out, JClientRequestInfo ri, boolean locRef)
Set Context inObject Outut

Methods inherited from class org.objectweb.carol.rmi.jrmp.interceptor.JInterceptorHelper

getInetAddress, getSpaceID

Method Details

getClientRequestContextFromInput

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

Parameters:

Returns:
jrc the client request info


receive_exception

public static void receive_exception(ObjectInput in,
                                     JClientRequestInterceptor cis)
            throws IOException
Receive exception interception

Parameters:


receive_other

public static void receive_other(ObjectInput in,
                                 JClientRequestInterceptor cis)
            throws IOException


receive_reply

public static void receive_reply(ObjectInput in,
                                 JClientRequestInterceptor cis)
            throws IOException
Receive reply interception

Parameters:


send_poll

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

Parameters:


send_request

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

Parameters:


setClientContextInOutput

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

Parameters: