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.HttpHandleradd(String path, String methods, boolean prefixMatch, io.undertow.server.HttpHandler handler)voidhandleRequest(io.undertow.server.HttpServerExchange exchange)booleanisEmpty()voidremove(String path, String methods, boolean prefixMatch)StringtoString()
-
-
-
Method Detail
-
handleRequest
public void handleRequest(io.undertow.server.HttpServerExchange exchange) throws Exception- Specified by:
handleRequestin 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()
-
-