Package org.apache.camel.component.netty
Class NettyPayloadHelper
- java.lang.Object
-
- org.apache.camel.component.netty.NettyPayloadHelper
-
public final class NettyPayloadHelper extends Object
Helper to get and set the correct payload when transferring data using camel-netty. Always use this helper instead of direct access on the exchange object. This helper ensures that we can also transfer exchange objects over the wire using the transferExchange=true option.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Object
getIn(NettyEndpoint endpoint, org.apache.camel.Exchange exchange)
static Object
getOut(NettyEndpoint endpoint, org.apache.camel.Exchange exchange)
static void
setIn(org.apache.camel.Exchange exchange, Object payload)
static void
setOut(org.apache.camel.Exchange exchange, Object payload)
-
-
-
Method Detail
-
getIn
public static Object getIn(NettyEndpoint endpoint, org.apache.camel.Exchange exchange)
-
getOut
public static Object getOut(NettyEndpoint endpoint, org.apache.camel.Exchange exchange)
-
setIn
public static void setIn(org.apache.camel.Exchange exchange, Object payload)
-
setOut
public static void setOut(org.apache.camel.Exchange exchange, Object payload)
-
-