public class ServerRequestInfoImpl extends RequestInfoImpl implements ServerRequestInfo
Modifier and Type | Field and Description |
---|---|
protected Any |
sending_exception |
arguments, caller_op, current, exceptions, forward_reference, orb, reply_ctx, reply_status, request_ctx, request_id, result, sync_scope
Constructor and Description |
---|
ServerRequestInfoImpl(ORB orb,
Collection<ServiceContext> contexts,
Servant servant,
byte[] objectId,
String operation,
boolean response_expected,
short sync_scope)
This constructor is to cater for local calls where portable
interceptors are involved.
|
ServerRequestInfoImpl(ORB orb,
ServerRequest request,
Servant servant) |
Modifier and Type | Method and Description |
---|---|
byte[] |
adapter_id() |
String[] |
adapter_name() |
void |
add_reply_service_context(ServiceContext service_context,
boolean replace) |
Parameter[] |
arguments() |
TypeCode[] |
exceptions() |
Object |
forward_reference() |
ServiceContext |
get_reply_service_context(int id) |
Policy |
get_server_policy(int type)
WARNING: This method relies on the DomainService to be available.
|
GIOPConnection |
getConnection()
Public accessor to return the connection being used by this ServerRequestInfoImpl.
|
ReplyOutputStream |
getReplyStream()
Public accessor to access the internal reply stream.
|
RequestInputStream |
getRequestStream()
Public accessor to access the internal request stream.
|
boolean |
isLocalInterceptor()
Public accessor to determine if this interceptor is being used in a local call.
|
byte[] |
object_id() |
String |
operation() |
String |
orb_id() |
short |
reply_status() |
int |
request_id() |
boolean |
response_expected() |
Any |
result() |
Any |
sending_exception() |
void |
sending_exception(Any any)
Set the sending_exception Any.
|
String |
server_id() |
void |
set_slot(int id,
Any data) |
void |
setServant(Servant servant)
The servant is sometimes not available on calling
receive_request_service_contexts (e.g.
|
short |
sync_scope()
Return the sync_scope as set in the constructor
|
boolean |
target_is_a(String id) |
String |
target_most_derived_interface() |
Object |
target()
returns a reference to the calls target.
|
void |
update()
Set the sending_exception attribute.
|
void |
updateException(Throwable ex)
Method introduced for local invocations as there is no Reply or Stream
involved
|
contexts, current, get_request_service_context, get_slot, getReplyServiceContexts, getRequestServiceContexts, operation_context, orb, setArguments, setCurrent, setForwardReference, setReplyServiceContexts, setReplyStatus, setRequestServiceContexts, setResult
_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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
contexts, get_request_service_context, get_slot, operation_context
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
protected Any sending_exception
public ServerRequestInfoImpl(ORB orb, ServerRequest request, Servant servant)
public ServerRequestInfoImpl(ORB orb, Collection<ServiceContext> contexts, Servant servant, byte[] objectId, String operation, boolean response_expected, short sync_scope)
orb
- the orbcontexts
- the contextsservant
- the servantobjectId
- the object idoperation
- the operationresponse_expected
- the response_expectedsync_scope
- the sync_scopepublic final void setServant(Servant servant)
public void update()
public void updateException(Throwable ex)
public Object target()
public Parameter[] arguments()
arguments
in interface RequestInfoOperations
arguments
in class RequestInfoImpl
public TypeCode[] exceptions()
exceptions
in interface RequestInfoOperations
exceptions
in class RequestInfoImpl
public Any result()
result
in interface RequestInfoOperations
result
in class RequestInfoImpl
public short sync_scope()
RequestInfoImpl
sync_scope
in interface RequestInfoOperations
sync_scope
in class RequestInfoImpl
public short reply_status()
reply_status
in interface RequestInfoOperations
reply_status
in class RequestInfoImpl
public Object forward_reference()
forward_reference
in interface RequestInfoOperations
forward_reference
in class RequestInfoImpl
public ServiceContext get_reply_service_context(int id)
get_reply_service_context
in interface RequestInfoOperations
get_reply_service_context
in class RequestInfoImpl
public String operation()
operation
in interface RequestInfoOperations
operation
in class RequestInfoImpl
public int request_id()
request_id
in interface RequestInfoOperations
request_id
in class RequestInfoImpl
public boolean response_expected()
response_expected
in interface RequestInfoOperations
response_expected
in class RequestInfoImpl
public Any sending_exception()
sending_exception
in interface ServerRequestInfoOperations
public byte[] object_id()
object_id
in interface ServerRequestInfoOperations
public byte[] adapter_id()
adapter_id
in interface ServerRequestInfoOperations
public String orb_id()
orb_id
in interface ServerRequestInfoOperations
public String server_id()
server_id
in interface ServerRequestInfoOperations
public String[] adapter_name()
adapter_name
in interface ServerRequestInfoOperations
public String target_most_derived_interface()
target_most_derived_interface
in interface ServerRequestInfoOperations
public Policy get_server_policy(int type)
get_server_policy
in interface ServerRequestInfoOperations
public void set_slot(int id, Any data) throws InvalidSlot
set_slot
in interface ServerRequestInfoOperations
InvalidSlot
public boolean target_is_a(String id)
target_is_a
in interface ServerRequestInfoOperations
public void add_reply_service_context(ServiceContext service_context, boolean replace)
add_reply_service_context
in interface ServerRequestInfoOperations
public GIOPConnection getConnection()
public boolean isLocalInterceptor()
public ReplyOutputStream getReplyStream()
public RequestInputStream getRequestStream()
public void sending_exception(Any any)
Copyright © 2017 JacORB. All rights reserved.