Class CorsHandlerDefault

java.lang.Object
org.spincast.plugins.undertow.CorsHandlerDefault
All Implemented Interfaces:
io.undertow.server.HttpHandler, CorsHandler

public class CorsHandlerDefault extends Object implements CorsHandler
  • Field Details

    • logger

      protected static final org.slf4j.Logger logger
  • Constructor Details

  • Method Details

    • getNextHandler

      protected io.undertow.server.HttpHandler getNextHandler()
    • getCorsConfig

      protected StaticResourceCorsConfig getCorsConfig()
    • getCorsFilter

      protected CorsFilter getCorsFilter()
    • handleRequest

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

      protected CorsFilterClient createCorsFilterClient(io.undertow.server.HttpServerExchange exchange, StaticResourceCorsConfig corsConfig)
      Create the client for the cors filter.
    • getStaticResourceCorsAllowedMethods

      protected Set<HttpMethod> getStaticResourceCorsAllowedMethods()
      Those are the valid HTTP methods for requests to static resources served directly by the HTTP server.