public class RelayUtils extends Object
Constructor and Description |
---|
RelayUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
buildMessage(org.apache.axis2.context.MessageContext msgCtx) |
static void |
buildMessage(org.apache.axis2.context.MessageContext messageContext,
boolean earlyBuild) |
static void |
builldMessage(org.apache.axis2.context.MessageContext messageContext,
boolean earlyBuild,
InputStream in) |
static void |
consumeAndDiscardMessage(org.apache.axis2.context.MessageContext msgContext)
Consumes the data in pipe completely in the given message context and discard it
|
static boolean |
isDeleteRequestWithoutPayload(org.apache.axis2.context.MessageContext msgContext)
Function to check whether the processing request (enclosed within MessageContext) is a DELETE request without
entity body since we allow to have payload for DELETE requests, we treat same as POST.
|
static boolean |
isEmptyPayloadStream(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 IOException, XMLStreamException
IOException
XMLStreamException
public static void buildMessage(org.apache.axis2.context.MessageContext messageContext, boolean earlyBuild) throws IOException, XMLStreamException
IOException
XMLStreamException
public static void builldMessage(org.apache.axis2.context.MessageContext messageContext, boolean earlyBuild, InputStream in) throws IOException, org.apache.axis2.AxisFault
IOException
org.apache.axis2.AxisFault
public static boolean isDeleteRequestWithoutPayload(org.apache.axis2.context.MessageContext msgContext)
msgContext
- MessageContextpublic static boolean isEmptyPayloadStream(InputStream inputStream) throws IOException
inputStream
- target inputstreamIOException
public static void consumeAndDiscardMessage(org.apache.axis2.context.MessageContext msgContext) throws org.apache.axis2.AxisFault
msgContext
- Axis2 Message context which contains the dataorg.apache.axis2.AxisFault
Copyright © 2005–2018 Apache Software Foundation. All rights reserved.