1 /** 2 * Copyright (C) 2002,2004 - INRIA (www.inria.fr) 3 * 4 * CAROL: Common Architecture for RMI ObjectWeb Layer 5 * 6 * This library is developed inside the ObjectWeb Consortium, 7 * http://www.objectweb.org 8 * 9 * This library is free software; you can redistribute it and/or 10 * modify it under the terms of the GNU Lesser General Public 11 * License as published by the Free Software Foundation; either 12 * version 2.1 of the License, or any later version. 13 * 14 * This library is distributed in the hope that it will be useful, 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17 * Lesser General Public License for more details. 18 * 19 * You should have received a copy of the GNU Lesser General Public 20 * License along with this library; if not, write to the Free Software 21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 22 * USA 23 * 24 * -------------------------------------------------------------------------- 25 * $Id: JClientRequestInterceptor.java,v 1.2 2004/09/01 11:02:41 benoitf Exp $ 26 * -------------------------------------------------------------------------- 27 */ 28 package org.objectweb.carol.rmi.jrmp.interceptor; 29 30 // java import 31 import java.io.IOException; 32 import java.io.Serializable; 33 34 /** 35 * Interface <code>JClientRequestInterceptor</code> is the CAROL JRMP Client 36 * Interceptor Interface this interface is use for client interceptor definition 37 * @author Guillaume Riviere (Guillaume.Riviere@inrialpes.fr) 38 * @version 1.0, 15/07/2002 39 */ 40 public interface JClientRequestInterceptor extends Serializable { 41 42 /** 43 * send client context with the request. The sendingRequest method of the 44 * JPortableInterceptors is called prior to marshalling arguments and 45 * contexts 46 * @param JClientRequestInfo jri the jrmp client info 47 * @exception IOException if an exception occur with the ObjectOutput 48 */ 49 public void send_request(JClientRequestInfo jri) throws IOException; 50 51 /** 52 * send client context in pool 53 * @param JClientRequestInfo jri the jrmp client info 54 * @exception IOException if an exception occur with the ObjectOutput 55 */ 56 public void send_poll(JClientRequestInfo jri) throws IOException; 57 58 /** 59 * Receive reply interception 60 * @param JClientRequestInfo jri the jrmp client info 61 * @exception IOException if an exception occur with the ObjectOutput 62 */ 63 public void receive_reply(JClientRequestInfo jri) throws IOException; 64 65 /** 66 * Receive exception interception 67 * @param JClientRequestInfo jri the jrmp client info 68 * @exception IOException if an exception occur with the ObjectOutput 69 */ 70 public void receive_exception(JClientRequestInfo jri) throws IOException; 71 72 /* 73 * Receive other interception @param JClientRequestInfo jri the jrmp client 74 * info @exception IOException if an exception occur with the ObjectOutput 75 */ 76 public void receive_other(JClientRequestInfo jri) throws IOException; 77 78 /** 79 * get the name of this interceptor 80 * @return name 81 */ 82 public String name(); 83 }