com.bea.wsrp.consumer.interceptor
Interface IGetResourceInterceptor


public interface IGetResourceInterceptor

Implementations of this interface can be used to intercept "getResource" 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(IGetResourceRequestContext requestContext, IGetResourceResponseContext responseContext, Throwable t)
          Invoked when a SOAP fault is received in the response.
 Status.OnIOFailure onIOFailure(IGetResourceRequestContext requestContext, IGetResourceResponseContext responseContext, Throwable t)
          Invoked when there is exception while sending the request or receiving the response.
 Status.PostInvoke postInvoke(IGetResourceRequestContext requestContext, IGetResourceResponseContext responseContext)
          Invoked after receiving the response from the Producer.
 Status.PreInvoke preInvoke(IGetResourceRequestContext requestContext)
          Invoked before constructing a SOAP message and sending it to the Producer.
 

Method Detail

preInvoke

Status.PreInvoke preInvoke(IGetResourceRequestContext 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 "getResource" operation.
Returns
by default the implementation should return Status.PreInvoke.CONTINUE_CHAIN.

postInvoke

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

Parameters
requestContext - a request context object that represents input data for the "getResource" operation.
responseContext - a response context object that represents output data from the "getResource" operation. The response context will be empty if the preInvoke method had returned Status.PreInvoke.SKIP_REQUEST_ABORT_CHAIN.
Returns
by default the implementation should return Status.PostInvoke.CONTINUE_CHAIN.

onFault

Status.OnFault onFault(IGetResourceRequestContext requestContext,
                       IGetResourceResponseContext 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 "getResource" 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(IGetResourceRequestContext requestContext,
                               IGetResourceResponseContext 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 "getResource" 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.