Class UnsafeURLResourceResolverPlugin

java.lang.Object
io.vertigo.core.plugins.resource.unsafeurl.UnsafeURLResourceResolverPlugin
All Implemented Interfaces:
ResourceResolverPlugin, CoreComponent, Plugin

public final class UnsafeURLResourceResolverPlugin extends Object implements ResourceResolverPlugin
Résolution des URL par le standard java.net.URL.
Author:
npiedeloup
  • Constructor Details

    • UnsafeURLResourceResolverPlugin

      public UnsafeURLResourceResolverPlugin()
  • Method Details

    • resolve

      public URL resolve(String resource)
      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:
      resolve in interface ResourceResolverPlugin
      Parameters:
      resource - the string representation of the resource to resolve
      Returns:
      The resolved URL if successful, or null if the resource cannot be resolved