public interface ServerRequest
extends org.omg.PortableInterceptor.ServerRequestInfo, org.omg.CORBA.portable.ResponseHandler
| Modifier and Type | Field and Description |
|---|---|
static short |
OBJECT_HERE
Extra reply status denoting a locate request found the object.
|
static int |
STATE_COMPLETE
Request has completed.
|
static int |
STATE_CREATED
The request has arrived but has not had any of it's service contexts
examined.
|
static int |
STATE_FIND_ADAPTER
This state is entered if a parent adapter is either holding requests
or is in the process of being destroyed.
|
static int |
STATE_PROCESSING
Request is being processed.
|
static int |
STATE_QUEUED
Request has had an adapter found and is enqueued awaiting dispatch.
|
static int |
STATE_REPLY
Replying, one of the response handlers functions have been called or an
an internal response is being constructed.
|
static short |
UNKNOWN_OBJECT
Extra reply status denoting a locate request where the object is not found
|
| Modifier and Type | Method and Description |
|---|---|
ObjectAdapter |
adapter()
Server adapter.
|
int |
adapter(ObjectAdapter adapter)
Set the object adapter and transfer to the QUEUED state.
|
org.omg.CORBA.portable.InputStream |
argument_stream()
Get the request input stream.
|
int |
begin_request()
Called by the worker thread before every attempt to run the request.
|
ServerChannel |
channel()
Server channel
|
void |
client_cancel()
Client intiated request cancelation.
|
org.omg.CORBA.portable.OutputStream |
createExceptionReply()
Create a stream for marshaling a user exception.
|
org.omg.CORBA.portable.OutputStream |
createReply()
Create a stream for marshaling the reply.
|
void |
dispatch()
Dispatch a request to it's destination.
|
org.omg.IOP.IOR |
forward_reference_ior()
Get the ior associated with a forward reference.
|
org.omg.IOP.ServiceContext[] |
get_reply_service_contexts()
Get all request service contexts that have been set.
|
boolean |
is_locate()
This returns true if this request is a locate request.
|
byte[] |
object_key()
Get the object_key for the request.
|
org.omg.CORBA.ORB |
orb()
ORB reference.
|
java.lang.String |
sending_system_exception_id()
Get the ID of the system exception which would be contained in the
any returned from sending_exception.
|
org.omg.CORBA.SystemException |
sending_system_exception()
Get the system exception which would be contained in the any returned
from sending_exception.
|
void |
server_cancel(java.lang.Throwable ex)
Server intiated request cancelation.
|
int |
state()
Current request state.
|
adapter_id, add_reply_service_context, get_server_policy, object_id, sending_exception, set_slot, target_is_a, target_most_derived_interfacestatic final short OBJECT_HERE
static final short UNKNOWN_OBJECT
static final int STATE_CREATED
static final int STATE_FIND_ADAPTER
static final int STATE_QUEUED
static final int STATE_PROCESSING
static final int STATE_REPLY
static final int STATE_COMPLETE
org.omg.CORBA.ORB orb()
ServerChannel channel()
int state()
byte[] object_key()
org.omg.IOP.ServiceContext[] get_reply_service_contexts()
boolean is_locate()
void client_cancel()
void server_cancel(java.lang.Throwable ex)
int begin_request()
int adapter(ObjectAdapter adapter)
ObjectAdapter adapter()
void dispatch()
throws AdapterDestroyedException
AdapterDestroyedExceptionorg.omg.CORBA.portable.InputStream argument_stream()
org.omg.CORBA.portable.OutputStream createReply()
createReply in interface org.omg.CORBA.portable.ResponseHandlerorg.omg.CORBA.portable.OutputStream createExceptionReply()
createExceptionReply in interface org.omg.CORBA.portable.ResponseHandlerorg.omg.IOP.IOR forward_reference_ior()
org.omg.CORBA.SystemException sending_system_exception()
java.lang.String sending_system_exception_id()