IBM BJ0NJML Integration Guide - Page 163
Property, Value, psdi.iface.router.HTTPExit interface. If the response that is received
![]() |
View all IBM BJ0NJML manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 163 highlights
HTTPEXIT Property Handlers This optional property is used for customization. This property specifies the fully qualified name of a Java class that interprets the HTTP response. This property also helps implement the code that is required for an external system to interpret the HTTP response. The Java class must be available in the application EAR. The Java class must be in the class path of the handler. Property Java class Package HTTPEXIT Property Value DefaultHTTPExit.java psdi.iface.router psdi.iface.router.DefaultHTTPExit The system provides a default implementation of the HTTP exit. The Java class is DefaultHTTPExit, which is in the psdi.iface.router package and implements the psdi.iface.router.HTTPExit interface. The Java class has the following key methods: T processResponseData() This method has the following signature: public void processResponseData(int responseCode, String responseMsg, byte[] msgBodyData) throws MXException The default implementation compares the response code from the external system to a range of valid codes (values 200 through 299). If the response code falls outside that range, the system assumes that the message was not delivered to the external system. An exception occurs and the message remains in the queue. If you need additional processing for a specific implementation, extend the default implementation and override the processResponseData () method. As an alternative, you can implement the psdi.iface.router.HTTPExit interface. If the response that is received from the external system does not pass the validation in this class, the overriding method must issue an exception. If you do not define a value for this property, the default implementation of HTTPExit is run. T getURLProperties() This method has the following signature: public Map String, String getURLProperties(Map String,? metaData, byte[] data, Map String,MaxEndPointPropInfo httpInfo) This method returns the map of URL properties that are added to the URL in the form url?prop1=value1&... The default implementation returns a null value. Endpoints and Handlers 149
![](/manual_guide/products/ibm-bj0njml-integration-guide-77e799f/163.png)