public class MessageUtils
extends java.lang.Object
| Constructor and Description |
|---|
MessageUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
buildMessage(org.apache.axis2.context.MessageContext msgCtx) |
static void |
buildMessage(org.apache.axis2.context.MessageContext msgCtx,
boolean earlyBuild) |
static org.apache.axis2.transport.MessageFormatter |
getMessageFormatter(org.apache.axis2.context.MessageContext msgContext)
This selects the formatter for a given message format based on the the content type of the received message.
|
static java.lang.String |
getMIMEContentType(java.lang.String contentType)
Get MIME content type out of content-type header.
|
static org.apache.axiom.om.OMOutputFormat |
getOMOutputFormat(org.apache.axis2.context.MessageContext msgContext) |
static boolean |
isEmptyPayloadStream(java.io.InputStream inputStream)
Function to check given inputstream is empty or not
Used to check whether content of the payload input stream is empty or not.
|
public static void buildMessage(org.apache.axis2.context.MessageContext msgCtx)
throws java.io.IOException
java.io.IOExceptionpublic static void buildMessage(org.apache.axis2.context.MessageContext msgCtx,
boolean earlyBuild)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String getMIMEContentType(java.lang.String contentType)
contentType - content type header valuepublic static boolean isEmptyPayloadStream(java.io.InputStream inputStream)
throws java.io.IOException
inputStream - target inputstreamjava.io.IOExceptionpublic static org.apache.axis2.transport.MessageFormatter getMessageFormatter(org.apache.axis2.context.MessageContext msgContext)
msgContext - axis2 MessageContextpublic static org.apache.axiom.om.OMOutputFormat getOMOutputFormat(org.apache.axis2.context.MessageContext msgContext)
Copyright © 2005-2022 Apache Software Foundation. All Rights Reserved.