public class ProtocolInterceptor extends java.lang.Object implements JServerRequestInterceptor
ProtocolInterceptor
is the CAROL JRMP Client Interceptor
For protocol propagation via current threadConstructor and Description |
---|
ProtocolInterceptor()
constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
name()
get the name of this interceptor
|
void |
receive_request(JServerRequestInfo jri)
Receive request
|
void |
send_exception(JServerRequestInfo jri)
send exception with context
|
void |
send_other(JServerRequestInfo jri) |
void |
send_reply(JServerRequestInfo jri)
send reply with context
|
public ProtocolInterceptor()
String
- namepublic java.lang.String name()
name
in interface JServerRequestInterceptor
public void receive_request(JServerRequestInfo jri) throws java.io.IOException
receive_request
in interface JServerRequestInterceptor
JServerRequestInfo
- the jrmp server request informationjava.io.IOException
- if an exception occur with the ObjectOutputpublic void send_reply(JServerRequestInfo jri) throws java.io.IOException
send_reply
in interface JServerRequestInterceptor
JServerRequestInfo
- the jrmp server request informationjava.io.IOException
- if an exception occur with the ObjectOutputpublic void send_exception(JServerRequestInfo jri) throws java.io.IOException
JServerRequestInterceptor
send_exception
in interface JServerRequestInterceptor
java.io.IOException
- if an exception occur with the ObjectOutputpublic void send_other(JServerRequestInfo jri) throws java.io.IOException
send_other
in interface JServerRequestInterceptor
java.io.IOException