org.objectweb.carol.rmi.jrmp.interceptor
Class ProtocolInterceptor

java.lang.Object
  extended by org.objectweb.carol.rmi.jrmp.interceptor.ProtocolInterceptor
All Implemented Interfaces:
JServerRequestInterceptor

public class ProtocolInterceptor
extends java.lang.Object
implements JServerRequestInterceptor

Class ProtocolInterceptor is the CAROL JRMP Client Interceptor For protocol propagation via current thread

Version:
1.0, 15/07/2002
Author:
Guillaume Riviere (Guillaume.Riviere@inrialpes.fr)

Constructor Summary
ProtocolInterceptor()
          constructor
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProtocolInterceptor

public ProtocolInterceptor()
constructor

Parameters:
String - name
Method Detail

name

public java.lang.String name()
get the name of this interceptor

Specified by:
name in interface JServerRequestInterceptor
Returns:
name

receive_request

public void receive_request(JServerRequestInfo jri)
                     throws java.io.IOException
Receive request

Specified by:
receive_request in interface JServerRequestInterceptor
Parameters:
JServerRequestInfo - the jrmp server request information
Throws:
java.io.IOException - if an exception occur with the ObjectOutput

send_reply

public void send_reply(JServerRequestInfo jri)
                throws java.io.IOException
send reply with context

Specified by:
send_reply in interface JServerRequestInterceptor
Parameters:
JServerRequestInfo - the jrmp server request information
Throws:
java.io.IOException - if an exception occur with the ObjectOutput

send_exception

public void send_exception(JServerRequestInfo jri)
                    throws java.io.IOException
Description copied from interface: JServerRequestInterceptor
send exception with context

Specified by:
send_exception in interface JServerRequestInterceptor
Throws:
java.io.IOException - if an exception occur with the ObjectOutput

send_other

public void send_other(JServerRequestInfo jri)
                throws java.io.IOException
Specified by:
send_other in interface JServerRequestInterceptor
Throws:
java.io.IOException