Enum ThreadContextClassLoaderBuilder.SupportedURLProtocols
- java.lang.Object
-
- java.lang.Enum<ThreadContextClassLoaderBuilder.SupportedURLProtocols>
-
- org.codehaus.mojo.jaxb2.shared.environment.classloading.ThreadContextClassLoaderBuilder.SupportedURLProtocols
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ThreadContextClassLoaderBuilder.SupportedURLProtocols>
- Enclosing class:
- ThreadContextClassLoaderBuilder
static enum ThreadContextClassLoaderBuilder.SupportedURLProtocols extends java.lang.Enum<ThreadContextClassLoaderBuilder.SupportedURLProtocols>
Simple enumeration of supported classpath URL protocols.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BUNDLERESOURCEFILEHTTPHTTPSJAR
-
Constructor Summary
Constructors Modifier Constructor Description privateSupportedURLProtocols()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleansupports(java.lang.String protocol)Filter function, indicating if thisThreadContextClassLoaderBuilder.SupportedURLProtocolsinstance can handle the supplied protocol.static ThreadContextClassLoaderBuilder.SupportedURLProtocolsvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ThreadContextClassLoaderBuilder.SupportedURLProtocols[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FILE
public static final ThreadContextClassLoaderBuilder.SupportedURLProtocols FILE
-
JAR
public static final ThreadContextClassLoaderBuilder.SupportedURLProtocols JAR
-
HTTP
public static final ThreadContextClassLoaderBuilder.SupportedURLProtocols HTTP
-
HTTPS
public static final ThreadContextClassLoaderBuilder.SupportedURLProtocols HTTPS
-
BUNDLERESOURCE
public static final ThreadContextClassLoaderBuilder.SupportedURLProtocols BUNDLERESOURCE
-
-
Method Detail
-
values
public static ThreadContextClassLoaderBuilder.SupportedURLProtocols[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ThreadContextClassLoaderBuilder.SupportedURLProtocols c : ThreadContextClassLoaderBuilder.SupportedURLProtocols.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ThreadContextClassLoaderBuilder.SupportedURLProtocols valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
supports
public boolean supports(java.lang.String protocol)
Filter function, indicating if thisThreadContextClassLoaderBuilder.SupportedURLProtocolsinstance can handle the supplied protocol.- Parameters:
protocol- The protocol to support.- Returns:
trueif thisThreadContextClassLoaderBuilder.SupportedURLProtocolsinstance supports the given protocol.
-
-