com.bea.wsrp.consumer.interceptor
Interface IReleaseSessionsInterceptor


public interface IReleaseSessionsInterceptor

Implementations of this interface can be used to intercept "releaseSessions" WSRP operations on the consumer side. To register an implementation of this interface as an interceptor, it must be specified in the WEB-INF/wsrp-consumer-handler-config.xml file. Look in e-Docs for WSRP interceptor for further documentation on configuring interceptors in wsrp-consumer-handler-config.xml.


Method Summary
 Status.OnFault onFault(IReleaseSessionsRequestContext requestContext, IReleaseSessionsResponseContext responseContext, Throwable t)
          Invoked when a SOAP fault is received in the response.
 Status.OnIOFailure onIOFailure(IReleaseSessionsRequestContext requestContext, IReleaseSessionsResponseContext responseContext, Throwable t)
          Invoked when there is exception while sending the request or receiving the response.
 Status.PostInvoke postInvoke(IReleaseSessionsRequestContext requestContext, IReleaseSessionsResponseContext responseContext)
          Invoked after receiving the response from the Producer.
 Status.PreInvoke preInvoke(IReleaseSessionsRequestContext requestContext)
          Invoked before constructing a SOAP message and sending it to the Producer.
 

Method Detail

preInvoke

Status.PreInvoke preInvoke(IReleaseSessionsRequestContext requestContext)
Invoked before constructing a SOAP message and sending it to the Producer.

Parameters
requestContext - a request context object that represents input data for the "releaseSessions" operation.
Returns
by default the implementation should return Status.PreInvoke.CONTINUE_CHAIN.

postInvoke

Status.PostInvoke postInvoke(IReleaseSessionsRequestContext requestContext,
                             IReleaseSessionsResponseContext responseContext)
Invoked after receiving the response from the Producer.

Parameters
requestContext - a request context object that represents input data for the "releaseSessions" operation.
responseContext - a response context object that represents output data from the "releaseSessions" operation.
Returns
by default the implementation should return Status.PostInvoke.CONTINUE_CHAIN.

onFault

Status.OnFault onFault(IReleaseSessionsRequestContext requestContext,
                       IReleaseSessionsResponseContext responseContext,
                       Throwable t)
Invoked when a SOAP fault is received in the response. The interceptor can handle the fault, or retry the request.

Parameters
requestContext - a request context object that represents input data for the "releaseSessions" operation.
responseContext - an empty response context, so that an implementation can populate it and return Status.OnFault.HANDLED.
t - an exception that represents a fault.
Returns
by default the implementation should return Status.OnFault.CONTINUE_CHAIN.

onIOFailure

Status.OnIOFailure onIOFailure(IReleaseSessionsRequestContext requestContext,
                               IReleaseSessionsResponseContext responseContext,
                               Throwable t)
Invoked when there is exception while sending the request or receiving the response. The interceptor can handle the exception, or retry the request.

Parameters
requestContext - a request context object that represents input data for the "releaseSessions" operation.
responseContext - an empty response context, so that an implementation can populate it and return Status.OnIOFailure.HANDLED.
t - an exception that represents an IO failure.
Returns
by default the implementation should return Status.OnIOFailure.CONTINUE_CHAIN.


Copyright © 2011, Oracle. All rights reserved.