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 UcreateHttpUplink(HttpBinding link)protected UcreateUplink(LinkBinding link)protected Decoder<Object>decodeRequest(U uplink, HttpRequest<?> request)protected Decoder<Object>decodeRequestDefault(U uplink, HttpRequest<?> request)protected voiddidOpenLaneView(View view)protected voiddidRequest(U uplink, HttpRequest<Object> request)protected voiddidRespond(U uplink, HttpResponse<?> response)protected voiddoRespond(U uplink, HttpRequest<Object> request)protected HttpResponse<?>doRespondDefault(U uplink, HttpRequest<?> request)StringlaneType()voidpushUp(Push<?> push)voidpushUpCommand(Push<CommandMessage> push)protected voidwillRequest(U uplink, HttpRequest<?> request)protected voidwillRespond(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:
createUplinkin classLaneModel<View extends HttpLaneView<?>,U extends HttpUplinkModem>
-
createHttpUplink
protected abstract U createHttpUplink(HttpBinding link)
-
pushUp
public void pushUp(Push<?> push)
- Specified by:
pushUpin interfaceCellBinding- Specified by:
pushUpin classLaneModel<View extends HttpLaneView<?>,U extends HttpUplinkModem>
-
pushUpCommand
public void pushUpCommand(Push<CommandMessage> push)
- Specified by:
pushUpCommandin interfaceLaneBinding- Specified by:
pushUpCommandin classLaneModel<View extends HttpLaneView<?>,U extends HttpUplinkModem>
-
didOpenLaneView
protected void didOpenLaneView(View view)
- Specified by:
didOpenLaneViewin 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)
-
-