Package | Description |
---|---|
ej.hoka.http |
Modifier and Type | Method and Description |
---|---|
RequestHandler |
Route.getHandler() |
Modifier and Type | Method and Description |
---|---|
void |
HttpServer.after(RequestHandler handler)
Map the handler as an after filter on all paths
|
void |
HttpServer.after(java.lang.String path,
RequestHandler handler)
Map the handler as an after filter on the path
|
void |
HttpServer.before(RequestHandler handler)
Map the handler as a before filter on all path
|
void |
HttpServer.before(java.lang.String path,
RequestHandler handler)
Map the handler as a before filter on the path
|
void |
HttpServer.connect(java.lang.String path,
RequestHandler handler)
Map the handler to HTTP CONNECT requests on the path
|
void |
HttpServer.connect(java.lang.String path,
java.lang.String acceptType,
RequestHandler handler)
Map the handler to HTTP CONNECT requests on the path
|
void |
HttpServer.delete(java.lang.String path,
RequestHandler handler)
Map the handler to HTTP POST requests on the path
|
void |
HttpServer.delete(java.lang.String path,
java.lang.String acceptType,
RequestHandler handler)
Map the handler to HTTP DELETE requests on the path
|
void |
HttpServer.exception(java.lang.Class<? extends java.lang.Exception> exception,
RequestHandler handler)
Map a handler to a specific exception
|
void |
HttpServer.get(java.lang.String path,
RequestHandler handler)
Map the handler to HTTP GET requests on the path
|
void |
HttpServer.get(java.lang.String path,
java.lang.String acceptType,
RequestHandler handler)
Map the handler to HTTP GET requests on the path
|
void |
HttpServer.head(java.lang.String path,
RequestHandler handler)
Map the handler to HTTP HEAD requests on the path
|
void |
HttpServer.head(java.lang.String path,
java.lang.String acceptType,
RequestHandler handler)
Map the handler to HTTP HEAD requests on the path
|
void |
HttpServer.options(java.lang.String path,
RequestHandler handler)
Map the handler to HTTP OPTIONS requests on the path
|
void |
HttpServer.options(java.lang.String path,
java.lang.String acceptType,
RequestHandler handler)
Map the handler to HTTP OPTIONS requests on the path
|
void |
HttpServer.patch(java.lang.String path,
RequestHandler handler)
Map the handler to HTTP PATCH requests on the path
|
void |
HttpServer.patch(java.lang.String path,
java.lang.String acceptType,
RequestHandler handler)
Map the handler to HTTP PATCH requests on the path
|
void |
HttpServer.post(java.lang.String path,
RequestHandler handler)
Map the handler to HTTP POST requests on the path
|
void |
HttpServer.post(java.lang.String path,
java.lang.String acceptType,
RequestHandler handler)
Map the handler to HTTP POST requests on the path
|
void |
HttpServer.put(java.lang.String path,
RequestHandler handler)
Map the handler to HTTP PUT requests on the path
|
void |
HttpServer.put(java.lang.String path,
java.lang.String acceptType,
RequestHandler handler)
Map the handler to HTTP PUT requests on the path
|
void |
HttpServer.trace(java.lang.String path,
RequestHandler handler)
Map the handler to HTTP TRACE requests on the path
|
void |
HttpServer.trace(java.lang.String path,
java.lang.String acceptType,
RequestHandler handler)
Map the handler to HTTP TRACE requests on the path
|
Constructor and Description |
---|
Route(int httpMethod,
java.lang.String path,
RequestHandler handler) |
Route(int httpMethod,
java.lang.String path,
java.lang.String acceptType,
RequestHandler handler) |