- java.lang.Object
-
- swim.io.http.AbstractHttpServer
-
- swim.io.ws.AbstractWsServer
-
- swim.io.warp.AbstractWarpServer
-
- swim.service.web.WebServer
-
- All Implemented Interfaces:
FlowContext
,HttpServer
,IpContext
public class WebServer extends AbstractWarpServer
-
-
Field Summary
-
Fields inherited from class swim.io.warp.AbstractWarpServer
warpSettings
-
Fields inherited from class swim.io.ws.AbstractWsServer
wsSettings
-
Fields inherited from class swim.io.http.AbstractHttpServer
context
-
-
Constructor Summary
Constructors Constructor Description WebServer(KernelContext kernel, WebServiceDef serviceDef, WebRoute router)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpResponder<?>
doRequest(HttpRequest<?> httpRequest)
KernelContext
kernel()
protected RemoteHost
openHost(Uri requestUri)
WebServiceDef
serviceDef()
protected HttpResponder<?>
warpWebSocketResponder(WsRequest wsRequest, WsResponse wsResponse)
-
Methods inherited from class swim.io.warp.AbstractWarpServer
setHttpServerContext, upgrade, warpSettings
-
Methods inherited from class swim.io.ws.AbstractWsServer
upgrade, wsSettings
-
Methods inherited from class swim.io.http.AbstractHttpServer
become, cipherSuite, close, didBecome, didConnect, didDisconnect, didFail, didRequest, didRespond, didSecure, didTimeout, flowControl, flowControl, flowControl, httpServerContext, httpSettings, idleTimeout, isClient, isConnected, isSecure, isServer, localAddress, localCertificates, localPrincipal, readRequest, remoteAddress, remoteCertificates, remotePrincipal, securityProtocol, willBecome, willRequest, willRespond, willSecure
-
-
-
-
Constructor Detail
-
WebServer
public WebServer(KernelContext kernel, WebServiceDef serviceDef, WebRoute router)
-
-
Method Detail
-
kernel
public final KernelContext kernel()
-
serviceDef
public final WebServiceDef serviceDef()
-
doRequest
public HttpResponder<?> doRequest(HttpRequest<?> httpRequest)
- Specified by:
doRequest
in interfaceHttpServer
- Specified by:
doRequest
in classAbstractHttpServer
-
warpWebSocketResponder
protected HttpResponder<?> warpWebSocketResponder(WsRequest wsRequest, WsResponse wsResponse)
-
openHost
protected RemoteHost openHost(Uri requestUri)
-
-