org.codehaus.gpars

groovyx.gpars.remote.netty
[Java] Class RemoteObjectDecoder

java.lang.Object
  org.jboss.netty.channel.SimpleChannelUpstreamHandler
      org.jboss.netty.handler.codec.frame.FrameDecoder
          org.jboss.netty.handler.codec.serialization.ObjectDecoder
              groovyx.gpars.remote.netty.RemoteObjectDecoder

@ChannelPipelineCoverage("one")
public class RemoteObjectDecoder
extends org.jboss.netty.handler.codec.serialization.ObjectDecoder

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
org.jboss.netty.handler.codec.serialization.ObjectDecoder#messageReceived(org.jboss.netty.channel.ChannelHandlerContext, org.jboss.netty.channel.MessageEvent), org.jboss.netty.handler.codec.serialization.ObjectDecoder#channelDisconnected(org.jboss.netty.channel.ChannelHandlerContext, org.jboss.netty.channel.ChannelStateEvent), org.jboss.netty.handler.codec.serialization.ObjectDecoder#channelClosed(org.jboss.netty.channel.ChannelHandlerContext, org.jboss.netty.channel.ChannelStateEvent), org.jboss.netty.handler.codec.serialization.ObjectDecoder#exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext, org.jboss.netty.channel.ExceptionEvent), org.jboss.netty.handler.codec.serialization.ObjectDecoder#handleUpstream(org.jboss.netty.channel.ChannelHandlerContext, org.jboss.netty.channel.ChannelEvent), org.jboss.netty.handler.codec.serialization.ObjectDecoder#channelOpen(org.jboss.netty.channel.ChannelHandlerContext, org.jboss.netty.channel.ChannelStateEvent), org.jboss.netty.handler.codec.serialization.ObjectDecoder#channelBound(org.jboss.netty.channel.ChannelHandlerContext, org.jboss.netty.channel.ChannelStateEvent), org.jboss.netty.handler.codec.serialization.ObjectDecoder#channelConnected(org.jboss.netty.channel.ChannelHandlerContext, org.jboss.netty.channel.ChannelStateEvent), org.jboss.netty.handler.codec.serialization.ObjectDecoder#channelInterestChanged(org.jboss.netty.channel.ChannelHandlerContext, org.jboss.netty.channel.ChannelStateEvent), org.jboss.netty.handler.codec.serialization.ObjectDecoder#channelUnbound(org.jboss.netty.channel.ChannelHandlerContext, org.jboss.netty.channel.ChannelStateEvent), org.jboss.netty.handler.codec.serialization.ObjectDecoder#writeComplete(org.jboss.netty.channel.ChannelHandlerContext, org.jboss.netty.channel.WriteCompletionEvent), org.jboss.netty.handler.codec.serialization.ObjectDecoder#childChannelOpen(org.jboss.netty.channel.ChannelHandlerContext, org.jboss.netty.channel.ChildChannelStateEvent), org.jboss.netty.handler.codec.serialization.ObjectDecoder#childChannelClosed(org.jboss.netty.channel.ChannelHandlerContext, org.jboss.netty.channel.ChildChannelStateEvent), org.jboss.netty.handler.codec.serialization.ObjectDecoder#wait(long), org.jboss.netty.handler.codec.serialization.ObjectDecoder#wait(), org.jboss.netty.handler.codec.serialization.ObjectDecoder#wait(long, int), org.jboss.netty.handler.codec.serialization.ObjectDecoder#equals(java.lang.Object), org.jboss.netty.handler.codec.serialization.ObjectDecoder#toString(), org.jboss.netty.handler.codec.serialization.ObjectDecoder#hashCode(), org.jboss.netty.handler.codec.serialization.ObjectDecoder#getClass(), org.jboss.netty.handler.codec.serialization.ObjectDecoder#notify(), org.jboss.netty.handler.codec.serialization.ObjectDecoder#notifyAll()
 
