| 限定符和类型 | 类和说明 |
|---|---|
static class |
HTTPServer.FileContextHandler
The
FileContextHandler services a context by mapping it
to a file or folder (recursively) on disk. |
static class |
HTTPServer.MethodContextHandler
The
MethodContextHandler services a context
by invoking a handler method on a specified object. |
class |
JlHttpContextHandler |
| 限定符和类型 | 字段和说明 |
|---|---|
protected Map<String,HTTPServer.ContextHandler> |
HTTPServer.VirtualHost.ContextInfo.handlers |
| 限定符和类型 | 方法和说明 |
|---|---|
Map<String,HTTPServer.ContextHandler> |
HTTPServer.VirtualHost.ContextInfo.getHandlers()
Returns the map of supported HTTP methods and their corresponding handlers.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
HTTPServer.VirtualHost.addContext(String path,
HTTPServer.ContextHandler handler,
String... methods)
Adds a context and its corresponding context handler to this server.
|
void |
HTTPServer.VirtualHost.ContextInfo.addHandler(HTTPServer.ContextHandler handler,
String... methods)
Adds (or replaces) a context handler for the given HTTP methods.
|
Copyright © 2022. All rights reserved.