org.apache.camel.component.netty
Class NettyHelper

java.lang.Object
  extended by org.apache.camel.component.netty.NettyHelper

public final class NettyHelper
extends Object

Helper class used internally by camel-netty using Netty.

Version:
$Revision: 941713 $

Method Summary
static void close(org.jboss.netty.channel.Channel channel)
           
static void writeBody(org.jboss.netty.channel.Channel channel, SocketAddress remoteAddress, Object body, Exchange exchange)
          Writes the given body to Netty channel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

writeBody

public static void writeBody(org.jboss.netty.channel.Channel channel,
                             SocketAddress remoteAddress,
                             Object body,
                             Exchange exchange)
                      throws CamelExchangeException
Writes the given body to Netty channel. Will wait until the body has been written.

Parameters:
channel - the Netty channel
body - 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.)

close

public static void close(org.jboss.netty.channel.Channel channel)


Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.