Package org.restheart.mongodb.handlers
Class CORSHandler
- java.lang.Object
-
- org.restheart.handlers.PipelinedHandler
-
- org.restheart.mongodb.handlers.CORSHandler
-
- All Implemented Interfaces:
io.undertow.server.HttpHandler
public class CORSHandler extends PipelinedHandler
- Author:
- Andrea Di Cesare <andrea@softinstigate.com> The Access-Control-Expose-Headers header indicates which headers are safe to expose to the API of a CORS API specification. IT also injects the X-Powered-By response header
-
-
Field Summary
Fields Modifier and Type Field Description static StringALL_ORIGINS-
Fields inherited from class org.restheart.handlers.PipelinedHandler
CONTENT_TYPE
-
-
Constructor Summary
Constructors Constructor Description CORSHandler()Creates a new instance of CORSHandlerCORSHandler(io.undertow.server.HttpHandler next)Creates a new instance of GetRootHandlerCORSHandler(PipelinedHandler next)Creates a new instance of CORSHandler
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleRequest(io.undertow.server.HttpServerExchange exchange)-
Methods inherited from class org.restheart.handlers.PipelinedHandler
getNext, next, pipe, setNext
-
-
-
-
Field Detail
-
ALL_ORIGINS
public static final String ALL_ORIGINS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CORSHandler
public CORSHandler()
Creates a new instance of CORSHandler
-
CORSHandler
public CORSHandler(PipelinedHandler next)
Creates a new instance of CORSHandler- Parameters:
next-
-
CORSHandler
public CORSHandler(io.undertow.server.HttpHandler next)
Creates a new instance of GetRootHandler- Parameters:
next-
-
-
Method Detail
-
handleRequest
public void handleRequest(io.undertow.server.HttpServerExchange exchange) throws Exception- Specified by:
handleRequestin interfaceio.undertow.server.HttpHandler- Specified by:
handleRequestin classPipelinedHandler- Parameters:
exchange-- Throws:
Exception
-
-