Handlers
Endpoints and Handlers
149
HTTPEXIT Property
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.
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.
Property Value
Java class
DefaultHTTPExit.java
Package
psdi.iface.router
HTTPEXIT Property
psdi.iface.router.DefaultHTTPExit
Summary of Contents for BJ0NJML - Service And Asset Management
Page 12: ...xii Integration Guide ...
Page 14: ...xiv Integration Guide ...
Page 16: ......
Page 31: ...Integration Framework for User Interface Integration Integration Framework Architecture 17 ...
Page 32: ...Integration Framework for User Interface Integration 18 Integration Guide ...
Page 60: ...Synchronous Inbound Integration Processing 46 Integration Guide ...
Page 122: ...Configuring External Systems 108 Integration Guide ...
Page 142: ...Non queue Error Management 128 Integration Guide ...
Page 154: ...Integration Components 140 Integration Guide ...
Page 156: ......
Page 172: ...Writing Custom Handlers 158 Integration Guide ...
Page 176: ...Queue Tables 162 Integration Guide ...
Page 190: ...IBM WebSphere MQ 176 Integration Guide ...
Page 212: ...Inbound Message Receipt 198 Integration Guide ...
Page 226: ...Integration Controls 212 Integration Guide ...
Page 252: ...Predefined External System Modifications 238 Integration Guide ...
Page 263: ...Web Service Queries Integration Queries 249 ...
Page 264: ...Web Service Queries 250 Integration Guide ...
Page 272: ...Integration Web Service Invocations 258 Integration Guide ...
Page 276: ...Multilanguage Attributes 262 Integration Guide ...
Page 293: ...Integration Module Invocation Integration Modules 279 ...
Page 294: ...Integration Module Invocation 280 Integration Guide ...
Page 302: ...Associating a Condition with a Signature Option 288 Integration Guide ...
Page 320: ...Work Order Collaboration Switches 306 Integration Guide ...
Page 324: ...310 Integration Guide ...