| Modifier and Type | Method and Description |
|---|---|
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.
|
Copyright © 2021 freeutils.net. All rights reserved.