Class Http2PushBackParser

  • Direct Known Subclasses:
    Http2GoAwayParser

    public abstract class Http2PushBackParser
    extends java.lang.Object
    Parser that supports push back when not all data can be read.
    Author:
    Stuart Douglas
    • Constructor Summary

      Constructors 
      Constructor Description
      Http2PushBackParser​(int frameLength)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected void finish()  
      int getFrameLength()  
      protected abstract void handleData​(java.nio.ByteBuffer resource, io.undertow.protocols.http2.Http2FrameHeaderParser headerParser)  
      boolean isFinished()  
      protected void moreData​(int data)  
      void parse​(java.nio.ByteBuffer data, io.undertow.protocols.http2.Http2FrameHeaderParser headerParser)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Http2PushBackParser

        public Http2PushBackParser​(int frameLength)
    • Method Detail

      • parse

        public void parse​(java.nio.ByteBuffer data,
                          io.undertow.protocols.http2.Http2FrameHeaderParser headerParser)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • handleData

        protected abstract void handleData​(java.nio.ByteBuffer resource,
                                           io.undertow.protocols.http2.Http2FrameHeaderParser headerParser)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • isFinished

        public boolean isFinished()
      • finish

        protected void finish()
      • moreData

        protected void moreData​(int data)
      • getFrameLength

        public int getFrameLength()