B2B Integration 10.5 | Administering and Monitoring B2B Transactions | Integration Server Administrator's Guide | Using HTTP Interceptors | Creating an HTTP Interceptor
 
Creating an HTTP Interceptor
You can create and add one or both interceptor classes using the procedure given below.
* To create and add an HTTP interceptor
1. Write a Java class that implements the required (HttpInterceptorIFC or HttpOutboundInterceptorIFC) interface.
2. Build the class and add it to a jar file.
3. Place the jar file in one of the following locations that Integration Server adds to the classpath:
* Software AG_directory \ Integration Server_directory \instances\instanceName\lib\jars\custom
* Software AG_directory \ Integration Server_directory \lib\jars\custom
* Software AG_directory \ Integration Server_directory \instances\instanceName\packages\packageName\code\jars\static
4. Set the following server configuration properties in Integration Server:
*For an inbound interceptor:
*watt.server.http.interceptor.enabled: Set this parameter to true to use inbound HTTP interceptors.
*watt.server.http.interceptor.impl: Set this parameter to the fully qualified name of the class that implements the inbound interceptor interface.
*watt.server.http.interceptor.preprocess.sizeLimit: Set this parameter to define a size limit on the requests that will be handled by the inbound interceptor. The parameter is not applicable to the outbound interceptor.
*For an outbound interceptor:
*watt.server.http.interceptor.outbound.enabled: Set this property to true to use outbound HTTP interceptors.
*watt.server.http.interceptor.outbound.impl: Set this property to the fully qualified name of the class that implements the outbound interceptor interface.
For more information about these parameters, see watt.server..
5. Restart Integration Server.

Copyright © 2016- 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.