Building Your Event-Driven Architecture : Integration Server Administrator’s Guide : Content Handlers : About Content Handlers for HTTP Responses
About Content Handlers for HTTP Responses
 
Accept Header Field
Note:  
If a response has already been created by the pub.flow:setResponse2 service, Integration Server does not use a content handler for the response.
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.
Copyright © 2016 - 2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback