| Modifier and Type | Field and Description |
|---|---|
protected HTTPServer.Request |
HTTPServer.Response.req |
| Modifier and Type | Method and Description |
|---|---|
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) |
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.
|
void |
HTTPServer.Response.setClientCapabilities(HTTPServer.Request req)
Sets the request which is used in determining the capabilities
supported by the client (e.g.
|
| Constructor and Description |
|---|
MultipartIterator(HTTPServer.Request req)
Creates a new MultipartIterator from the given request.
|
Copyright © 2021 freeutils.net. All rights reserved.