Integration Server 10.3 | Integration Server Administrator's Guide | Content Handlers in Integration Server | About Content Handlers for HTTP Responses
 
About Content Handlers for HTTP Responses
 
Accept Header Field
Integration Server does the following to select a content handler for an HTTP response:
1. Looks at the Content-Type header field in the response header, and then uses the contentHandler registered for that content type. This field has a value only if the application assigns one using the pub.flow:setResponseHeader service.
If the Content-Type header field in the response header specifies an unsupported content type, Integration Server uses text/html.
2. If content type is not specified in the response header, Integration Server looks at the Accept header field in the request header to determine content type, and then uses the content handler registered for that content type.
3. If there is no Accept header field in the request header, or if there is no content handler for the content-type specified by the Accept header field, Integration Server uses the content handler that was used for the request.
Note:
If a response has already been created by the pub.flow:setResponse2 service or pub.flow:HTTPResponse document type, Integration Server does not use a content handler for the response.