org.objectweb.carol.rmi.jrmp.interceptor

Class JServerInterceptorHelper


public class JServerInterceptorHelper
extends JInterceptorHelper

Class JServerInterceptorHelper is the CAROL JRMP Server Interceptor Helper this class is used by the other pakage class to manage server interception

Version:
1.0, 15/07/200

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 JServerRequestInfo
getRequestServerContextFromInput(ObjectInput in, int ctxValue, JServerRequestInfo jsr)
Get Context from Object Input
static boolean
isLocal()
is Local Reference
static void
receive_request(ObjectInput in, JServerRequestInterceptor sis)
Receive request
static void
send_exception(ObjectOutput out, JServerRequestInterceptor sis)
send exception with context
static void
send_other(ObjectOutput out, JServerRequestInterceptor sis)
static void
send_reply(ObjectOutput out, JServerRequestInterceptor sis)
send reply with context
static void
setLocal()
Set Local Reference
static void
setServerContextInOutput(ObjectOutput out, JServerRequestInfo ri, boolean locRef)
Set Context inObject Outut

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

getInetAddress, getSpaceID

Method Details

getRequestServerContextFromInput

public static JServerRequestInfo getRequestServerContextFromInput(ObjectInput in,
                                                                  int ctxValue,
                                                                  JServerRequestInfo jsr)
            throws ClassNotFoundException,
                   IOException
Get Context from Object Input

Parameters:


isLocal

public static boolean isLocal()
is Local Reference

Returns:
true if local reference


receive_request

public static void receive_request(ObjectInput in,
                                   JServerRequestInterceptor sis)
            throws IOException
Receive request

Parameters:


send_exception

public static void send_exception(ObjectOutput out,
                                  JServerRequestInterceptor sis)
            throws IOException
send exception with context

Parameters:


send_other

public static void send_other(ObjectOutput out,
                              JServerRequestInterceptor sis)
            throws IOException


send_reply

public static void send_reply(ObjectOutput out,
                              JServerRequestInterceptor sis)
            throws IOException
send reply with context

Parameters:


setLocal

public static void setLocal()
Set Local Reference


setServerContextInOutput

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

Parameters: