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}
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionNormalize 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) static String
toCanonicalURI
(String uri) static URI
toCanonicalURI
(URI uri)
-
Constructor Details
-
AttributeNormalizer
-
-
Method Details
-
toCanonicalURI
-
toCanonicalURI
-
toCanonicalPath
-
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
-