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

java.lang.Object
  |
  +--org.objectweb.carol.rmi.jrmp.interceptor.JRMPServerRequestInfoImpl
All Implemented Interfaces:
JRequestInfo, JServerRequestInfo

public class JRMPServerRequestInfoImpl
extends java.lang.Object
implements JServerRequestInfo

Class JRMPServerRequestInfoImpl is the CAROL JRMP Server Request info (JServerRequestInfo) Implementation

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

Field Summary
protected  java.util.Hashtable scReplyTable
          Reply Service Context HasTable
protected  java.util.Hashtable scRequestTable
          Request Service Context HasTable
 
Constructor Summary
JRMPServerRequestInfoImpl()
          Empty constructor available for Request Information
JRMPServerRequestInfoImpl(JServiceContext[] scs)
          Full constructor available for Reply Information
 
Method Summary
 void add_reply_service_context(JServiceContext jServiceContext, boolean replace)
          add a JServicecontext
 JServiceContext[] get_all_reply_service_context()
          Get the all the reply service context if there is no context return null
 JServiceContext[] 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scRequestTable

protected java.util.Hashtable scRequestTable
Request Service Context HasTable


scReplyTable

protected java.util.Hashtable scReplyTable
Reply Service Context HasTable

Constructor Detail

JRMPServerRequestInfoImpl

public JRMPServerRequestInfoImpl()
Empty constructor available for Request Information


JRMPServerRequestInfoImpl

public JRMPServerRequestInfoImpl(JServiceContext[] scs)
Full constructor available for Reply Information

Method Detail

add_reply_service_context

public void add_reply_service_context(JServiceContext jServiceContext,
                                      boolean replace)
add a JServicecontext

Specified by:
add_reply_service_context in interface JServerRequestInfo

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 JServiceContext[] 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:
JServiceContext [] the ServiceContexts

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 JServiceContext[] 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:
JServiceContext [] the ServiceContexts