Class Routes
java.lang.Object
com.inductiveautomation.perspective.gateway.comm.Routes
These are the Perspective routes that are used for the Perspective application itself.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static final class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PerspectiveSessionCollectiongetOrCreateSession(PerspectiveContext context, jakarta.servlet.http.HttpSession webSession, SessionScope scope, String remoteHost, String remoteAddr, List<Locale> locales, com.google.common.collect.ImmutableCollection<String> securityZones, NativeDevice device) voidstatic AccessControlStrategyrequireSession(EnumSet<SessionScope> scopes) Scoped access control strategy method used for mounting Perspective routes.
-
Constructor Details
-
Routes
-
-
Method Details
-
mountRoutes
public void mountRoutes() -
requireSession
Scoped access control strategy method used for mounting Perspective routes.- Parameters:
scopes- enum set ofSessionScoperestricting route access to the provided scopes (Client, Designer, or both).- Returns:
AccessControlStrategyreturns the strategy for the provided scopes.
-
getOrCreateSession
@Nonnull public static PerspectiveSessionCollection getOrCreateSession(@Nonnull PerspectiveContext context, @Nonnull jakarta.servlet.http.HttpSession webSession, @Nonnull SessionScope scope, @Nullable String remoteHost, @Nullable String remoteAddr, @Nonnull List<Locale> locales, @Nonnull com.google.common.collect.ImmutableCollection<String> securityZones, @Nonnull NativeDevice device)
-