public abstract class MessageDecoder
extends org.jboss.netty.channel.SimpleChannelUpstreamHandler
| Modifier | Constructor and Description |
|---|---|
protected |
MessageDecoder() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Message |
decode(org.jboss.netty.channel.Channel channel,
org.jboss.netty.buffer.ChannelBuffer msg)
Transforms the specified received message into another message and return
the transformed message.
|
void |
handleUpstream(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelEvent evt) |
public void handleUpstream(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelEvent evt)
throws Exception
handleUpstream in interface org.jboss.netty.channel.ChannelUpstreamHandlerhandleUpstream in class org.jboss.netty.channel.SimpleChannelUpstreamHandlerExceptionprotected abstract Message decode(org.jboss.netty.channel.Channel channel, org.jboss.netty.buffer.ChannelBuffer msg) throws InvalidMessageException
null if the received message
is supposed to be discarded.InvalidMessageException - If the received message was not properly encoded.Copyright © 2013. All Rights Reserved.