groovyx.gpars.remote.netty
Class RemoteObjectDecoder

java.lang.Object
  extended by org.jboss.netty.channel.SimpleChannelUpstreamHandler
      extended by org.jboss.netty.handler.codec.frame.FrameDecoder
          extended by org.jboss.netty.handler.codec.frame.LengthFieldBasedFrameDecoder
              extended by org.jboss.netty.handler.codec.serialization.ObjectDecoder
                  extended by groovyx.gpars.remote.netty.RemoteObjectDecoder
All Implemented Interfaces:
org.jboss.netty.channel.ChannelHandler, org.jboss.netty.channel.ChannelUpstreamHandler

@ChannelHandler.Sharable
public class RemoteObjectDecoder
extends org.jboss.netty.handler.codec.serialization.ObjectDecoder


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler
org.jboss.netty.channel.ChannelHandler.Sharable
 
Field Summary
private  RemoteConnection connection
           
 
Constructor Summary
RemoteObjectDecoder(RemoteConnection connection)
          Creates a new encoder.
 
Method Summary
protected  java.lang.Object decode(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.Channel channel, org.jboss.netty.buffer.ChannelBuffer buffer)
           
 
Methods inherited from class org.jboss.netty.handler.codec.serialization.ObjectDecoder
extractFrame
 
Methods inherited from class org.jboss.netty.handler.codec.frame.FrameDecoder
decodeLast, exceptionCaught, channelClosed, channelDisconnected, messageReceived
 
Methods inherited from class org.jboss.netty.channel.SimpleChannelUpstreamHandler
handleUpstream, channelBound, channelConnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, writeComplete
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connection

private final RemoteConnection connection
Constructor Detail

RemoteObjectDecoder

public RemoteObjectDecoder(RemoteConnection connection)
Creates a new encoder.

Parameters:
connection - connection handling serialization details
Method Detail

decode

protected java.lang.Object decode(org.jboss.netty.channel.ChannelHandlerContext ctx,
                                  org.jboss.netty.channel.Channel channel,
                                  org.jboss.netty.buffer.ChannelBuffer buffer)
                           throws java.lang.Exception
Overrides:
decode in class org.jboss.netty.handler.codec.serialization.ObjectDecoder
Throws:
java.lang.Exception

Copyright © 2008–2012 Václav Pech. All Rights Reserved.