- java.lang.Object
-
- swim.service.web.WebService
-
- All Implemented Interfaces:
Service,HttpInterface,HttpService,IpInterface
public class WebService extends Object implements Service, HttpService, HttpInterface
-
-
Constructor Summary
Constructors Constructor Description WebService(KernelContext kernel, ServiceContext serviceContext, WebServiceDef serviceDef, WebRoute router)
-
Method Summary
-
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 Detail
-
WebService
public WebService(KernelContext kernel, ServiceContext serviceContext, WebServiceDef serviceDef, WebRoute router)
-
-
Method Detail
-
kernel
public final KernelContext kernel()
-
serviceContext
public final ServiceContext serviceContext()
- Specified by:
serviceContextin interfaceService
-
httpServiceContext
public final HttpServiceContext httpServiceContext()
- Specified by:
httpServiceContextin interfaceHttpService
-
setHttpServiceContext
public void setHttpServiceContext(HttpServiceContext httpServiceContext)
- Specified by:
setHttpServiceContextin interfaceHttpService
-
serviceDef
public final WebServiceDef serviceDef()
-
router
public final WebRoute router()
-
router
public WebService router(WebRoute router)
-
ipSettings
public final IpSettings ipSettings()
- Specified by:
ipSettingsin interfaceIpInterface
-
httpSettings
public final HttpSettings httpSettings()
- Specified by:
httpSettingsin interfaceHttpInterface
-
warpSettings
public final WarpSettings 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
public HttpServer createServer()
- Specified by:
createServerin interfaceHttpService
-
didBind
public void didBind()
- Specified by:
didBindin interfaceHttpService
-
didAccept
public void didAccept(HttpServer server)
- Specified by:
didAcceptin interfaceHttpService
-
didUnbind
public void didUnbind()
- Specified by:
didUnbindin interfaceHttpService
-
didFail
public void didFail(Throwable error)
- Specified by:
didFailin interfaceHttpService- Specified by:
didFailin interfaceService
-
-