java.lang.Object
swim.service.web.WebService
- All Implemented Interfaces:
Service
,HttpInterface
,HttpService
,IpInterface
-
Constructor Summary
ConstructorsConstructorDescriptionWebService
(KernelContext kernel, ServiceContext serviceContext, WebServiceDef serviceDef, WebRoute router) -
Method Summary
Modifier and TypeMethodDescriptionbindTcp
(InetSocketAddress localAddress, IpService service, IpSettings ipSettings) bindTls
(InetSocketAddress localAddress, IpService service, IpSettings ipSettings) connectTcp
(InetSocketAddress remoteAddress, IpSocket socket, IpSettings ipSettings) connectTls
(InetSocketAddress remoteAddress, IpSocket socket, IpSettings ipSettings) void
didAccept
(HttpServer server) void
didBind()
void
didClose()
void
void
didStart()
void
didStop()
void
final HttpServiceContext
final HttpSettings
final IpSettings
final KernelContext
kernel()
final WebRoute
router()
final ServiceContext
final WebServiceDef
void
setHttpServiceContext
(HttpServiceContext httpServiceContext) final WarpSettings
void
void
void
willStop()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface swim.io.http.HttpInterface
bindHttp, bindHttp, bindHttp, bindHttp, bindHttps, bindHttps, bindHttps, bindHttps, connectHttp, connectHttp, connectHttp, connectHttp, connectHttps, connectHttps, connectHttps, connectHttps
Methods inherited from interface swim.io.IpInterface
bindTcp, bindTcp, bindTcp, bindTls, bindTls, bindTls, connectTcp, connectTcp, connectTcp, connectTcp, connectTcp, connectTcp, connectTcp, connectTls, connectTls, connectTls, connectTls, connectTls, connectTls, connectTls
-
Constructor Details
-
WebService
public WebService(KernelContext kernel, ServiceContext serviceContext, WebServiceDef serviceDef, WebRoute router)
-
-
Method Details
-
kernel
-
serviceContext
- Specified by:
serviceContext
in interfaceService
-
httpServiceContext
- Specified by:
httpServiceContext
in interfaceHttpService
-
setHttpServiceContext
- Specified by:
setHttpServiceContext
in interfaceHttpService
-
serviceDef
-
router
-
router
-
ipSettings
- Specified by:
ipSettings
in interfaceIpInterface
-
httpSettings
- Specified by:
httpSettings
in interfaceHttpInterface
-
warpSettings
-
bindTcp
public IpServiceRef bindTcp(InetSocketAddress localAddress, IpService service, IpSettings ipSettings) - Specified by:
bindTcp
in interfaceIpInterface
-
bindTls
public IpServiceRef bindTls(InetSocketAddress localAddress, IpService service, IpSettings ipSettings) - Specified by:
bindTls
in interfaceIpInterface
-
connectTcp
public IpSocketRef connectTcp(InetSocketAddress remoteAddress, IpSocket socket, IpSettings ipSettings) - Specified by:
connectTcp
in interfaceIpInterface
-
connectTls
public IpSocketRef connectTls(InetSocketAddress remoteAddress, IpSocket socket, IpSettings ipSettings) - Specified by:
connectTls
in interfaceIpInterface
-
createServer
- Specified by:
createServer
in interfaceHttpService
-
willStart
public void willStart() -
didStart
public void didStart() -
didBind
public void didBind()- Specified by:
didBind
in interfaceHttpService
-
didAccept
- Specified by:
didAccept
in interfaceHttpService
-
didUnbind
public void didUnbind()- Specified by:
didUnbind
in interfaceHttpService
-
willStop
public void willStop() -
didStop
public void didStop() -
willClose
public void willClose() -
didClose
public void didClose() -
didFail
- Specified by:
didFail
in interfaceHttpService
- Specified by:
didFail
in interfaceService
-