Package ch.qos.logback.core.util
Class LocationUtil
- java.lang.Object
-
- ch.qos.logback.core.util.LocationUtil
-
@Deprecated(since="2022-01-27") public class LocationUtil extends java.lang.ObjectDeprecated.This internal logback API is not supported by AEM as a Cloud Service.A static utility method that converts a string that describes the location of a resource into aURLobject.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCLASSPATH_SCHEMEDeprecated.Scheme name for a classpath resourcestatic java.lang.StringSCHEME_PATTERNDeprecated.Regex pattern for a URL scheme (reference RFC 2396 section 3)
-
Constructor Summary
Constructors Constructor Description LocationUtil()Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static java.net.URLurlForResource(java.lang.String location)Deprecated.Converts a string describing the location of a resource into a URL object.
-
-
-
Field Detail
-
SCHEME_PATTERN
public static final java.lang.String SCHEME_PATTERN
Deprecated.Regex pattern for a URL scheme (reference RFC 2396 section 3)- See Also:
- Constant Field Values
-
CLASSPATH_SCHEME
public static final java.lang.String CLASSPATH_SCHEME
Deprecated.Scheme name for a classpath resource- See Also:
- Constant Field Values
-
-
Method Detail
-
urlForResource
public static java.net.URL urlForResource(java.lang.String location) throws java.net.MalformedURLException, java.io.FileNotFoundExceptionDeprecated.Converts a string describing the location of a resource into a URL object.- Parameters:
location- String describing the location- Returns:
- URL object that refers to
location - Throws:
java.net.MalformedURLException- iflocationis not a syntatically valid URLjava.io.FileNotFoundException- iflocationspecifies a non-existent classpath resourcejava.lang.NullPointerException- iflocationisnull
-
-