Package org.eclipse.jetty.quickstart
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 class
private static class
private static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Pattern
private static Comparator<AttributeNormalizer.Attribute>
private Map<String,
AttributeNormalizer.Attribute> private static final Logger
private List<AttributeNormalizer.PathAttribute>
private List<AttributeNormalizer.URIAttribute>
private URI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addSystemProperty
(String key, int weight) private String
Normalize a URI, URL, or File reference by replacing known attributes with ${key} attributes.protected String
normalizePath
(Path path) protected String
normalizeUri
(URI uri) static Path
toCanonicalPath
(String path) private static Path
toCanonicalPath
(Path path) static String
toCanonicalURI
(String uri) static URI
toCanonicalURI
(URI uri)
-
Field Details
-
LOG
-
__propertyPattern
-
attrComparator
-
warURI
-
attributes
-
paths
-
uris
-
-
Constructor Details
-
AttributeNormalizer
-
-
Method Details
-
toCanonicalURI
-
toCanonicalURI
-
toCanonicalPath
-
toCanonicalPath
-
addSystemProperty
-
normalize
Normalize a URI, URL, or File reference by replacing known attributes with ${key} attributes.- Parameters:
o
- the object to normalize into a string- Returns:
- the string representation of the object, with expansion keys.
-
normalizeUri
-
normalizePath
-
expand
-
expand
-
getString
-