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) voiddidAccept(HttpServer server) voiddidBind()voiddidClose()voidvoiddidStart()voiddidStop()voidfinal HttpServiceContextfinal HttpSettingsfinal IpSettingsfinal KernelContextkernel()final WebRouterouter()final ServiceContextfinal WebServiceDefvoidsetHttpServiceContext(HttpServiceContext httpServiceContext) final WarpSettingsvoidvoidvoidwillStop()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface swim.io.http.HttpInterface
bindHttp, bindHttp, bindHttp, bindHttp, bindHttps, bindHttps, bindHttps, bindHttps, connectHttp, connectHttp, connectHttp, connectHttp, connectHttps, connectHttps, connectHttps, connectHttpsMethods 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:
serviceContextin interfaceService
-
httpServiceContext
- Specified by:
httpServiceContextin interfaceHttpService
-
setHttpServiceContext
- Specified by:
setHttpServiceContextin interfaceHttpService
-
serviceDef
-
router
-
router
-
ipSettings
- Specified by:
ipSettingsin interfaceIpInterface
-
httpSettings
- Specified by:
httpSettingsin interfaceHttpInterface
-
warpSettings
-
bindTcp
public IpServiceRef bindTcp(InetSocketAddress localAddress, IpService service, IpSettings ipSettings) - Specified by:
bindTcpin interfaceIpInterface
-
bindTls
public IpServiceRef bindTls(InetSocketAddress localAddress, IpService service, IpSettings ipSettings) - Specified by:
bindTlsin interfaceIpInterface
-
connectTcp
public IpSocketRef connectTcp(InetSocketAddress remoteAddress, IpSocket socket, IpSettings ipSettings) - Specified by:
connectTcpin interfaceIpInterface
-
connectTls
public IpSocketRef connectTls(InetSocketAddress remoteAddress, IpSocket socket, IpSettings ipSettings) - Specified by:
connectTlsin interfaceIpInterface
-
createServer
- Specified by:
createServerin interfaceHttpService
-
willStart
public void willStart() -
didStart
public void didStart() -
didBind
public void didBind()- Specified by:
didBindin interfaceHttpService
-
didAccept
- Specified by:
didAcceptin interfaceHttpService
-
didUnbind
public void didUnbind()- Specified by:
didUnbindin interfaceHttpService
-
willStop
public void willStop() -
didStop
public void didStop() -
willClose
public void willClose() -
didClose
public void didClose() -
didFail
- Specified by:
didFailin interfaceHttpService- Specified by:
didFailin interfaceService
-