java.lang.Object
org.glassfish.grizzly.http.io.InputBuffer
org.glassfish.grizzly.http.server.io.ServerInputBuffer

public class ServerInputBuffer extends org.glassfish.grizzly.http.io.InputBuffer
Server-side implementation of the InputBuffer.
Author:
Alexey Stashok
  • Field Summary

    Fields inherited from class org.glassfish.grizzly.http.io.InputBuffer

    trailers
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.glassfish.grizzly.http.HttpContent
     
    protected Executor
     
    void
    initialize(Request serverRequest, org.glassfish.grizzly.filterchain.FilterChainContext ctx)
     
    void
    Initiates asynchronous data receiving.
    void
     
    protected void
    updateInputContentBuffer(org.glassfish.grizzly.Buffer buffer)
     

    Methods inherited from class org.glassfish.grizzly.http.io.InputBuffer

    append, areTrailersAvailable, available, availableChar, close, fillFully, finished, getBuffer, getReadHandler, getTrailers, initialize, isAsyncEnabled, isClosed, isFinished, mark, markSupported, notifyAvailable, notifyAvailable, processingChars, read, read, read, readBuffer, readBuffer, readByte, readChar, ready, readyData, replayPayload, reset, setAsyncEnabled, setDefaultEncoding, skip, skip, terminate

    Methods inherited from class java.lang.Object

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

    • ServerInputBuffer

      public ServerInputBuffer()
  • Method Details

    • initialize

      public void initialize(Request serverRequest, org.glassfish.grizzly.filterchain.FilterChainContext ctx)
    • initiateAsyncronousDataReceiving

      public void initiateAsyncronousDataReceiving()
      Initiates asynchronous data receiving. This is service method, usually users don't have to call it explicitly.
      Overrides:
      initiateAsyncronousDataReceiving in class org.glassfish.grizzly.http.io.InputBuffer
    • blockingRead

      protected org.glassfish.grizzly.http.HttpContent blockingRead() throws IOException
      Overrides:
      blockingRead in class org.glassfish.grizzly.http.io.InputBuffer
      Throws:
      IOException
    • updateInputContentBuffer

      protected void updateInputContentBuffer(org.glassfish.grizzly.Buffer buffer)
      Overrides:
      updateInputContentBuffer in class org.glassfish.grizzly.http.io.InputBuffer
    • recycle

      public void recycle()
      Overrides:
      recycle in class org.glassfish.grizzly.http.io.InputBuffer
    • getThreadPool

      protected Executor getThreadPool()
      Overrides:
      getThreadPool in class org.glassfish.grizzly.http.io.InputBuffer