## org.das2.util.filesystem.ForgeUrlDetector

Detect whether a URL points to a GitHub/GitLab repo resource, and extract (host, namespace/owner, project/repo, ref, path) plus a canonical "raw" URL when possible. Designed for Autoplot-style "ForgeFileSystem" dispatch (GitHubFileSystem/GitLabFileSystem).

## ForgeUrlDetector( )

## detectForgeUrl

detectForgeUrl( String url ) → java.util.Optional

Main entry point.

### Parameters

url - a String

### Returns:

java.util.Optional
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## main

main( String[] args ) → void

### Parameters

args - a java.lang.String[]

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc] [view source]