public interface Interceptor
<implementation type="Invoke">
<serviceuri>http://d-sxcsrv.nl.mycomp.com:1080/sap/bc/soap/rfc</serviceuri>
<soapaction>http://www.sap.com/Z_PORTAL_GET_CUSTOMER_ADDRES</soapaction>
<authenticationType>Anonymous</authenticationType>
<interceptor>
<class>com.cordys.project.mycomp.uddi.MyInterceptor</class>
<myparam>3</myparam>
</interceptor>
</implementation>
The flow when the Interceptor is created/invoked is:
The interceptor manipulates the XML (it does not need to copy/clone) the XML.
If an exception is thrown inside the interceptor code, the UDDI connector will throw an InterceptorException.
Modifier and Type | Method and Description |
---|---|
void |
initialize(int methodImplementation)
To initialize the Interceptor with the given method implementation.
|
void |
onHttpRequest(IHTTPObject httpObject,
UserInfo userInfo)
Hook to manipulate the HTTP request headers or query string going to the external web service host
|
void |
onHttpResponse(IHTTPObject httpObject,
UserInfo userInfo)
Hook to manipulate the HTTP response headers coming from the external web service host
|
void |
onRequest(int request)
Hook to manipulate the request that goes to the external web service.
|
void |
onResponse(int response)
Hook to manipulate the response that comes from the external web service.
|
void |
onSOAPFault(int soapFault)
Hook to manipulate the soap fault that comes from the external web service.
|
void initialize(int methodImplementation)
methodImplementation
- the method implementation (as XML)void onRequest(int request)
request
- the request (as XML) to manipulate (in/out parameter).void onResponse(int response)
response
- the response (as XML) to manipulate (in/out parameter)void onSOAPFault(int soapFault)
soapFault
- the soapFault (as XML) to manipulate (in/out parameter).void onHttpRequest(IHTTPObject httpObject, UserInfo userInfo) throws InterceptorException
httpObject
- an instance of the HTTPObject that represents the HTTP requestuserInfo
- userinfo object for the user who sent the SOAP requestInterceptorException
- if something goes wrongvoid onHttpResponse(IHTTPObject httpObject, UserInfo userInfo) throws InterceptorException
httpObject
- an instance of the HTTPObject that represents the HTTP responseuserInfo
- userinfo object for the user who sent the SOAP requestInterceptorException
- if something goes wrong