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

java.lang.Object
  extended by org.objectweb.carol.rmi.jrmp.interceptor.JRMPClientRequestInfoImpl
All Implemented Interfaces:
JClientRequestInfo, JRequestInfo

public class JRMPClientRequestInfoImpl
extends java.lang.Object
implements JClientRequestInfo

Class JRMPClientRequestInfoImpl is the CAROL JRMP Client Request info (JClientRequestInfo) Implementation

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

Field Summary
protected  java.util.ArrayList scTable
          Request Service Context HasTable
 
Constructor Summary
JRMPClientRequestInfoImpl()
          Empty constructor available for Request Information
 
Method Summary
 void add_all_request_service_context(java.util.Collection c)
          Add the all the request service context
 void add_request_service_context(JServiceContext jServiceContext)
          add a JServicecontext
 void clearAllContexts()
          clear the service contexts table
 java.util.Collection get_all_reply_service_context()
          Get the all the reply service context if there is no context return null
 java.util.Collection get_all_request_service_context()
          Get the all the request service context if there is no context return null
 JServiceContext get_reply_service_context(int id)
          Get the context specifie by this id if there is no context corresponding with this id return null
 JServiceContext get_request_service_context(int id)
          Get the context specifie by this id if there is no context corresponding with this id return null
 boolean hasContexts()
          true if exit one or more context
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scTable

protected java.util.ArrayList scTable
Request Service Context HasTable

Constructor Detail

JRMPClientRequestInfoImpl

public JRMPClientRequestInfoImpl()
Empty constructor available for Request Information

Method Detail

add_request_service_context

public void add_request_service_context(JServiceContext jServiceContext)
add a JServicecontext

Specified by:
add_request_service_context in interface JClientRequestInfo
Parameters:
JServiceContext - the context to add
boolean - replace if true replace the existing service context

get_request_service_context

public JServiceContext get_request_service_context(int id)
Get the context specifie by this id if there is no context corresponding with this id return null

Specified by:
get_request_service_context in interface JRequestInfo
Parameters:
id - the context id
Returns:
JServiceContex the specific ServiceContext

get_all_request_service_context

public java.util.Collection get_all_request_service_context()
Get the all the request service context if there is no context return null

Specified by:
get_all_request_service_context in interface JRequestInfo
Returns:
Collection the ServiceContexts ArrayList

get_reply_service_context

public JServiceContext get_reply_service_context(int id)
Get the context specifie by this id if there is no context corresponding with this id return null

Specified by:
get_reply_service_context in interface JRequestInfo
Parameters:
id - the context id
Returns:
JServiceContex the specific ServiceContext

get_all_reply_service_context

public java.util.Collection get_all_reply_service_context()
Get the all the reply service context if there is no context return null

Specified by:
get_all_reply_service_context in interface JRequestInfo
Returns:
Collection the ServiceContexts ArrayList

add_all_request_service_context

public void add_all_request_service_context(java.util.Collection c)
Add the all the request service context

Specified by:
add_all_request_service_context in interface JClientRequestInfo
Parameters:
c - Services contexts

hasContexts

public boolean hasContexts()
true if exit one or more context

Specified by:
hasContexts in interface JRequestInfo

clearAllContexts

public void clearAllContexts()
clear the service contexts table

Specified by:
clearAllContexts in interface JRequestInfo