Module swim.system
Package swim.system.http
Class HttpLaneModel<View extends HttpLaneView<?>,U extends HttpUplinkModem>
- java.lang.Object
-
- swim.system.AbstractWarpRef
-
- swim.system.AbstractTierBinding
-
- swim.system.LaneModel<View,U>
-
- swim.system.http.HttpLaneModel<View,U>
-
- All Implemented Interfaces:
DownlinkFactory
,WarpRef
,CellBinding
,CellContext
,LaneBinding
,TierBinding
,Log
- Direct Known Subclasses:
RestLaneModel
public abstract class HttpLaneModel<View extends HttpLaneView<?>,U extends HttpUplinkModem> extends LaneModel<View,U>
-
-
Field Summary
-
Fields inherited from class swim.system.AbstractTierBinding
CLOSED_PHASE, CLOSED_STATE, CLOSING_STATE, FAILED_STATE, FAILING_STATE, LOADED_PHASE, LOADED_STATE, LOADING_STATE, OPENED_PHASE, OPENED_STATE, OPENING_STATE, PHASE_MASK, PHASE_SHIFT, RECOVERING_STATE, STARTED_PHASE, STARTED_STATE, STARTING_STATE, STATE_MASK, status, STATUS, STOPPING_STATE, UNLOADING_STATE
-
-
Constructor Summary
Constructors Constructor Description HttpLaneModel()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract U
createHttpUplink(HttpBinding link)
protected U
createUplink(LinkBinding link)
protected Decoder<Object>
decodeRequest(U uplink, HttpRequest<?> request)
protected Decoder<Object>
decodeRequestDefault(U uplink, HttpRequest<?> request)
protected void
didOpenLaneView(View view)
protected void
didRequest(U uplink, HttpRequest<Object> request)
protected void
didRespond(U uplink, HttpResponse<?> response)
protected void
doRespond(U uplink, HttpRequest<Object> request)
protected HttpResponse<?>
doRespondDefault(U uplink, HttpRequest<?> request)
String
laneType()
void
pushUp(Push<?> push)
void
pushUpCommand(Push<CommandMessage> push)
protected void
willRequest(U uplink, HttpRequest<?> request)
protected void
willRespond(U uplink, HttpResponse<?> response)
-
Methods inherited from class swim.system.LaneModel
accumulateExecTime, bindDownlink, bottomLane, cellAddress, closeDownlink, closeLaneView, closeUplink, createUplinkAddress, debug, didClose, didCloseLaneView, didCloseUplink, didFail, didOpenUplink, edgeName, error, fail, getLaneView, getUplink, hostUri, info, isLinked, laneContext, laneUri, laneWrapper, meshUri, node, nodeUri, openDownlink, openLaneView, openMetaDownlink, openMetaLane, openMetaLanes, openMetaUplink, openReflectLanes, openUplink, partKey, policy, pushDown, reportDown, schedule, setLaneContext, stage, store, tierContext, trace, unwrapLane, uplinks, warn, willClose, willLoad, willOpen, willStart, willStop, willUnload
-
Methods inherited from class swim.system.AbstractTierBinding
activate, awaitStart, close, didLoad, didOpen, didStart, didStop, didUnload, isClosed, isLoaded, isOpened, isStarted, load, open, start, stop, unload
-
Methods inherited from class swim.system.AbstractWarpRef
command, command, command, command, command, command, command, command, command, command, command, command, command, command, command, command, downlink, downlinkHttp, downlinkList, downlinkMap, downlinkValue, downlinkWs, hostRef, hostRef, laneRef, laneRef, laneRef, laneRef, nodeRef, nodeRef, nodeRef, nodeRef
-
-
-
-
Method Detail
-
laneType
public String laneType()
-
createUplink
protected U createUplink(LinkBinding link)
- Specified by:
createUplink
in classLaneModel<View extends HttpLaneView<?>,U extends HttpUplinkModem>
-
createHttpUplink
protected abstract U createHttpUplink(HttpBinding link)
-
pushUp
public void pushUp(Push<?> push)
- Specified by:
pushUp
in interfaceCellBinding
- Specified by:
pushUp
in classLaneModel<View extends HttpLaneView<?>,U extends HttpUplinkModem>
-
pushUpCommand
public void pushUpCommand(Push<CommandMessage> push)
- Specified by:
pushUpCommand
in interfaceLaneBinding
- Specified by:
pushUpCommand
in classLaneModel<View extends HttpLaneView<?>,U extends HttpUplinkModem>
-
didOpenLaneView
protected void didOpenLaneView(View view)
- Specified by:
didOpenLaneView
in classLaneModel<View extends HttpLaneView<?>,U extends HttpUplinkModem>
-
decodeRequestDefault
protected Decoder<Object> decodeRequestDefault(U uplink, HttpRequest<?> request)
-
doRespondDefault
protected HttpResponse<?> doRespondDefault(U uplink, HttpRequest<?> request)
-
decodeRequest
protected Decoder<Object> decodeRequest(U uplink, HttpRequest<?> request)
-
willRequest
protected void willRequest(U uplink, HttpRequest<?> request)
-
didRequest
protected void didRequest(U uplink, HttpRequest<Object> request)
-
doRespond
protected void doRespond(U uplink, HttpRequest<Object> request)
-
willRespond
protected void willRespond(U uplink, HttpResponse<?> response)
-
didRespond
protected void didRespond(U uplink, HttpResponse<?> response)
-
-