groovyx.gpars.remote.netty
Class RemoteObjectEncoder

java.lang.Object
  extended by org.jboss.netty.handler.codec.oneone.OneToOneEncoder
      extended by org.jboss.netty.handler.codec.serialization.ObjectEncoder
          extended by groovyx.gpars.remote.netty.RemoteObjectEncoder
All Implemented Interfaces:
org.jboss.netty.channel.ChannelDownstreamHandler, org.jboss.netty.channel.ChannelHandler

@ChannelHandler.Sharable
public class RemoteObjectEncoder
extends org.jboss.netty.handler.codec.serialization.ObjectEncoder


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
RemoteObjectEncoder(RemoteConnection connection)
          Creates a new encoder.
 
Method Summary
protected  java.lang.Object encode(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.Channel channel, java.lang.Object msg)
           
 
Methods inherited from class org.jboss.netty.handler.codec.oneone.OneToOneEncoder
handleDownstream
 
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

RemoteObjectEncoder

public RemoteObjectEncoder(RemoteConnection connection)
Creates a new encoder.

Parameters:
connection - connection handling serialization details
Method Detail

encode

protected java.lang.Object encode(org.jboss.netty.channel.ChannelHandlerContext ctx,
                                  org.jboss.netty.channel.Channel channel,
                                  java.lang.Object msg)
                           throws java.lang.Exception
Overrides:
encode in class org.jboss.netty.handler.codec.serialization.ObjectEncoder
Throws:
java.lang.Exception

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