public class DefaultSecuredPaths extends Object implements SecuredPaths
| 限定符和类型 | 类和说明 |
|---|---|
protected static class |
DefaultSecuredPaths.PathEntry |
| 限定符和类型 | 字段和说明 |
|---|---|
protected static Comparator<leap.lang.path.PathPattern> |
COMPARATOR |
protected TreeMap<leap.lang.path.PathPattern,DefaultSecuredPaths.PathEntry> |
paths |
| 构造器和说明 |
|---|
DefaultSecuredPaths() |
| 限定符和类型 | 方法和说明 |
|---|---|
SecuredPaths |
apply(SecuredPath p)
Apply the secured path.
|
void |
apply(SecuredPathConfigurator c,
SecuredPath p) |
SecuredPaths |
apply(String path,
boolean allowAnonymous)
Apply a secured path.
|
protected static int |
compareTo(leap.lang.path.PathPattern p1,
leap.lang.path.PathPattern p2) |
protected SecuredPathConfigurator |
configurator(leap.lang.path.PathPattern pp) |
protected SecuredPathConfigurator |
configurator(Route route) |
SecuredPathConfigurator |
get(Route route)
Returns the exists
SecuredPathConfigurator for the route or null if not exists. |
protected static boolean |
isDotStartVariable(String part) |
boolean |
isEmpty() |
protected static boolean |
isVariable(String part) |
Iterator<SecuredPath> |
iterator() |
SecuredPathConfigurator |
of(leap.lang.path.PathPattern pp)
Returns an exists or creates a new
SecuredPathConfigurator for the given path pattern |
SecuredPathConfigurator |
of(Route route)
Returns an exists or creates a new
SecuredPathConfigurator for the given path pattern in route. |
SecuredPathConfigurator |
of(String path)
Returns an exists or creates a new
SecuredPathConfigurator for the given path pattern |
boolean |
remove(SecuredPath path)
Removes the secured path and returns the removed
SecuredPath object. |
SecuredPath |
remove(String path)
Removes the secured path and returns the removed
SecuredPath object. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorprotected static final Comparator<leap.lang.path.PathPattern> COMPARATOR
protected final TreeMap<leap.lang.path.PathPattern,DefaultSecuredPaths.PathEntry> paths
public boolean isEmpty()
isEmpty 在接口中 leap.lang.Emptiablepublic Iterator<SecuredPath> iterator()
iterator 在接口中 Iterable<SecuredPath>public SecuredPathConfigurator of(String path)
SecuredPathsSecuredPathConfigurator for the given path patternof 在接口中 SecuredPathspublic SecuredPathConfigurator of(leap.lang.path.PathPattern pp)
SecuredPathsSecuredPathConfigurator for the given path patternof 在接口中 SecuredPathspublic SecuredPathConfigurator of(Route route)
SecuredPathsSecuredPathConfigurator for the given path pattern in route.of 在接口中 SecuredPathspublic SecuredPathConfigurator get(Route route)
SecuredPathsSecuredPathConfigurator for the route or null if not exists.get 在接口中 SecuredPathsprotected SecuredPathConfigurator configurator(Route route)
protected SecuredPathConfigurator configurator(leap.lang.path.PathPattern pp)
public SecuredPaths apply(SecuredPath p)
SecuredPathsapply 在接口中 SecuredPathspublic SecuredPaths apply(String path, boolean allowAnonymous)
SecuredPathsapply 在接口中 SecuredPathspublic SecuredPath remove(String path)
SecuredPathsSecuredPath object.
Returns null if not exists.remove 在接口中 SecuredPathspublic boolean remove(SecuredPath path)
SecuredPathsSecuredPath object.
Returns false if not exists.remove 在接口中 SecuredPathspublic void apply(SecuredPathConfigurator c, SecuredPath p)
protected static int compareTo(leap.lang.path.PathPattern p1,
leap.lang.path.PathPattern p2)
protected static boolean isVariable(String part)
protected static boolean isDotStartVariable(String part)
Copyright © 2019. All rights reserved.