org.apache.camel.component.mina
Class MinaHelper
java.lang.Object
org.apache.camel.component.mina.MinaHelper
public final class MinaHelper
- extends Object
Helper class used internally by camel-mina using Apache MINA.
|
Method Summary |
static void |
writeBody(org.apache.mina.common.IoSession session,
Object body,
Exchange exchange)
Writes the given body to MINA session. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
writeBody
public static void writeBody(org.apache.mina.common.IoSession session,
Object body,
Exchange exchange)
throws CamelExchangeException
- Writes the given body to MINA session. Will wait until the body has been written.
- Parameters:
session - the MINA sessionbody - the body to write (send)exchange - the exchange
- Throws:
CamelExchangeException - is thrown if the body could not be written for some reasons
(eg remote connection is closed etc.)
Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.