Class AuthHeadersRemover

java.lang.Object
org.restheart.handlers.PipelinedHandler
org.restheart.handlers.injectors.AuthHeadersRemover
All Implemented Interfaces:
io.undertow.server.HttpHandler

public class AuthHeadersRemover extends PipelinedHandler
injects the context authenticatedAccount
Author:
Andrea Di Cesare <andrea@softinstigate.com>
  • Constructor Details

    • AuthHeadersRemover

      public AuthHeadersRemover()
      Creates a new instance of AuthHeadersRemover
    • AuthHeadersRemover

      public AuthHeadersRemover(PipelinedHandler next)
      Creates a new instance of AuthHeadersRemover
      Parameters:
      next -
  • Method Details

    • handleRequest

      public void handleRequest(io.undertow.server.HttpServerExchange exchange) throws Exception
      before proxyng the request the authentication headers are removed
      Specified by:
      handleRequest in interface io.undertow.server.HttpHandler
      Specified by:
      handleRequest in class PipelinedHandler
      Parameters:
      exchange -
      Throws:
      Exception