public class JServerInterceptorHelper extends JInterceptorHelper
JServerInterceptorHelper
is the CAROL JRMP Server
Interceptor Helper this class is used by the other pakage class to manage
server interceptionia, LOCAL_CTX, NO_CTX, REMOTE_CTX, spaceID
Constructor and Description |
---|
JServerInterceptorHelper() |
Modifier and Type | Method and Description |
---|---|
static JServerRequestInfo |
getRequestServerContextFromInput(java.io.ObjectInput in,
int ctxValue,
JServerRequestInfo jsr)
Get Context from Object Input
|
static boolean |
isLocal()
is Local Reference
|
static void |
receive_request(java.io.ObjectInput in,
JServerRequestInterceptor[] sis)
Receive request
|
static void |
send_exception(java.io.ObjectOutput out,
JServerRequestInterceptor[] sis)
send exception with context
|
static void |
send_other(java.io.ObjectOutput out,
JServerRequestInterceptor[] sis) |
static void |
send_reply(java.io.ObjectOutput out,
JServerRequestInterceptor[] sis)
send reply with context
|
static void |
setLocal()
Set Local Reference
|
static void |
setServerContextInOutput(java.io.ObjectOutput out,
JServerRequestInfo ri,
boolean locRef)
Set Context inObject Outut
|
getInetAddress, getSpaceID
public static void receive_request(java.io.ObjectInput in, JServerRequestInterceptor[] sis) throws java.io.IOException
ObjectInput
- inJServerRequestInterceptor
- All interceptor for this contextjava.io.IOException
- if an exception occur with the ObjectOutputpublic static void send_reply(java.io.ObjectOutput out, JServerRequestInterceptor[] sis) throws java.io.IOException
ObjectOutput
- outJServerRequestInterceptor
- All interceptor for this contextjava.io.IOException
- if an exception occur with the ObjectOutputpublic static void send_exception(java.io.ObjectOutput out, JServerRequestInterceptor[] sis) throws java.io.IOException
ObjectOutput
- outJServerRequestInterceptor
- All interceptor for this contextjava.io.IOException
- if an exception occur with the ObjectOutputpublic static void send_other(java.io.ObjectOutput out, JServerRequestInterceptor[] sis) throws java.io.IOException
java.io.IOException
public static JServerRequestInfo getRequestServerContextFromInput(java.io.ObjectInput in, int ctxValue, JServerRequestInfo jsr) throws java.lang.ClassNotFoundException, java.io.IOException
ObjectInput
- in the object input streamint
- the context valueboolean
- do not build Request Infojava.lang.ClassNotFoundException
java.io.IOException
public static void setServerContextInOutput(java.io.ObjectOutput out, JServerRequestInfo ri, boolean locRef) throws java.io.IOException
ObjectOutput
- in the object OutPutStreamint
- the context valueboolean
- do not build Request Infojava.io.IOException
public static void setLocal()
public static boolean isLocal()