| 限定符和类型 | 字段和说明 |
|---|---|
protected HTTPServer.Request |
HTTPServer.Response.req |
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
HTTPServer.getConditionalStatus(HTTPServer.Request req,
long lastModified,
String etag)
Calculates the appropriate response status for the given request and
its resource's last-modified time and ETag, based on the conditional
headers present in the request.
|
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.
|
void |
HTTPServer.Response.setClientCapabilities(HTTPServer.Request req)
Sets the request which is used in determining the capabilities
supported by the client (e.g. compression, encoding, etc.)
|
| 构造器和说明 |
|---|
JlHttpContext(HTTPServer.Request request,
HTTPServer.Response response) |
MultipartIterator(HTTPServer.Request req)
Creates a new MultipartIterator from the given request.
|
Copyright © 2021. All rights reserved.