org.apache.synapse.transport.passthru.util

## Class RelayUtils

- java.lang.Object
- - org.apache.synapse.transport.passthru.util.RelayUtils

-     public class RelayUtils
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `RelayUtils()`

  - ### Method Summary

    Methods
    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

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### RelayUtils

          public RelayUtils()

  - ### Method Detail

    - #### buildMessage

          public static void buildMessage(org.apache.axis2.context.MessageContext msgCtx)
                                   throws IOException,
                                          XMLStreamException

      Throws:
        `IOException`
        `XMLStreamException`

    - #### buildMessage

          public static void buildMessage(org.apache.axis2.context.MessageContext messageContext,
                          boolean earlyBuild)
                                   throws IOException,
                                          XMLStreamException

      Throws:
        `IOException`
        `XMLStreamException`

    - #### builldMessage

          public static void builldMessage(org.apache.axis2.context.MessageContext messageContext,
                           boolean earlyBuild,
                           InputStream in)
                                    throws IOException,
                                           org.apache.axis2.AxisFault

      Throws:
        `IOException`
        `org.apache.axis2.AxisFault`

    - #### consumeAndDiscardMessage

          public static void consumeAndDiscardMessage(org.apache.axis2.context.MessageContext msgContext)
                                               throws org.apache.axis2.AxisFault

      Consumes the data in pipe completely in the given message context and discard it
      Parameters:
        `msgContext` - Axis2 Message context which contains the data
      Throws:
        `org.apache.axis2.AxisFault`

Copyright © 2005–2017 Apache Software Foundation. All rights reserved.