org.omg.PortableInterceptor
Interface ServerRequestInterceptorOperations

All Superinterfaces:
InterceptorOperations
All Known Subinterfaces:
ServerRequestInterceptor

public interface ServerRequestInterceptorOperations
extends InterceptorOperations

Defines operations, applicable to the server side request interceptor. The operations are called by ORB at the appropriate interception points.


Method Summary
 void receive_request_service_contexts(ServerRequestInfo info)
          ORB calls this method before invoking the servant manager.
 void receive_request(ServerRequestInfo info)
          ORB calls this method after all the information, including operation parameters, are available.
 void send_exception(ServerRequestInfo info)
          ORB calls this method if the exception has been throw during the request processing.
 void send_other(ServerRequestInfo info)
          ORB normally calls this method if the request has been forwarded.
 void send_reply(ServerRequestInfo info)
          ORB calls this method after the target operation has been invoked and before the reply is returned to the client.
 
Methods inherited from interface org.omg.PortableInterceptor.InterceptorOperations
destroy, name
 

Method Detail

receive_request_service_contexts

void receive_request_service_contexts(ServerRequestInfo info)
                                      throws ForwardRequest
ORB calls this method before invoking the servant manager. Operation parameters are not available at this point. The interceptor has possibility to forward the request by throwing ForwardRequest.

Throws:
SystemException - if it does, the receive_request_service_contexts is not called for the subsequent interceptors, calling send_exception instead. The completion status of such exception must be COMPLETED_NO.
ForwardRequest - to forward the invocation to another target. The receive_request_service_contexts is not called for the subsequent interceptors, calling send_other instead.

receive_request

void receive_request(ServerRequestInfo info)
                     throws ForwardRequest
ORB calls this method after all the information, including operation parameters, are available. The interceptor has possibility to forward the request by throwing ForwardRequest.

Parameters:
info - the object for accessing and manipulating the request information.
Throws:
SystemException - if it does, the receive_request is not called for the subsequent interceptors, calling send_exception instead. The completion status of such exception must be COMPLETED_NO.
ForwardRequest - to forward the invocation to another target. The receive_request is not called for the subsequent interceptors, calling send_other instead.

send_reply

void send_reply(ServerRequestInfo info)
ORB calls this method after the target operation has been invoked and before the reply is returned to the client. This interception point shall execute in the same thread as the target invocation.

Parameters:
info - the object for accessing and manipulating the request information.
Throws:
SystemException - if it does, the send_reply is not called for the subsequent interceptors, calling send_exception instead. The completion status of such exception must be COMPLETED_YES.

send_exception

void send_exception(ServerRequestInfo info)
                    throws ForwardRequest
ORB calls this method if the exception has been throw during the request processing. The interceptor has possibility to forward the request by throwing ForwardRequest.

Parameters:
info - the object for accessing and manipulating the request information.
Throws:
SystemException - has the effect of changing the exception that successive interceptors receive on their calls to send_exception. If the original exception is a system exception, the completion_status of the new exception must match the exception being replaced. If the original exception is a user exception, then the completion_status of the new exception must be COMPLETED_YES.
ForwardRequest - to forward the invocation to another target. The send_exception is not called for the subsequent interceptors, calling send_other instead. If the completion_status of the original exception is not a COMPLETED_NO, the ForwardRequest must not be raised.

send_other

void send_other(ServerRequestInfo info)
                throws ForwardRequest
ORB normally calls this method if the request has been forwarded.

Parameters:
info - the object for accessing and manipulating the request information.
Throws:
SystemException - if it does, the send_other is not called for the subsequent interceptors, calling send_exception instead.
ForwardRequest - has the effect of changing the redirection that successive interceptors receive on their calls to send_other.