org.ow2.carol.rmi.jrmp.interceptor.api.JRequestInfo Maven / Gradle / Ivy
/**
* Copyright (C) 2002-2007 - INRIA (www.inria.fr)
*
* CAROL: Common Architecture for RMI ObjectWeb Layer
*
* This library is developed inside the OW2 Consortium,
* http://www.ow2.org
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*
* --------------------------------------------------------------------------
* $Id: JRequestInfo.java 1272 2007-09-11 11:43:56Z loris $
* --------------------------------------------------------------------------
*/
package org.ow2.carol.rmi.jrmp.interceptor.api;
import java.util.Collection;
import org.ow2.carol.rmi.jrmp.interceptor.spi.JServiceContext;
/**
* Class JRequestInfo
is the CAROL JRMP general Request info
* @author Guillaume Riviere ([email protected])
* @version 1.0, 15/07/2002
*/
public interface JRequestInfo {
/**
* Get the context specified by this id if there is no context corresponding
* with this id return null
* @param id the context id
* @return JServiceContex the specific ServiceContext
*/
public JServiceContext get_request_service_context(int id);
/**
* Get the all the request service context if there is no context return
* null
* @return Collection the ServiceContexts
*/
public Collection get_all_request_service_context();
/**
* Get the context specified by this id if there is no context corresponding
* with this id return null
* @param id the context id
* @return JServiceContex the specific ServiceContext
*/
public JServiceContext get_reply_service_context(int id);
/**
* Get the all the reply service context if there is no context return null
* @return Collection the ServiceContexts Array
*/
public Collection get_all_reply_service_context();
/**
* true if exit one or more context
*/
public boolean hasContexts();
/**
* clear the service contexts table
*/
public void clearAllContexts();
}