Class PipelinedHandler

java.lang.Object
org.restheart.handlers.PipelinedHandler
All Implemented Interfaces:
io.undertow.server.HttpHandler
Direct Known Subclasses:
PipelinedWrappingHandler, QueryStringRebuilder

public abstract class PipelinedHandler extends Object implements io.undertow.server.HttpHandler
base class to implement a PipelinedHandler
Author:
Andrea Di Cesare <andrea@softinstigate.com>
  • Field Details

  • Constructor Details

    • PipelinedHandler

      public PipelinedHandler()
      Creates a default instance of PipedHttpHandler with next = null
    • PipelinedHandler

      public PipelinedHandler(PipelinedHandler next)
      Parameters:
      next - the next handler in this chain
  • Method Details

    • handleRequest

      public abstract void handleRequest(io.undertow.server.HttpServerExchange exchange) throws Exception
      Specified by:
      handleRequest in interface io.undertow.server.HttpHandler
      Parameters:
      exchange -
      Throws:
      Exception
    • getNext

      protected PipelinedHandler getNext()
      Returns:
      the next PipedHttpHandler
    • setNext

      protected void setNext(PipelinedHandler next)
      set the next PipedHttpHandler
      Parameters:
      next -
    • next

      protected void next(io.undertow.server.HttpServerExchange exchange) throws Exception
      Throws:
      Exception
    • pipe

      public static PipelinedHandler pipe(PipelinedHandler... handlers)
      pipes multiple PipelinedHandler in a pipeline
      Parameters:
      handlers -
      Returns: