java.lang.Object
swim.api.policy.AbstractPolicy
- All Implemented Interfaces:
AgentPolicy,AgentRoutePolicy,DownlinkPolicy,HttpPolicy,LanePolicy,PlanePolicy,Policy,UplinkPolicy
public class AbstractPolicy
extends Object
implements Policy, PlanePolicy, AgentRoutePolicy, AgentPolicy, LanePolicy, UplinkPolicy, DownlinkPolicy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionagentPolicy(Agent agent) agentRoutePolicy(AgentRoute<?> agentRoute) <T> PolicyDirective<T>allow()<T> PolicyDirective<T>allow(T value) protected <T> PolicyDirective<T>authorizeHttpLane(Uri nodeUri, Uri laneUri, HttpRequest<?> httpRequest) canConnect(HttpRequest<?> httpRequest) canDownlink(CommandMessage message, Identity identity) canLink(LinkRequest request, Identity identity) canRequest(HttpRequest<?> request) canRespond(HttpRequest<?> request, HttpResponse<?> response) canSync(SyncRequest request, Identity identity) canUplink(EventMessage message, Identity identity) <T> PolicyDirective<T>deny()<T> PolicyDirective<T>downlinkPolicy(Downlink downlink) <T> PolicyDirective<T>forbid()<T> PolicyDirective<T>lanePolicy(Lane lane) uplinkPolicy(Uplink uplink)
-
Constructor Details
-
AbstractPolicy
public AbstractPolicy()
-
-
Method Details
-
agentRoutePolicy
- Specified by:
agentRoutePolicyin interfacePlanePolicy
-
agentPolicy
- Specified by:
agentPolicyin interfaceAgentRoutePolicy
-
lanePolicy
- Specified by:
lanePolicyin interfaceAgentPolicy
-
uplinkPolicy
- Specified by:
uplinkPolicyin interfaceLanePolicy
-
downlinkPolicy
- Specified by:
downlinkPolicyin interfaceAgentPolicy- Specified by:
downlinkPolicyin interfaceAgentRoutePolicy- Specified by:
downlinkPolicyin interfacePlanePolicy
-
canConnect
- Specified by:
canConnectin interfacePlanePolicy
-
authorizeHttpLane
public PolicyDirective<Object> authorizeHttpLane(Uri nodeUri, Uri laneUri, HttpRequest<?> httpRequest) - Specified by:
authorizeHttpLanein interfacePolicy
-
canLink
-
canSync
-
canUplink
-
canDownlink
- Specified by:
canDownlinkin interfacePolicy
-
canRequest
- Specified by:
canRequestin interfaceHttpPolicy- Specified by:
canRequestin interfacePolicy
-
canRespond
public PolicyDirective<HttpResponse<?>> canRespond(HttpRequest<?> request, HttpResponse<?> response) - Specified by:
canRespondin interfaceHttpPolicy- Specified by:
canRespondin interfacePolicy
-
authorize
-
allow
-
allow
-
deny
-
deny
-
forbid
-
forbid
-