org.omg.PortableInterceptor

Interface ServerRequestInterceptorOperations

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
voidreceive_request(ServerRequestInfo info)
ORB calls this method after all the information, including operation parameters, are available.
voidreceive_request_service_contexts(ServerRequestInfo info)
ORB calls this method before invoking the servant manager.
voidsend_exception(ServerRequestInfo info)
ORB calls this method if the exception has been throw during the request processing.
voidsend_other(ServerRequestInfo info)
ORB normally calls this method if the request has been forwarded.
voidsend_reply(ServerRequestInfo info)
ORB calls this method after the target operation has been invoked and before the reply is returned to the client.

Method Detail

receive_request

public void receive_request(ServerRequestInfo info)
ORB calls this method after all the information, including operation parameters, are available. The interceptor has possibility to forward the request by throwing {@link 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.

receive_request_service_contexts

public void receive_request_service_contexts(ServerRequestInfo info)
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 {@link 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.

send_exception

public void send_exception(ServerRequestInfo info)
ORB calls this method if the exception has been throw during the request processing. The interceptor has possibility to forward the request by throwing {@link 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

public void send_other(ServerRequestInfo info)
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.

send_reply

public 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.