com.bea.wsrp.consumer.wsdl
Interface IWSDLInterceptor


public interface IWSDLInterceptor

Implementations of this interface can be used to intercept WSDL fetches for WSRP operations on the consumer side. This may be used to modify the WSDL's URL the ports' URLs or to set a TransportInfo which may be used to setup a HTTP-proxy or 2-Way-SSL. To register an implementation of this interface: Set the system property: com.bea.wsrp.consumer.wsdl.IWSDLInterceptor to the fully-qualified class name of your interceptor which implements this interface. Example: -Dcom.bea.wsrp.consumer.wsdl.IWSDLInterceptor=com.example.wsrp.WSDLInterceptor


Nested Class Summary
static class IWSDLInterceptor.OnWSDLException
          What to do after an IO Failure has occurred
static class IWSDLInterceptor.PreInvoke
          What to after preInvoke is called
 
Method Summary
 IWSDLInterceptor.OnWSDLException onWSDLException(IWSDLRequestContext requestContext, IWSDLResponseContext responseContext, weblogic.wsee.wsdl.WsdlException t)
          Invoked when there is exception while sending the request or receiving the response.
 void postInvoke(IWSDLRequestContext requestContext, IWSDLResponseContext responseContext)
          Invoked after receiving the WSDL.
 IWSDLInterceptor.PreInvoke preInvoke(IWSDLRequestContext requestContext)
          Invoked before requesting a WSDL
 

Method Detail

preInvoke

IWSDLInterceptor.PreInvoke preInvoke(IWSDLRequestContext requestContext)
                                     throws IOException
Invoked before requesting a WSDL

Parameters
requestContext - a request context object that represents input data for the resource
Returns
FETCH_WSDL if the WSDL should be fetched normally, SKIP_FETCH_WSDL postInvoke() will immediately be called without any WSDL fetch (e.g. network traffic) ABORT will stop all processing of this WSDL.
Throws
IOException - If the interceptor throws an IOException it will be handled by the container.

postInvoke

void postInvoke(IWSDLRequestContext requestContext,
                IWSDLResponseContext responseContext)
                throws IOException
Invoked after receiving the WSDL.

Parameters
requestContext - a request context object that represents input data for the resource
responseContext - a response context object that represents output data from the WSDL. The response context will be empty if the preInvoke method had returned false.
Throws
IOException - If the interceptor throws an IOException it will be handled by the servlet container.

onWSDLException

IWSDLInterceptor.OnWSDLException onWSDLException(IWSDLRequestContext requestContext,
                                                 IWSDLResponseContext responseContext,
                                                 weblogic.wsee.wsdl.WsdlException t)
                                                 throws IOException
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 resource
responseContext - an empty response context, so that an implementation can populate it and return true.
t - an exception that represents an IO failure.
Returns
RETRY_WSDL_FETCH if the requestContext was updated and the fetch should be retried. IO_FAILURE_HANDLED if the responseContext was updated such that the WDSL processing can continue. ABORT_WITH_FAILURE if the failure was not handled and the processing should be aborted.
Throws
IOException - If the interceptor throws an IOException it will be handled by the container and no further processing will be done.


Copyright © 2011, Oracle. All rights reserved.