Class CORSHandler


  • public class CORSHandler
    extends java.lang.Object
    Handles Cross-Origin Resource Sharing (CORS) requests. Set property 'org.swisspush.gateleen.addcorsheaders' to "true" to activate.
    Author:
    https://github.com/mcweba [Marc-Andre Weber]
    • Constructor Summary

      Constructors 
      Constructor Description
      CORSHandler()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void handle​(io.vertx.core.http.HttpServerRequest request)  
      boolean isOptionsRequest​(io.vertx.core.http.HttpServerRequest request)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CORSHandler

        public CORSHandler()
    • Method Detail

      • isOptionsRequest

        public boolean isOptionsRequest​(io.vertx.core.http.HttpServerRequest request)
      • handle

        public void handle​(io.vertx.core.http.HttpServerRequest request)