Class ProtocolDecoderAdapter

java.lang.Object
org.apache.mina.filter.codec.ProtocolDecoderAdapter
All Implemented Interfaces:
ProtocolDecoder
Direct Known Subclasses:
CumulativeProtocolDecoder

public abstract class ProtocolDecoderAdapter extends Object implements ProtocolDecoder
  • Constructor Details

    • ProtocolDecoderAdapter

      public ProtocolDecoderAdapter()
  • Method Details

    • finishDecode

      public void finishDecode(IoSession session, ProtocolDecoderOutput out) throws Exception
      Override this method to deal with the closed connection. The default implementation does nothing.
      Specified by:
      finishDecode in interface ProtocolDecoder
      Throws:
      Exception - if the read data violated protocol specification
    • dispose

      public void dispose(IoSession session) throws Exception
      Override this method to dispose all resources related with this decoder. The default implementation does nothing.
      Specified by:
      dispose in interface ProtocolDecoder
      Throws:
      Exception - if failed to dispose all resources