Methods inherited from class org.jboss.netty.handler.codec.frame.FrameDecoder
org.jboss.netty.handler.codec.frame.FrameDecoder#messageReceived(org.jboss.netty.channel.ChannelHandlerContext, org.jboss.netty.channel.MessageEvent), org.jboss.netty.handler.codec.frame.FrameDecoder#channelDisconnected(org.jboss.netty.channel.ChannelHandlerContext, org.jboss.netty.channel.ChannelStateEvent), org.jboss.netty.handler.codec.frame.FrameDecoder#channelClosed(org.jboss.netty.channel.ChannelHandlerContext, org.jboss.netty.channel.ChannelStateEvent), org.jboss.netty.handler.codec.frame.FrameDecoder#exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext, org.jboss.netty.channel.ExceptionEvent), org.jboss.netty.handler.codec.frame.FrameDecoder#handleUpstream(org.jboss.netty.channel.ChannelHandlerContext, org.jboss.netty.channel.ChannelEvent), org.jboss.netty.handler.codec.frame.FrameDecoder#channelOpen(org.jboss.netty.channel.ChannelHandlerContext, org.jboss.netty.channel.ChannelStateEvent), org.jboss.netty.handler.codec.frame.FrameDecoder#channelBound(org.jboss.netty.channel.ChannelHandlerContext, org.jboss.netty.channel.ChannelStateEvent), org.jboss.netty.handler.codec.frame.FrameDecoder#channelConnected(org.jboss.netty.channel.ChannelHandlerContext, org.jboss.netty.channel.ChannelStateEvent), org.jboss.netty.handler.codec.frame.FrameDecoder#channelInterestChanged(org.jboss.netty.channel.ChannelHandlerContext, org.jboss.netty.channel.ChannelStateEvent), org.jboss.netty.handler.codec.frame.FrameDecoder#channelUnbound(org.jboss.netty.channel.ChannelHandlerContext, org.jboss.netty.channel.ChannelStateEvent), org.jboss.netty.handler.codec.frame.FrameDecoder#writeComplete(org.jboss.netty.channel.ChannelHandlerContext, org.jboss.netty.channel.WriteCompletionEvent), org.jboss.netty.handler.codec.frame.FrameDecoder#childChannelOpen(org.jboss.netty.channel.ChannelHandlerContext, org.jboss.netty.channel.ChildChannelStateEvent), org.jboss.netty.handler.codec.frame.FrameDecoder#childChannelClosed(org.jboss.netty.channel.ChannelHandlerContext, org.jboss.netty.channel.ChildChannelStateEvent), org.jboss.netty.handler.codec.frame.FrameDecoder#wait(long), org.jboss.netty.handler.codec.frame.FrameDecoder#wait(), org.jboss.netty.handler.codec.frame.FrameDecoder#wait(long, int), org.jboss.netty.handler.codec.frame.FrameDecoder#equals(java.lang.Object), org.jboss.netty.handler.codec.frame.FrameDecoder#toString(), org.jboss.netty.handler.codec.frame.FrameDecoder#hashCode(), org.jboss.netty.handler.codec.frame.FrameDecoder#getClass(), org.jboss.netty.handler.codec.frame.FrameDecoder#notify(), org.jboss.netty.handler.codec.frame.FrameDecoder#notifyAll()
 
Methods inherited from class org.jboss.netty.channel.SimpleChannelUpstreamHandler
org.jboss.netty.channel.SimpleChannelUpstreamHandler#messageReceived(org.jboss.netty.channel.ChannelHandlerContext, org.jboss.netty.channel.MessageEvent), org.jboss.netty.channel.SimpleChannelUpstreamHandler#channelDisconnected(org.jboss.netty.channel.ChannelHandlerContext, org.jboss.netty.channel.ChannelStateEvent), org.jboss.netty.channel.SimpleChannelUpstreamHandler#channelClosed(org.jboss.netty.channel.ChannelHandlerContext, org.jboss.netty.channel.ChannelStateEvent), org.jboss.netty.channel.SimpleChannelUpstreamHandler#exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext, org.jboss.netty.channel.ExceptionEvent), org.jboss.netty.channel.SimpleChannelUpstreamHandler#handleUpstream(org.jboss.netty.channel.ChannelHandlerContext, org.jboss.netty.channel.ChannelEvent), org.jboss.netty.channel.SimpleChannelUpstreamHandler#channelOpen(org.jboss.netty.channel.ChannelHandlerContext, org.jboss.netty.channel.ChannelStateEvent), org.jboss.netty.channel.SimpleChannelUpstreamHandler#channelBound(org.jboss.netty.channel.ChannelHandlerContext, org.jboss.netty.channel.ChannelStateEvent), org.jboss.netty.channel.SimpleChannelUpstreamHandler#channelConnected(org.jboss.netty.channel.ChannelHandlerContext, org.jboss.netty.channel.ChannelStateEvent), org.jboss.netty.channel.SimpleChannelUpstreamHandler#channelInterestChanged(org.jboss.netty.channel.ChannelHandlerContext, org.jboss.netty.channel.ChannelStateEvent), org.jboss.netty.channel.SimpleChannelUpstreamHandler#channelUnbound(org.jboss.netty.channel.ChannelHandlerContext, org.jboss.netty.channel.ChannelStateEvent), org.jboss.netty.channel.SimpleChannelUpstreamHandler#writeComplete(org.jboss.netty.channel.ChannelHandlerContext, org.jboss.netty.channel.WriteCompletionEvent), org.jboss.netty.channel.SimpleChannelUpstreamHandler#childChannelOpen(org.jboss.netty.channel.ChannelHandlerContext, org.jboss.netty.channel.ChildChannelStateEvent), org.jboss.netty.channel.SimpleChannelUpstreamHandler#childChannelClosed(org.jboss.netty.channel.ChannelHandlerContext, org.jboss.netty.channel.ChildChannelStateEvent), org.jboss.netty.channel.SimpleChannelUpstreamHandler#wait(long), org.jboss.netty.channel.SimpleChannelUpstreamHandler#wait(), org.jboss.netty.channel.SimpleChannelUpstreamHandler#wait(long, int), org.jboss.netty.channel.SimpleChannelUpstreamHandler#equals(java.lang.Object), org.jboss.netty.channel.SimpleChannelUpstreamHandler#toString(), org.jboss.netty.channel.SimpleChannelUpstreamHandler#hashCode(), org.jboss.netty.channel.SimpleChannelUpstreamHandler#getClass(), org.jboss.netty.channel.SimpleChannelUpstreamHandler#notify(), org.jboss.netty.channel.SimpleChannelUpstreamHandler#notifyAll()
 
Methods inherited from class java.lang.Object
java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

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

@Override
protected java.lang.Object decode(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.Channel channel, org.jboss.netty.buffer.ChannelBuffer buffer)


 

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