Class AttributeNormalizer
java.lang.Object
org.eclipse.jetty.quickstart.AttributeNormalizer
Normalize Attribute to String.
Replaces and expands:
- ${WAR}
- ${WAR.path}
- ${WAR.uri}
- ${jetty.base}
- ${jetty.base.uri}
- ${jetty.home}
- ${jetty.home.uri}
- ${user.home}
- ${user.home.uri}
- ${user.dir}
- ${user.dir.uri}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static classprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Patternprivate static Comparator<AttributeNormalizer.Attribute> private Map<String, AttributeNormalizer.Attribute> private static final Loggerprivate List<AttributeNormalizer.PathAttribute> private List<AttributeNormalizer.URIAttribute> private URI -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddSystemProperty(String key, int weight) private StringNormalize a URI, URL, or File reference by replacing known attributes with ${key} attributes.protected StringnormalizePath(Path path) protected StringnormalizeUri(URI uri) static PathtoCanonicalPath(String path) private static PathtoCanonicalPath(Path path) static StringtoCanonicalURI(String uri) static URItoCanonicalURI(URI uri)
-
Field Details
-
LOG
-
__propertyPattern
-
attrComparator
-
warURI
-
attributes
-
paths
-
uris
-
-
Constructor Details
-
AttributeNormalizer
-
-
Method Details
-
toCanonicalURI
-
toCanonicalURI
-
toCanonicalPath
-
toCanonicalPath
-
addSystemProperty
-
normalize
-
normalizeUri
-
normalizePath
-
expand
-
expand
-
getString
-