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
- 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
FieldsFields inherited from class org.restheart.handlers.PipelinedHandler
CONTENT_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionCreates 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
Modifier and TypeMethodDescriptionvoidhandleRequest(io.undertow.server.HttpServerExchange exchange)Methods inherited from class org.restheart.handlers.PipelinedHandler
getNext, next, pipe, setNext
-
Field Details
-
ALL_ORIGINS
- See Also:
- Constant Field Values
-
-
Constructor Details
-
CORSHandler
public CORSHandler()Creates a new instance of CORSHandler -
CORSHandler
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 Details
-
handleRequest
- Specified by:
handleRequestin interfaceio.undertow.server.HttpHandler- Specified by:
handleRequestin classPipelinedHandler- Parameters:
exchange-- Throws:
Exception
-