Class UnsafeURLResourceResolverPlugin
java.lang.Object
io.vertigo.core.plugins.resource.unsafeurl.UnsafeURLResourceResolverPlugin
- All Implemented Interfaces:
ResourceResolverPlugin,CoreComponent,Plugin
Résolution des URL par le standard java.net.URL.
- Author:
- npiedeloup
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
UnsafeURLResourceResolverPlugin
public UnsafeURLResourceResolverPlugin()
-
-
Method Details
-
resolve
Resolves a resource string into its corresponding URL. This method takes a string representation of a resource (e.g., a file path, URI, or other identifier) and attempts to convert it into a URL object. If the resource cannot be resolved (e.g., due to an invalid format or inaccessible resource), an empty Optional is returned.- Specified by:
resolvein interfaceResourceResolverPlugin- Parameters:
resource- the string representation of the resource to resolve- Returns:
- The resolved URL if successful, or null if the resource cannot be resolved
-