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.ChannelUpstreamHandler
handleUpstream
in class org.jboss.netty.channel.SimpleChannelUpstreamHandler
Exception
protected 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 © 2015. All rights reserved.