public class JClientInterceptorHelper extends JInterceptorHelper
JClientInterceptorHelper
is the CAROL JRMP Client
Interceptor Helper this class is used by the other pakage class to manage
client interceptionia, LOCAL_CTX, NO_CTX, REMOTE_CTX, spaceID
Constructor and Description |
---|
JClientInterceptorHelper() |
Modifier and Type | Method and Description |
---|---|
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
|
getInetAddress, getSpaceID
public static void send_request(java.io.ObjectOutput out, JClientRequestInterceptor[] cis, boolean localRef) throws java.io.IOException
ObjectOutput
- outClientRequestInterceptor
- All interceptor for this contextjava.io.IOException
- if an exception occur with the ObjectOutputpublic static void send_poll(java.io.ObjectOutput out, JClientRequestInterceptor[] cis, boolean localRef) throws java.io.IOException
ObjectOutput
- outJClientRequestInterceptor
- All interceptor for this contextjava.io.IOException
- if an exception occur with the ObjectOutputpublic static void receive_reply(java.io.ObjectInput in, JClientRequestInterceptor[] cis) throws java.io.IOException
ObjectInput
- inClientRequestInterceptor
- All interceptor for this contextjava.io.IOException
- if an exception occur with the ObjectOutputpublic static void receive_exception(java.io.ObjectInput in, JClientRequestInterceptor[] cis) throws java.io.IOException
ObjectInput
- inClientRequestInterceptor
- All interceptor for this contextjava.io.IOException
- if an exception occur with the ObjectOutputpublic static void receive_other(java.io.ObjectInput in, JClientRequestInterceptor[] cis) throws java.io.IOException
java.io.IOException
public static JClientRequestInfo getClientRequestContextFromInput(java.io.ObjectInput in, int ctxValue, JClientRequestInfo jrc) 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 setClientContextInOutput(java.io.ObjectOutput out, JClientRequestInfo ri, boolean locRef) throws java.io.IOException
ObjectOutput
- in the object OutPutStreamint
- the context valueboolean
- do not build Request Infojava.io.IOException