java.lang.Object
swim.io.http.HttpSocketService
- All Implemented Interfaces:
FlowContext,HttpServiceContext,IpService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IpServiceContextprotected final HttpSettingsprotected final HttpService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a newIpSocketbinding to handle an incoming network connection.voidLifecycle callback invoked by the service context after the underlying network listener has accepted a newsocketconnection.voiddidBind()Lifecycle callback invoked by the service context after the underlying network listener has bound to a port.voidLifecycle callback invoked by the service context when the underlying network listener fails by throwing anerror.voidLifecycle callback invoked by the service context after the underlying network listener has been unbound.Returns the currentFlowControlstate of the underlying network channel.voidflowControl(FlowControl flowControl) Enqueues an atomic replacement of the underlying network channel's flow control state with a newflowControl.flowControl(FlowModifier flowModifier) Enqueues an atomic modification to the underlying network channel's flow control state by applying aflowModifierdelta.Returns the network listener context to which thisIpServiceis bound; returnsnullif thisIpServiceis unbound.voidsetIpServiceContext(IpServiceContext context) Sets the network listener context to which thisIpServiceis bound.voidunbind()
-
Field Details
-
service
-
httpSettings
-
context
-
-
Constructor Details
-
HttpSocketService
-
-
Method Details
-
ipServiceContext
Description copied from interface:IpServiceReturns the network listener context to which thisIpServiceis bound; returnsnullif thisIpServiceis unbound.- Specified by:
ipServiceContextin interfaceIpService
-
setIpServiceContext
Description copied from interface:IpServiceSets the network listener context to which thisIpServiceis bound.- Specified by:
setIpServiceContextin interfaceIpService
-
createSocket
Description copied from interface:IpServiceReturns a newIpSocketbinding to handle an incoming network connection.- Specified by:
createSocketin interfaceIpService
-
didBind
public void didBind()Description copied from interface:IpServiceLifecycle callback invoked by the service context after the underlying network listener has bound to a port. -
didAccept
Description copied from interface:IpServiceLifecycle callback invoked by the service context after the underlying network listener has accepted a newsocketconnection. -
didUnbind
public void didUnbind()Description copied from interface:IpServiceLifecycle callback invoked by the service context after the underlying network listener has been unbound. -
didFail
Description copied from interface:IpServiceLifecycle callback invoked by the service context when the underlying network listener fails by throwing anerror. The listener will automatically be closed. -
flowControl
Description copied from interface:FlowContextReturns the currentFlowControlstate of the underlying network channel.- Specified by:
flowControlin interfaceFlowContext
-
flowControl
Description copied from interface:FlowContextEnqueues an atomic replacement of the underlying network channel's flow control state with a newflowControl.- Specified by:
flowControlin interfaceFlowContext
-
flowControl
Description copied from interface:FlowContextEnqueues an atomic modification to the underlying network channel's flow control state by applying aflowModifierdelta.- Specified by:
flowControlin interfaceFlowContext
-
httpSettings
- Specified by:
httpSettingsin interfaceHttpServiceContext
-
localAddress
- Specified by:
localAddressin interfaceHttpServiceContext
-
unbind
public void unbind()- Specified by:
unbindin interfaceHttpServiceContext
-