public class LoggingCorsHttpServer extends CorsHttpServer
HttpServer.Handler, HttpServer.Request, HttpServer.ResponseEXTRAHOSTS_PROPHDR_CONTENT_TYPE, STATUS_OK| Constructor and Description |
|---|
LoggingCorsHttpServer(ServerSocket socket,
OriginAuthorizer auth,
PrintStream out)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
HttpServer.Response |
serve(HttpServer.Request request)
Does the work for providing output corresponding to a given HTTP request.
|
createNonLocalErrorResponse, isExtraHost, isLocalHost, isPermittedHostaddHandler, create405Response, createErrorResponse, createErrorResponse, getBaseUrl, getHeader, getSocket, isRunning, removeHandler, serveRequest, setDaemon, start, stoppublic LoggingCorsHttpServer(ServerSocket socket, OriginAuthorizer auth, PrintStream out) throws IOException
socket - socket hosting the serviceauth - defines which domains requests will be permitted fromout - destination stream for loggingIOExceptionpublic HttpServer.Response serve(HttpServer.Request request)
HttpServerserve in class CorsHttpServerrequest - represents an HTTP request that has been receivedCopyright © 2008–2024. All rights reserved.