Class SuspendedServerHandlerWrapper

java.lang.Object
org.wildfly.extension.undertow.deployment.SuspendedServerHandlerWrapper
All Implemented Interfaces:
io.undertow.server.HandlerWrapper, Function<io.undertow.servlet.api.DeploymentInfo,io.undertow.servlet.api.DeploymentInfo>, UnaryOperator<io.undertow.servlet.api.DeploymentInfo>

public class SuspendedServerHandlerWrapper extends Object implements io.undertow.server.HandlerWrapper, UnaryOperator<io.undertow.servlet.api.DeploymentInfo>
Handler wrapper that detects whether request was rejected by the control point
Author:
Paul Ferraro
  • Constructor Summary

    Constructors
    Constructor
    Description
    SuspendedServerHandlerWrapper(org.wildfly.extension.requestcontroller.ControlPoint entryPoint, List<io.undertow.predicate.Predicate> allowSuspendedRequests)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.undertow.servlet.api.DeploymentInfo
    apply(io.undertow.servlet.api.DeploymentInfo deployment)
     
    io.undertow.server.HttpHandler
    wrap(io.undertow.server.HttpHandler handler)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.function.Function

    andThen, compose
  • Constructor Details

    • SuspendedServerHandlerWrapper

      public SuspendedServerHandlerWrapper(org.wildfly.extension.requestcontroller.ControlPoint entryPoint, List<io.undertow.predicate.Predicate> allowSuspendedRequests)
  • Method Details

    • apply

      public io.undertow.servlet.api.DeploymentInfo apply(io.undertow.servlet.api.DeploymentInfo deployment)
      Specified by:
      apply in interface Function<io.undertow.servlet.api.DeploymentInfo,io.undertow.servlet.api.DeploymentInfo>
    • wrap

      public io.undertow.server.HttpHandler wrap(io.undertow.server.HttpHandler handler)
      Specified by:
      wrap in interface io.undertow.server.HandlerWrapper