Package httpserver.handlers
Class MethodPathRouting
java.lang.Object
httpserver.handlers.MethodPathRouting
- All Implemented Interfaces:
HttpHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondelete(String path, HttpHandler handler) fallback(HttpHandler fallback) get(String path, HttpHandler handler) voidhandleRequest(HttpServerExchange exchange) head(String path, HttpHandler handler) static MethodPathRoutingpatch(String path, HttpHandler handler) post(String path, HttpHandler handler) put(String path, HttpHandler handler) static MethodPathRoutingrouting()
-
Constructor Details
-
MethodPathRouting
public MethodPathRouting()
-
-
Method Details
-
routing
-
methodPathRouting
-
fallback
-
head
-
get
-
put
-
post
-
patch
-
delete
-
handleRequest
- Specified by:
handleRequestin interfaceHttpHandler- Throws:
Exception
-