@Override
  public Resource createResource(String path)
  {
    if(path == null)
      return null;

    URI uri = URI.create(path).normalize();

    if(uri.isAbsolute())
      throw new IllegalArgumentException(path + " => only path with no scheme are supported...");

    path = uri.toString();

    return doBuildResource(PathUtils.addLeadingSlash(path));
  }
@Override
  public Resource createResource(String path)
  {
    if(path == null)
      return null;

    URI uri = URI.create(path).normalize();

    if(uri.isAbsolute())
      throw new IllegalArgumentException(path + " => only path with no scheme are supported...");

    path = uri.toString();

    return doBuildResource(PathUtils.addLeadingSlash(path));
  }
@ Override public Resource createResource ( String path ) { if ( path == null ) return null ; URI uri = URI . create ( path ) . normalize ( ) ; if ( uri . isAbsolute ( ) ) throw new IllegalArgumentException ( path + " => only path with no scheme are supported..." ) ; path = uri . toString ( ) ; return doBuildResource ( PathUtils . addLeadingSlash ( path ) ) ; }
The path to the resource is absolute. Whether it starts with / or not it will be made
absolute.
<p/>
Note that it follows the same convention as {@link File} class in the sense that a resource
simply represents a handle and does not imply that the resource exists.

@param path the path to the resource
@return the resource given the path
The path to the resource is absolute . Whether it starts with / or not it will be made absolute . <p / > Note that it follows the same convention as { @link File } class in the sense that a resource simply represents a handle and does not imply that the resource exists .