Class HttpChannelOverFCGI

java.lang.Object
org.eclipse.jetty.server.HttpChannel
org.eclipse.jetty.fcgi.server.HttpChannelOverFCGI
All Implemented Interfaces:
Runnable, HttpOutput.Interceptor

public class HttpChannelOverFCGI extends HttpChannel
  • Constructor Details

  • Method Details

    • onContent

      public boolean onContent(HttpInput.Content content)
      Overrides:
      onContent in class HttpChannel
    • needContent

      public boolean needContent()
      Description copied from class: HttpChannel
      Notify the channel that content is needed. If some content is immediately available, true is returned and HttpChannel.produceContent() has to be called and will return a non-null object. If no content is immediately available, an attempt to produce content must be made; if new content has been produced, true is returned; otherwise HttpInput.onContentProducible() is called once some content arrives and HttpChannel.produceContent() can be called without returning null. If a failure happens, then HttpInput.onContentProducible() will be called and an error content will return the error on the next call to HttpChannel.produceContent().
      Specified by:
      needContent in class HttpChannel
      Returns:
      true if content is immediately available.
    • produceContent

      public HttpInput.Content produceContent()
      Description copied from class: HttpChannel
      Produce a HttpInput.Content object with data currently stored within the channel. The produced content can be special (meaning calling HttpInput.Content.isSpecial() returns true) if the channel reached a special state, like EOF or an error. Once a special content has been returned, all subsequent calls to this method will always return a special content of the same kind and HttpChannel.needContent() will always return true. The returned content is "raw", i.e.: not decoded.
      Specified by:
      produceContent in class HttpChannel
      Returns:
      a HttpInput.Content object if one is immediately available without blocking, null otherwise.
    • failAllContent

      public boolean failAllContent(Throwable failure)
      Description copied from class: HttpChannel
      Fail all content that is currently stored within the channel.
      Specified by:
      failAllContent in class HttpChannel
      Parameters:
      failure - the failure to fail the content with.
      Returns:
      true if EOF was reached while failing all content, false otherwise.
    • failed

      public boolean failed(Throwable x)
      Description copied from class: HttpChannel
      Fail the channel's input.
      Specified by:
      failed in class HttpChannel
      Parameters:
      x - the failure.
      Returns:
      true if the channel needs to be rescheduled.
    • eof

      protected boolean eof()
      Description copied from class: HttpChannel
      Mark the channel's input as EOF.
      Specified by:
      eof in class HttpChannel
      Returns:
      true if the channel needs to be rescheduled.
    • header

      protected void header(HttpField field)
    • onRequest

      public void onRequest()
    • dispatch

      protected void dispatch()
    • onIdleTimeout

      public boolean onIdleTimeout(Throwable timeout)
    • recycle

      public void recycle()
      Overrides:
      recycle in class HttpChannel
    • onCompleted

      public void onCompleted()
      Overrides:
      onCompleted in class HttpChannel