|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--org.omg.CORBA.LocalObject
|
+--org.openorb.net.AbstractServerRequest
Base class which implements most of the server request functionality. Only protocol specific things are not implemented.
| Fields inherited from interface org.openorb.net.ServerRequest |
OBJECT_HERE, STATE_COMPLETE, STATE_CREATED, STATE_FIND_ADAPTER, STATE_PROCESSING, STATE_QUEUED, STATE_REPLY, UNKNOWN_OBJECT |
| Constructor Summary | |
AbstractServerRequest(ServerManager serverManager,
ServerChannel channel,
java.lang.Object transportAssociation,
int request_id)
Two pass constructor for locate request. |
|
AbstractServerRequest(ServerManager serverManager,
ServerChannel channel,
java.lang.Object transportAssociation,
int request_id,
byte[] object_key)
One pass constructor for locate request |
|
AbstractServerRequest(ServerManager serverManager,
ServerChannel channel,
java.lang.Object transportAssociation,
int request_id,
InputStream argument_stream)
Two pass constructor for locate request. |
|
AbstractServerRequest(ServerManager serverManager,
ServerChannel channel,
java.lang.Object transportAssociation,
int request_id,
InputStream argument_stream,
byte[] object_key,
java.lang.String operation,
byte sync_scope,
ServiceContext[] request_service_contexts)
One pass constructor for request |
|
| Method Summary | |
byte[] |
adapter_id()
Find the adapter ID. |
ObjectAdapter |
adapter()
Server adapter. |
int |
adapter(ObjectAdapter adapter)
Set the object adapter and transfer to the QUEUED state. |
void |
add_reply_service_context(ServiceContext service_context,
boolean replace)
Add a service context to the reply. |
InputStream |
argument_stream()
Get the request input stream. |
Parameter[] |
arguments()
Request Arguments. |
int |
begin_request()
Called by the worker thread before every attempt to run the request. |
ServerChannel |
channel()
Server channel |
boolean |
checkRequestTransportAssoc(java.lang.Object tpAssc)
Check the transport association, take appropriate action if association is incorrect. |
void |
client_cancel()
Client intiated request cancelation. |
java.lang.String[] |
contexts()
Request contexts. |
OutputStream |
createExceptionReply()
Create a stream for marshaling a user exception. |
OutputStream |
createReply()
Create a stream for marshaling the reply. |
void |
dispatch()
Call predispatch to locate the target, enter the PROCESSING state, call the receive_request interception points and dispatch the request through the adapter. |
boolean |
equals(java.lang.Object obj)
Equality depends on request IDs and channels. |
TypeCode[] |
exceptions()
Request exceptions. |
IOR |
forward_reference_ior()
The IOR of the forward reference which will be sent in response to the request. |
Object |
forward_reference()
The forward reference which will be sent in response to the request. |
ServiceContext |
get_reply_service_context(int id)
Find a reply service context with a given ID. |
ServiceContext[] |
get_reply_service_contexts()
Get a list of all the reply service contexts which been set. |
ServiceContext |
get_request_service_context(int id)
Get reqest service context. |
Policy |
get_server_policy(int type)
Find the server policy of the specified type. |
Any |
get_slot(int id)
Access the PI current from interceptors. |
java.lang.Object |
get_transport_association()
Get the transport association. |
void |
init(byte[] object_key)
Second locate request construction pass. |
void |
init(byte[] object_key,
java.lang.String operation,
byte sync_scope,
ServiceContext[] request_service_contexts)
second constructor pass. |
boolean |
is_locate()
This returns true if this request is a locate request. |
byte[] |
object_id()
Find the object ID. |
byte[] |
object_key()
Object Key. |
java.lang.String[] |
operation_context()
Request contexts. |
java.lang.String |
operation()
Operation name. |
ORB |
orb()
Orb |
short |
reply_status()
Get the reply status. |
int |
request_id()
Request ID. |
boolean |
response_expected()
Response is expected to the request. |
Any |
result()
Request result. |
Any |
sending_exception()
Exception being sent in reply. |
java.lang.String |
sending_system_exception_id()
Repository ID of the system exception being sent as a reply. |
SystemException |
sending_system_exception()
System exception being sent as a reply. |
void |
server_cancel(java.lang.Throwable ex)
Server intiated request cancelation. |
void |
set_slot(int id,
Any data)
Access the PI current from interceptors. |
int |
state()
Current request state. |
short |
sync_scope()
Message sync scope. |
boolean |
target_is_a(java.lang.String id)
Determine if the target implements the given interface. |
java.lang.String |
target_most_derived_interface()
Most derrived repository ID of the target. |
| Methods inherited from class org.omg.CORBA.LocalObject |
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_policy_override, validate_connection |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.omg.CORBA.Object |
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override |
| Constructor Detail |
public AbstractServerRequest(ServerManager serverManager,
ServerChannel channel,
java.lang.Object transportAssociation,
int request_id,
InputStream argument_stream,
byte[] object_key,
java.lang.String operation,
byte sync_scope,
ServiceContext[] request_service_contexts)
public AbstractServerRequest(ServerManager serverManager,
ServerChannel channel,
java.lang.Object transportAssociation,
int request_id,
InputStream argument_stream)
public AbstractServerRequest(ServerManager serverManager,
ServerChannel channel,
java.lang.Object transportAssociation,
int request_id,
byte[] object_key)
public AbstractServerRequest(ServerManager serverManager,
ServerChannel channel,
java.lang.Object transportAssociation,
int request_id)
| Method Detail |
public void init(byte[] object_key,
java.lang.String operation,
byte sync_scope,
ServiceContext[] request_service_contexts)
public void init(byte[] object_key)
public ORB orb()
orb in interface ServerRequestpublic ServerChannel channel()
channel in interface ServerRequestpublic java.lang.Object get_transport_association()
get_transport_association in interface ServerRequestpublic boolean checkRequestTransportAssoc(java.lang.Object tpAssc)
public int state()
state in interface ServerRequestpublic boolean is_locate()
is_locate in interface ServerRequestpublic byte[] object_key()
object_key in interface ServerRequestpublic int request_id()
request_id in interface RequestInfoOperationsorg.omg.PortableInterceptor.RequestInfoOperationspublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String operation()
operation in interface RequestInfoOperationsorg.omg.PortableInterceptor.RequestInfoOperationspublic boolean response_expected()
response_expected in interface RequestInfoOperationsorg.omg.PortableInterceptor.RequestInfoOperationspublic short sync_scope()
sync_scope in interface RequestInfoOperationsorg.omg.PortableInterceptor.RequestInfoOperationspublic Parameter[] arguments()
arguments in interface RequestInfoOperationsorg.omg.PortableInterceptor.RequestInfoOperationspublic TypeCode[] exceptions()
exceptions in interface RequestInfoOperationsorg.omg.PortableInterceptor.RequestInfoOperationspublic java.lang.String[] contexts()
contexts in interface RequestInfoOperationsorg.omg.PortableInterceptor.RequestInfoOperationspublic java.lang.String[] operation_context()
operation_context in interface RequestInfoOperationsorg.omg.PortableInterceptor.RequestInfoOperationspublic Any result()
result in interface RequestInfoOperationsorg.omg.PortableInterceptor.RequestInfoOperations
public Any get_slot(int id)
throws InvalidSlot
get_slot in interface RequestInfoOperations
public void set_slot(int id,
Any data)
throws InvalidSlot
set_slot in interface ServerRequestInfoOperationspublic ServiceContext get_request_service_context(int id)
get_request_service_context in interface RequestInfoOperationspublic void client_cancel()
client_cancel in interface ServerRequestpublic void server_cancel(java.lang.Throwable ex)
server_cancel in interface ServerRequestpublic int begin_request()
begin_request in interface ServerRequestpublic int adapter(ObjectAdapter adapter)
adapter in interface ServerRequestpublic ObjectAdapter adapter()
adapter in interface ServerRequestpublic Policy get_server_policy(int type)
get_server_policy in interface ServerRequestInfoOperationspublic byte[] adapter_id()
adapter_id in interface ServerRequestInfoOperationsorg.omg.PortableInterceptor.ServerRequestInfoOperationspublic byte[] object_id()
object_id in interface ServerRequestInfoOperationsorg.omg.PortableInterceptor.ServerRequestInfoOperationspublic java.lang.String target_most_derived_interface()
target_most_derived_interface in interface ServerRequestInfoOperationsorg.omg.PortableInterceptor.ServerRequestInfoOperationspublic boolean target_is_a(java.lang.String id)
target_is_a in interface ServerRequestInfoOperations
public void dispatch()
throws AdapterDestroyedException
dispatch in interface ServerRequestpublic InputStream argument_stream()
argument_stream in interface ServerRequest
public void add_reply_service_context(ServiceContext service_context,
boolean replace)
add_reply_service_context in interface ServerRequestInfoOperationspublic ServiceContext get_reply_service_context(int id)
get_reply_service_context in interface RequestInfoOperationspublic ServiceContext[] get_reply_service_contexts()
get_reply_service_contexts in interface ServerRequestpublic short reply_status()
reply_status in interface RequestInfoOperationsorg.omg.PortableInterceptor.RequestInfoOperationspublic Object forward_reference()
forward_reference in interface RequestInfoOperationsorg.omg.PortableInterceptor.RequestInfoOperationspublic IOR forward_reference_ior()
forward_reference_ior in interface ServerRequestpublic Any sending_exception()
sending_exception in interface ServerRequestInfoOperationsorg.omg.PortableInterceptor.ServerRequestInfoOperationspublic SystemException sending_system_exception()
sending_system_exception in interface ServerRequestpublic java.lang.String sending_system_exception_id()
sending_system_exception_id in interface ServerRequestpublic OutputStream createReply()
ServerRequestcreateReply in interface ServerRequestpublic OutputStream createExceptionReply()
ServerRequestcreateExceptionReply in interface ServerRequest
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||