- java.lang.Object
-
- swim.runtime.AbstractSwimRef
-
- swim.runtime.AbstractTierBinding
-
- swim.runtime.LaneView
-
- swim.runtime.http.HttpLaneView<V>
-
- swim.runtime.http.RestLaneView<V>
-
- All Implemented Interfaces:
swim.api.downlink.DownlinkFactory,swim.api.http.HttpLane<V>,swim.api.Lane,swim.api.ref.SwimRef,swim.observable.Observable<Object>,CellContext,TierBinding,swim.util.Log
public class RestLaneView<V> extends HttpLaneView<V>
-
-
Field Summary
Fields Modifier and Type Field Description protected swim.api.agent.AgentContextagentContextprotected RestLaneModellaneBinding-
Fields inherited from class swim.runtime.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 RestLaneView(swim.api.agent.AgentContext agentContext, Object observers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description swim.api.agent.AgentContextagentContext()voidclose()RestLaneModelcreateLaneBinding()RestLaneView<V>decodeRequest(swim.api.http.function.DecodeRequestHttp<V> decodeRequest)RestLaneView<V>didRequest(swim.api.http.function.DidRequestHttp<V> didRequest)RestLaneView<V>didRespond(swim.api.http.function.DidRespondHttp<?> didRespond)RestLaneView<V>doRespond(swim.api.http.function.DoRespondHttp<V> doRespond)RestLaneModellaneBinding()RestLaneView<V>observe(Object observer)RestLaneView<V>unobserve(Object observer)RestLaneView<V>willRequest(swim.api.http.function.WillRequestHttp<?> willRequest)RestLaneView<V>willRespond(swim.api.http.function.WillRespondHttp<?> willRespond)-
Methods inherited from class swim.runtime.http.HttpLaneView
dispatchDecodeRequest, dispatchDidRequest, dispatchDidRespond, dispatchDoRespond, dispatchWillRequest, dispatchWillRespond, laneDecodeRequest, laneDidRequest, laneDidRespond, laneDoRespond, laneWillRequest, laneWillRespond
-
Methods inherited from class swim.runtime.LaneView
bindDownlink, bottomLane, cellAddress, closeDownlink, debug, edgeName, error, fail, hostUri, info, laneContext, laneDidFail, laneUri, meshUri, nodeUri, openDownlink, openMetaDownlink, policy, pushDown, reportDown, schedule, stage, store, tierContext, trace, unwrapLane, warn
-
Methods inherited from class swim.runtime.AbstractTierBinding
activate, didClose, didFail, didLoad, didOpen, didStart, didStop, didUnload, isClosed, isLoaded, isOpened, isStarted, load, open, start, stop, unload, willClose, willLoad, willOpen, willStart, willStop, willUnload
-
Methods inherited from class swim.runtime.AbstractSwimRef
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
-
-
-
-
Field Detail
-
agentContext
protected final swim.api.agent.AgentContext agentContext
-
laneBinding
protected RestLaneModel laneBinding
-
-
Constructor Detail
-
RestLaneView
public RestLaneView(swim.api.agent.AgentContext agentContext, Object observers)
-
-
Method Detail
-
agentContext
public swim.api.agent.AgentContext agentContext()
- Specified by:
agentContextin classLaneView
-
laneBinding
public RestLaneModel laneBinding()
- Specified by:
laneBindingin classLaneView
-
createLaneBinding
public RestLaneModel createLaneBinding()
- Specified by:
createLaneBindingin classLaneView
-
close
public void close()
- Specified by:
closein interfaceswim.api.Lane- Specified by:
closein interfaceswim.api.ref.SwimRef- Specified by:
closein interfaceTierBinding- Specified by:
closein classLaneView
-
observe
public RestLaneView<V> observe(Object observer)
- Specified by:
observein interfaceswim.api.http.HttpLane<V>- Specified by:
observein interfaceswim.api.Lane- Specified by:
observein interfaceswim.observable.Observable<V>- Overrides:
observein classHttpLaneView<V>
-
unobserve
public RestLaneView<V> unobserve(Object observer)
- Specified by:
unobservein interfaceswim.api.http.HttpLane<V>- Specified by:
unobservein interfaceswim.api.Lane- Specified by:
unobservein interfaceswim.observable.Observable<V>- Overrides:
unobservein classHttpLaneView<V>
-
decodeRequest
public RestLaneView<V> decodeRequest(swim.api.http.function.DecodeRequestHttp<V> decodeRequest)
- Specified by:
decodeRequestin interfaceswim.api.http.HttpLane<V>- Specified by:
decodeRequestin classHttpLaneView<V>
-
willRequest
public RestLaneView<V> willRequest(swim.api.http.function.WillRequestHttp<?> willRequest)
- Specified by:
willRequestin interfaceswim.api.http.HttpLane<V>- Specified by:
willRequestin classHttpLaneView<V>
-
didRequest
public RestLaneView<V> didRequest(swim.api.http.function.DidRequestHttp<V> didRequest)
- Specified by:
didRequestin interfaceswim.api.http.HttpLane<V>- Specified by:
didRequestin classHttpLaneView<V>
-
doRespond
public RestLaneView<V> doRespond(swim.api.http.function.DoRespondHttp<V> doRespond)
- Specified by:
doRespondin interfaceswim.api.http.HttpLane<V>- Specified by:
doRespondin classHttpLaneView<V>
-
willRespond
public RestLaneView<V> willRespond(swim.api.http.function.WillRespondHttp<?> willRespond)
- Specified by:
willRespondin interfaceswim.api.http.HttpLane<V>- Specified by:
willRespondin classHttpLaneView<V>
-
didRespond
public RestLaneView<V> didRespond(swim.api.http.function.DidRespondHttp<?> didRespond)
- Specified by:
didRespondin interfaceswim.api.http.HttpLane<V>- Specified by:
didRespondin classHttpLaneView<V>
-
-