Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.mina.filter.codec.netty
Class NettyCodecFactory

    java.lang.Object
      org.apache.mina.filter.codec.netty.NettyCodecFactory

All Implemented Interfaces:
  ProtocolCodecFactory

    public class NettyCodecFactory

extends Object
implements ProtocolCodecFactory

A MINA `ProtocolCodecFactory` that provides encoder and decoder for Netty2 `Message`s and `MessageRecognizer`s.

Please note that this codec factory assumes one `MessageRecognizer` can be used for multiple sessions. If not, you'll have to create your own factory after this factory.

Version:
  $Rev: 555855 $, $Date: 2007-07-13 05:19:00 +0200 (Fri, 13 Jul 2007) $,
Author:
  The Apache Directory Project (mina-dev@directory.apache.org)

Constructor Summary
`NettyCodecFactory(net.gleamynode.netty2.MessageRecognizer recognizer)`

Method Summary
`ProtocolDecoder` | `getDecoder()` Returns a new (or reusable) instance of `ProtocolDecoder` which decodes binary or protocol-specific data into message objects.
`ProtocolEncoder` | `getEncoder()` Returns a new (or reusable) instance of `ProtocolEncoder` which encodes message objects into binary or protocol-specific data.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### NettyCodecFactory

    public NettyCodecFactory(net.gleamynode.netty2.MessageRecognizer recognizer)

Method Detail

### getEncoder

    public ProtocolEncoder getEncoder()

  Description copied from interface: `ProtocolCodecFactory`
  Returns a new (or reusable) instance of `ProtocolEncoder` which encodes message objects into binary or protocol-specific data.

  Specified by:
    `getEncoder` in interface `ProtocolCodecFactory`

### getDecoder

    public ProtocolDecoder getDecoder()

  Description copied from interface: `ProtocolCodecFactory`
  Returns a new (or reusable) instance of `ProtocolDecoder` which decodes binary or protocol-specific data into message objects.

  Specified by:
    `getDecoder` in interface `ProtocolCodecFactory`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004-2008 Apache MINA Project. All Rights Reserved.