- java.lang.Object
-
- swim.io.http.AbstractHttpService
-
- All Implemented Interfaces:
FlowContext,HttpService
public abstract class AbstractHttpService extends Object implements HttpService, FlowContext
-
-
Field Summary
Fields Modifier and Type Field Description protected HttpServiceContextcontext
-
Constructor Summary
Constructors Constructor Description AbstractHttpService()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract HttpServercreateServer()voiddidAccept(HttpServer server)voiddidBind()voiddidFail(Throwable error)voiddidUnbind()FlowControlflowControl()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.FlowControlflowControl(FlowModifier flowModifier)Enqueues an atomic modification to the underlying network channel's flow control state by applying aflowModifierdelta.HttpServiceContexthttpServiceContext()HttpSettingshttpSettings()InetSocketAddresslocalAddress()voidsetHttpServiceContext(HttpServiceContext context)voidunbind()
-
-
-
Field Detail
-
context
protected HttpServiceContext context
-
-
Method Detail
-
httpServiceContext
public HttpServiceContext httpServiceContext()
- Specified by:
httpServiceContextin interfaceHttpService
-
setHttpServiceContext
public void setHttpServiceContext(HttpServiceContext context)
- Specified by:
setHttpServiceContextin interfaceHttpService
-
createServer
public abstract 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
-
flowControl
public FlowControl flowControl()
Description copied from interface:FlowContextReturns the currentFlowControlstate of the underlying network channel.- Specified by:
flowControlin interfaceFlowContext
-
flowControl
public void flowControl(FlowControl 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
public FlowControl flowControl(FlowModifier flowModifier)
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
public HttpSettings httpSettings()
-
localAddress
public InetSocketAddress localAddress()
-
unbind
public void unbind()
-
-