public class SourceResponseHandler
extends java.lang.Object
SourceResponseHandler have utilities for creating and preparing an outbound response to be sent
to the HTTP client.| Constructor and Description |
|---|
SourceResponseHandler() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canOutboundResponseHaveContentTypeHeader(org.apache.axis2.context.MessageContext msgContext) |
static org.wso2.transport.http.netty.message.HttpCarbonMessage |
createOutboundResponseMsg(org.apache.axis2.context.MessageContext msgCtx,
org.wso2.transport.http.netty.message.HttpCarbonMessage clientRequest)
Creates outbound response to be sent back to the HTTP client using the axis2 message context and
the original client request.
|
static java.lang.String |
getContentTypeForOutboundResponse(org.apache.axis2.context.MessageContext msgContext) |
static boolean |
isPassThroughMessage(org.apache.axis2.context.MessageContext msgContext)
The pass through (when message body is not built) status of the message.
|
static void |
sendResponse(org.apache.axis2.context.MessageContext msgCtx,
org.wso2.transport.http.netty.message.HttpCarbonMessage inboundRequestMsg,
org.wso2.transport.http.netty.message.HttpCarbonMessage outboundResponseMsg)
Writes the response headers and the response body to the client.
|
public static org.wso2.transport.http.netty.message.HttpCarbonMessage createOutboundResponseMsg(org.apache.axis2.context.MessageContext msgCtx,
org.wso2.transport.http.netty.message.HttpCarbonMessage clientRequest)
throws org.apache.axis2.AxisFault
msgCtx - axis2 message contextclientRequest - original HTTP client requestorg.apache.axis2.AxisFault - if something goes wrong when creating the outbound responsepublic static boolean canOutboundResponseHaveContentTypeHeader(org.apache.axis2.context.MessageContext msgContext)
public static java.lang.String getContentTypeForOutboundResponse(org.apache.axis2.context.MessageContext msgContext)
throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFaultpublic static boolean isPassThroughMessage(org.apache.axis2.context.MessageContext msgContext)
public static void sendResponse(org.apache.axis2.context.MessageContext msgCtx,
org.wso2.transport.http.netty.message.HttpCarbonMessage inboundRequestMsg,
org.wso2.transport.http.netty.message.HttpCarbonMessage outboundResponseMsg)
throws org.apache.axis2.AxisFault
msgCtx - axis2 message contextinboundRequestMsg - inbound request carbon messageoutboundResponseMsg - outbound response carbon messageorg.apache.axis2.AxisFault - if something goes wrong when sending out the responseCopyright © 2005-2022 Apache Software Foundation. All Rights Reserved.