- 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 HttpServiceContext
context
-
Constructor Summary
Constructors Constructor Description AbstractHttpService()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract HttpServer
createServer()
void
didAccept(HttpServer server)
void
didBind()
void
didFail(Throwable error)
void
didUnbind()
FlowControl
flowControl()
Returns the currentFlowControl
state of the underlying network channel.void
flowControl(FlowControl flowControl)
Enqueues an atomic replacement of the underlying network channel's flow control state with a newflowControl
.FlowControl
flowControl(FlowModifier flowModifier)
Enqueues an atomic modification to the underlying network channel's flow control state by applying aflowModifier
delta.HttpServiceContext
httpServiceContext()
HttpSettings
httpSettings()
InetSocketAddress
localAddress()
void
setHttpServiceContext(HttpServiceContext context)
void
unbind()
-
-
-
Field Detail
-
context
protected HttpServiceContext context
-
-
Method Detail
-
httpServiceContext
public HttpServiceContext httpServiceContext()
- Specified by:
httpServiceContext
in interfaceHttpService
-
setHttpServiceContext
public void setHttpServiceContext(HttpServiceContext context)
- Specified by:
setHttpServiceContext
in interfaceHttpService
-
createServer
public abstract 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
-
flowControl
public FlowControl flowControl()
Description copied from interface:FlowContext
Returns the currentFlowControl
state of the underlying network channel.- Specified by:
flowControl
in interfaceFlowContext
-
flowControl
public void flowControl(FlowControl flowControl)
Description copied from interface:FlowContext
Enqueues an atomic replacement of the underlying network channel's flow control state with a newflowControl
.- Specified by:
flowControl
in interfaceFlowContext
-
flowControl
public FlowControl flowControl(FlowModifier flowModifier)
Description copied from interface:FlowContext
Enqueues an atomic modification to the underlying network channel's flow control state by applying aflowModifier
delta.- Specified by:
flowControl
in interfaceFlowContext
-
httpSettings
public HttpSettings httpSettings()
-
localAddress
public InetSocketAddress localAddress()
-
unbind
public void unbind()
-
-