| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
HTTPServer.handleMethod(HTTPServer.Request req,
HTTPServer.Response resp)
Handles a transaction according to the request method.
|
void |
HTTPServer.handleTrace(HTTPServer.Request req,
HTTPServer.Response resp)
Handles a TRACE method request.
|
protected void |
HTTPServer.handleTransaction(HTTPServer.Request req,
HTTPServer.Response resp)
Handles a single transaction on a connection.
|
protected boolean |
HTTPServer.preprocessTransaction(HTTPServer.Request req,
HTTPServer.Response resp)
Preprocesses a transaction, performing various validation checks
and required special header handling, possibly returning an
appropriate response.
|
protected void |
HTTPServer.serve(HTTPServer.Request req,
HTTPServer.Response resp)
Serves the content for a request by invoking the context
handler for the requested context (path) and HTTP method.
|
int |
HTTPServer.ContextHandler.serve(HTTPServer.Request req,
HTTPServer.Response resp)
Serves the given request using the given response.
|
int |
HTTPServer.FileContextHandler.serve(HTTPServer.Request req,
HTTPServer.Response resp) |
int |
HTTPServer.MethodContextHandler.serve(HTTPServer.Request req,
HTTPServer.Response resp) |
int |
JlHttpContextHandler.serve(HTTPServer.Request request,
HTTPServer.Response response) |
static int |
HTTPServer.serveFile(File base,
String context,
HTTPServer.Request req,
HTTPServer.Response resp)
Serves a context's contents from a file based resource.
|
static void |
HTTPServer.serveFileContent(File file,
HTTPServer.Request req,
HTTPServer.Response resp)
Serves the contents of a file, with its corresponding content type,
last modification time, etc. conditional and partial retrievals are
handled according to the RFC.
|
| 构造器和说明 |
|---|
JlHttpContext(HTTPServer.Request request,
HTTPServer.Response response) |
Copyright © 2021. All rights reserved.