Class CamelRootHandler
- java.lang.Object
-
- org.apache.camel.component.undertow.handlers.CamelRootHandler
-
- All Implemented Interfaces:
io.undertow.server.HttpHandler
public class CamelRootHandler extends Object implements io.undertow.server.HttpHandler
Custom root handler to enable hot swapping individual handlers assigned for each path template and/or HTTP method.- See Also:
RestRootHandler
-
-
Constructor Summary
Constructors Constructor Description CamelRootHandler(io.undertow.server.HttpHandler defaultHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.undertow.server.HttpHandler
add(String path, String methods, boolean prefixMatch, io.undertow.server.HttpHandler handler)
void
handleRequest(io.undertow.server.HttpServerExchange exchange)
boolean
isEmpty()
void
remove(String path, String methods, boolean prefixMatch)
String
toString()
-
-
-
Method Detail
-
handleRequest
public void handleRequest(io.undertow.server.HttpServerExchange exchange) throws Exception
- Specified by:
handleRequest
in interfaceio.undertow.server.HttpHandler
- Throws:
Exception
-
add
public io.undertow.server.HttpHandler add(String path, String methods, boolean prefixMatch, io.undertow.server.HttpHandler handler)
-
isEmpty
public boolean isEmpty()
-
-