gnu.CORBA.Interceptor

Class gnuServerRequestInfo

Implemented Interfaces:
IDLEntity, Object, RequestInfo, RequestInfoOperations, Serializable, ServerRequestInfo, ServerRequestInfoOperations

public class gnuServerRequestInfo
extends LocalObject
implements ServerRequestInfo

Implementation of the ServerRequestInfo, associacted with gnuServantObject.

Field Summary

Object
m_forward_reference
The forward reference, if applicable.
ReplyHeader
m_reply_header
The reply header.
gnuRequest
m_request
The associated request, if any.
RequestHeader
m_request_header
The request header.
Exception
m_sys_exception
The thrown systen exception.
Any
m_usr_exception
The Any, containing the thrown user exception.

Constructor Summary

gnuServerRequestInfo(gnuServantObject an_object, RequestHeader a_request_header, ReplyHeader a_reply_header)
Create a new instance at the time when it is known which object will serve the invocation.

Method Summary

byte[]
adapter_id()
Get the POA id.
String[]
adapter_name()
void
add_reply_service_context(ServiceContext service_context, boolean replace)
Parameter[]
arguments()
String[]
contexts()
TypeCode[]
exceptions()
Not available.
Object
forward_reference()
ServiceContext
get_reply_service_context(int ctx_name)
ServiceContext
get_request_service_context(int ctx_name)
Policy
get_server_policy(int type)
Get the POA policy of the given type that applies to the object being served (request being handled).
Any
get_slot(int id)
Get the given slot.
byte[]
object_id()
Get the object id (not the object IOR key).
String
operation()
Get the name of the operation being performed.
String[]
operation_context()
Not available
String
orb_id()
short
reply_status()
Get reply status.
int
request_id()
Get request id.
void
reset()
Reset slot data.
boolean
response_expected()
Check if the client expected any response.
Any
result()
Any
sending_exception()
Get an exception, wrapped into Any.
String
server_id()
void
set_slot(int id, Any data)
Set the give slot.
short
sync_scope()
Always returns "with transport".
boolean
target_is_a(String id)
Check if the target is an instance of the type, represented by the given repository Id.
String
target_most_derived_interface()
Get the first member of the object repository id array.

Methods inherited from class org.omg.CORBA.LocalObject

_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface, _get_interface_def, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _set_policy_override, validate_connection

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Details

m_forward_reference

public Object m_forward_reference
The forward reference, if applicable.

m_reply_header

public final ReplyHeader m_reply_header
The reply header.

m_request

public gnuRequest m_request
The associated request, if any.

m_request_header

public final RequestHeader m_request_header
The request header.

m_sys_exception

public Exception m_sys_exception
The thrown systen exception.

m_usr_exception

public Any m_usr_exception
The Any, containing the thrown user exception.

Constructor Details

gnuServerRequestInfo

public gnuServerRequestInfo(gnuServantObject an_object,
                            RequestHeader a_request_header,
                            ReplyHeader a_reply_header)
Create a new instance at the time when it is known which object will serve the invocation.
Parameters:
an_object - a local object, connected to the local servant that will serve the invocation.

Method Details

adapter_id

public byte[] adapter_id()
Get the POA id.
Specified by:
adapter_id in interface ServerRequestInfoOperations

adapter_name

public String[] adapter_name()
Specified by:
adapter_name in interface ServerRequestInfoOperations

add_reply_service_context

public void add_reply_service_context(ServiceContext service_context,
                                      boolean replace)
Specified by:
add_reply_service_context in interface ServerRequestInfoOperations

arguments

public Parameter[] arguments()
Specified by:
arguments in interface RequestInfoOperations

contexts

public String[] contexts()
Specified by:
contexts in interface RequestInfoOperations

exceptions

public TypeCode[] exceptions()
Not available.
Specified by:
exceptions in interface RequestInfoOperations

forward_reference

public Object forward_reference()
Specified by:
forward_reference in interface RequestInfoOperations

get_reply_service_context

public ServiceContext get_reply_service_context(int ctx_name)
            throws BAD_PARAM
Specified by:
get_reply_service_context in interface RequestInfoOperations

get_request_service_context

public ServiceContext get_request_service_context(int ctx_name)
            throws BAD_PARAM
Specified by:
get_request_service_context in interface RequestInfoOperations

get_server_policy

public Policy get_server_policy(int type)
            throws INV_POLICY
Get the POA policy of the given type that applies to the object being served (request being handled).
Specified by:
get_server_policy in interface ServerRequestInfoOperations

get_slot

public Any get_slot(int id)
            throws InvalidSlot
Get the given slot.
Specified by:
get_slot in interface RequestInfoOperations

object_id

public byte[] object_id()
Get the object id (not the object IOR key).
Specified by:
object_id in interface ServerRequestInfoOperations

operation

public String operation()
Get the name of the operation being performed.
Specified by:
operation in interface RequestInfoOperations

operation_context

public String[] operation_context()
Not available
Specified by:
operation_context in interface RequestInfoOperations

orb_id

public String orb_id()
Specified by:
orb_id in interface ServerRequestInfoOperations

reply_status

public short reply_status()
Get reply status.
Specified by:
reply_status in interface RequestInfoOperations

request_id

public int request_id()
Get request id. All local requests have request id = -1.
Specified by:
request_id in interface RequestInfoOperations

reset

public void reset()
Reset slot data.

response_expected

public boolean response_expected()
Check if the client expected any response.
Specified by:
response_expected in interface RequestInfoOperations

result

public Any result()
Specified by:
result in interface RequestInfoOperations

sending_exception

public Any sending_exception()
Get an exception, wrapped into Any.
Specified by:
sending_exception in interface ServerRequestInfoOperations

server_id

public String server_id()
Specified by:
server_id in interface ServerRequestInfoOperations

set_slot

public void set_slot(int id,
                     Any data)
            throws InvalidSlot
Set the give slot.
Specified by:
set_slot in interface ServerRequestInfoOperations

sync_scope

public short sync_scope()
Always returns "with transport".
Specified by:
sync_scope in interface RequestInfoOperations

target_is_a

public boolean target_is_a(String id)
Check if the target is an instance of the type, represented by the given repository Id.
Specified by:
target_is_a in interface ServerRequestInfoOperations

target_most_derived_interface

public String target_most_derived_interface()
Get the first member of the object repository id array.
Specified by:
target_most_derived_interface in interface ServerRequestInfoOperations

gnuServerRequestInfo.java -- Copyright (C) 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath 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 General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.