|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.component.netty.NettyHelper
public final class NettyHelper
Helper class used internally by camel-netty using Netty.
| Method Summary | |
|---|---|
static void |
close(org.jboss.netty.channel.Channel channel)
Closes the given channel |
static String |
getTextlineBody(Object body,
org.apache.camel.Exchange exchange,
TextLineDelimiter delimiter,
boolean autoAppendDelimiter)
Gets the string body to be used when sending with the textline codec. |
static void |
writeBodySync(org.jboss.netty.channel.Channel channel,
SocketAddress remoteAddress,
Object body,
org.apache.camel.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 |
|---|
public static String getTextlineBody(Object body,
org.apache.camel.Exchange exchange,
TextLineDelimiter delimiter,
boolean autoAppendDelimiter)
throws org.apache.camel.NoTypeConversionAvailableException
body - the current bodyexchange - the exchangedelimiter - the textline delimiterautoAppendDelimiter - whether absent delimiter should be auto appended
org.apache.camel.NoTypeConversionAvailableException - is thrown if the current body could not be converted to a String type
public static void writeBodySync(org.jboss.netty.channel.Channel channel,
SocketAddress remoteAddress,
Object body,
org.apache.camel.Exchange exchange)
throws org.apache.camel.CamelExchangeException
channel - the Netty channelremoteAddress - the remote address when using UDPbody - the body to write (send)exchange - the exchange
org.apache.camel.CamelExchangeException - is thrown if the body could not be written for some reasons
(eg remote connection is closed etc.)public static void close(org.jboss.netty.channel.Channel channel)
channel - the channel to close
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||