- java.lang.Object
-
- swim.service.warp.WarpServicePort
-
- All Implemented Interfaces:
Service
,HttpInterface
,HttpService
,IpInterface
public class WarpServicePort extends Object implements Service, HttpService, HttpInterface
-
-
Field Summary
Fields Modifier and Type Field Description protected HttpServiceContext
httpServiceContext
protected KernelContext
kernel
protected ServiceContext
serviceContext
protected WarpServiceDef
serviceDef
-
Constructor Summary
Constructors Constructor Description WarpServicePort(KernelContext kernel, ServiceContext serviceContext, WarpServiceDef serviceDef)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IpServiceRef
bindTcp(InetSocketAddress localAddress, IpService service, IpSettings ipSettings)
IpServiceRef
bindTls(InetSocketAddress localAddress, IpService service, IpSettings ipSettings)
IpSocketRef
connectTcp(InetSocketAddress remoteAddress, IpSocket socket, IpSettings ipSettings)
IpSocketRef
connectTls(InetSocketAddress remoteAddress, IpSocket socket, IpSettings ipSettings)
HttpServer
createServer()
void
didAccept(HttpServer server)
void
didBind()
void
didClose()
void
didFail(Throwable error)
void
didStart()
void
didStop()
void
didUnbind()
HttpServiceContext
httpServiceContext()
HttpSettings
httpSettings()
IpSettings
ipSettings()
KernelContext
kernel()
ServiceContext
serviceContext()
WarpServiceDef
serviceDef()
void
setHttpServiceContext(HttpServiceContext httpServiceContext)
WarpSettings
warpSettings()
void
willClose()
void
willStart()
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
-
-
-
-
Field Detail
-
kernel
protected final KernelContext kernel
-
serviceContext
protected final ServiceContext serviceContext
-
serviceDef
protected final WarpServiceDef serviceDef
-
httpServiceContext
protected HttpServiceContext httpServiceContext
-
-
Constructor Detail
-
WarpServicePort
public WarpServicePort(KernelContext kernel, ServiceContext serviceContext, WarpServiceDef serviceDef)
-
-
Method Detail
-
kernel
public final KernelContext kernel()
-
serviceContext
public final ServiceContext serviceContext()
- Specified by:
serviceContext
in interfaceService
-
httpServiceContext
public final HttpServiceContext httpServiceContext()
- Specified by:
httpServiceContext
in interfaceHttpService
-
setHttpServiceContext
public void setHttpServiceContext(HttpServiceContext httpServiceContext)
- Specified by:
setHttpServiceContext
in interfaceHttpService
-
serviceDef
public final WarpServiceDef serviceDef()
-
ipSettings
public final IpSettings ipSettings()
- Specified by:
ipSettings
in interfaceIpInterface
-
httpSettings
public final HttpSettings httpSettings()
- Specified by:
httpSettings
in interfaceHttpInterface
-
warpSettings
public final WarpSettings 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
public HttpServer createServer()
- Specified by:
createServer
in interfaceHttpService
-
didBind
public void didBind()
- Specified by:
didBind
in interfaceHttpService
-
didAccept
public void didAccept(HttpServer server)
- Specified by:
didAccept
in interfaceHttpService
-
didUnbind
public void didUnbind()
- Specified by:
didUnbind
in interfaceHttpService
-
didFail
public void didFail(Throwable error)
- Specified by:
didFail
in interfaceHttpService
- Specified by:
didFail
in interfaceService
-
-