Module net.sourceforge.urin
Package net.sourceforge.urin
Class Scheme<SEGMENT,QUERY extends Query<?>,FRAGMENT extends Fragment<?>>
- java.lang.Object
-
- net.sourceforge.urin.Scheme<SEGMENT,QUERY,FRAGMENT>
-
- Type Parameters:
SEGMENT
- The type ofSegment
used by paths of this scheme.QUERY
- The type ofQuery
used by this scheme.FRAGMENT
- The type ofFragment
used by this scheme.
- Direct Known Subclasses:
Scheme.GenericScheme
,SchemeWithDefaultPort
public abstract class Scheme<SEGMENT,QUERY extends Query<?>,FRAGMENT extends Fragment<?>> extends java.lang.Object
A name component of a URI. Immutable and thread safe.- See Also:
- RFC 3986 - Scheme
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RelativeReference<SEGMENT,QUERY,FRAGMENT>
parseRelativeReference(java.lang.String relativeReferenceString)
Parses the givenString
as a relative reference.RelativeReference<SEGMENT,QUERY,FRAGMENT>
parseRelativeReference(java.net.URI uri)
Parses the givenURI
to produce aRelativeReference
.Urin<SEGMENT,QUERY,FRAGMENT>
parseUrin(java.lang.String uriString)
Parses the givenString
as a URI.Urin<SEGMENT,QUERY,FRAGMENT>
parseUrin(java.net.URI uri)
Parses the givenURI
to produce aUrin
.UrinReference<SEGMENT,QUERY,FRAGMENT>
parseUrinReference(java.lang.String uriReferenceString)
Parses the givenString
as a URI reference.UrinReference<SEGMENT,QUERY,FRAGMENT>
parseUrinReference(java.net.URI uriReference)
Parses the givenURI
to produce aUrinReference
.RelativeReference<SEGMENT,QUERY,FRAGMENT>
relativeReference()
Factory method for creatingRelativeReference
s with just an empty path.RelativeReference<SEGMENT,QUERY,FRAGMENT>
relativeReference(FRAGMENT fragment)
Factory method for creatingRelativeReference
s with a fragment and an empty path.RelativeReference<SEGMENT,QUERY,FRAGMENT>
relativeReference(Authority authority)
Factory method for creatingRelativeReference
s with an authority and an empty path.RelativeReference<SEGMENT,QUERY,FRAGMENT>
relativeReference(Authority authority, FRAGMENT fragment)
Factory method for creatingRelativeReference
s with an authority, a fragment, and an empty path.RelativeReference<SEGMENT,QUERY,FRAGMENT>
relativeReference(Authority authority, AbsolutePath<SEGMENT> path)
Factory method for creatingRelativeReference
s with an authority and a path.RelativeReference<SEGMENT,QUERY,FRAGMENT>
relativeReference(Authority authority, AbsolutePath<SEGMENT> path, FRAGMENT fragment)
Factory method for creatingRelativeReference
s with an authority, a path, and fragment.RelativeReference<SEGMENT,QUERY,FRAGMENT>
relativeReference(Authority authority, AbsolutePath<SEGMENT> path, QUERY query)
Factory method for creatingRelativeReference
s with an authority, a path, and a query.RelativeReference<SEGMENT,QUERY,FRAGMENT>
relativeReference(Authority authority, AbsolutePath<SEGMENT> path, QUERY query, FRAGMENT fragment)
Factory method for creatingRelativeReference
s with an authority, a path, a query, and a fragment.RelativeReference<SEGMENT,QUERY,FRAGMENT>
relativeReference(Authority authority, QUERY query)
Factory method for creatingRelativeReference
s with an authority, a query and an empty path.RelativeReference<SEGMENT,QUERY,FRAGMENT>
relativeReference(Authority authority, QUERY query, FRAGMENT fragment)
Factory method for creatingRelativeReference
s with an authority, a query, a fragment, and an empty path.RelativeReference<SEGMENT,QUERY,FRAGMENT>
relativeReference(Path<SEGMENT> path)
Factory method for creatingRelativeReference
s with just a path.RelativeReference<SEGMENT,QUERY,FRAGMENT>
relativeReference(Path<SEGMENT> path, FRAGMENT fragment)
Factory method for creatingRelativeReference
s with a path and a fragment.RelativeReference<SEGMENT,QUERY,FRAGMENT>
relativeReference(Path<SEGMENT> path, QUERY query)
Factory method for creatingRelativeReference
s with a path and a query.RelativeReference<SEGMENT,QUERY,FRAGMENT>
relativeReference(Path<SEGMENT> path, QUERY query, FRAGMENT fragment)
Factory method for creatingRelativeReference
s with a path, a query, and a fragment.RelativeReference<SEGMENT,QUERY,FRAGMENT>
relativeReference(QUERY query)
Factory method for creatingRelativeReference
s with a query and an empty path.RelativeReference<SEGMENT,QUERY,FRAGMENT>
relativeReference(QUERY query, FRAGMENT fragment)
Factory method for creatingRelativeReference
s with a query, a fragment, and an empty path.static Scheme<java.lang.String,Query<java.lang.String>,Fragment<java.lang.String>>
scheme(java.lang.String name)
Factory method for creatingScheme
s.static Scheme<java.lang.String,Query<java.lang.String>,Fragment<java.lang.String>>
scheme(java.lang.String name, Port defaultPort)
Factory method for creatingScheme
s that have a default port.Urin<SEGMENT,QUERY,FRAGMENT>
urin()
Factory method for creatingUrin
s with just a scheme and empty path.Urin<SEGMENT,QUERY,FRAGMENT>
urin(FRAGMENT fragment)
Factory method for creatingUrin
s with just a scheme, fragment, and empty path.Urin<SEGMENT,QUERY,FRAGMENT>
urin(Authority authority)
Factory method for creatingUrin
s with just scheme, authority, and empty path components.Urin<SEGMENT,QUERY,FRAGMENT>
urin(Authority authority, FRAGMENT fragment)
Factory method for creatingUrin
s with just scheme, authority, fragment, and empty path components.Urin<SEGMENT,QUERY,FRAGMENT>
urin(Authority authority, AbsolutePath<SEGMENT> path)
Factory method for creatingUrin
s with just scheme, authority, and path components.Urin<SEGMENT,QUERY,FRAGMENT>
urin(Authority authority, AbsolutePath<SEGMENT> path, FRAGMENT fragment)
Factory method for creatingUrin
s with just scheme, authority, path, and fragment components.Urin<SEGMENT,QUERY,FRAGMENT>
urin(Authority authority, AbsolutePath<SEGMENT> path, QUERY query)
Factory method for creatingUrin
s with just scheme, authority, path, and query components.Urin<SEGMENT,QUERY,FRAGMENT>
urin(Authority authority, AbsolutePath<SEGMENT> path, QUERY query, FRAGMENT fragment)
Factory method for creatingUrin
s with scheme, authority, path, query, and fragment components.Urin<SEGMENT,QUERY,FRAGMENT>
urin(Authority authority, QUERY query)
Factory method for creatingUrin
s with just scheme, authority, query, and empty path components.Urin<SEGMENT,QUERY,FRAGMENT>
urin(Authority authority, QUERY query, FRAGMENT fragment)
Factory method for creatingUrin
s with scheme, authority, empty path, query, and fragment components.Urin<SEGMENT,QUERY,FRAGMENT>
urin(Path<SEGMENT> path)
Factory method for creatingUrin
s with just scheme and path components.Urin<SEGMENT,QUERY,FRAGMENT>
urin(Path<SEGMENT> path, FRAGMENT fragment)
Factory method for creatingUrin
s with just scheme, path, and fragment components.Urin<SEGMENT,QUERY,FRAGMENT>
urin(Path<SEGMENT> path, QUERY query)
Factory method for creatingUrin
s with just scheme, path, and query components.Urin<SEGMENT,QUERY,FRAGMENT>
urin(Path<SEGMENT> path, QUERY query, FRAGMENT fragment)
Factory method for creatingUrin
s with scheme, path, query, and fragment components.Urin<SEGMENT,QUERY,FRAGMENT>
urin(QUERY query)
Factory method for creatingUrin
s with just a scheme, query, and empty path.Urin<SEGMENT,QUERY,FRAGMENT>
urin(QUERY query, FRAGMENT fragment)
Factory method for creatingUrin
s with scheme, empty path, query, and fragment components.
-
-
-
Method Detail
-
scheme
public static Scheme<java.lang.String,Query<java.lang.String>,Fragment<java.lang.String>> scheme(java.lang.String name)
Factory method for creatingScheme
s. Schemes must be at least one character long, and are permitted to contain any character in the Latin alphabet, any digit, and any of the characters '+', '-', and '.'.- Parameters:
name
- aString
containing at least one character, made up of any characters in the Latin alphabet, the digits, and the characters '+', '-', and '.'.- Returns:
- a
Scheme
representing the givenString
. - Throws:
java.lang.IllegalArgumentException
- if the givenString
is empty or contains characters not in the Latin alphabet, the digits, or the characters '+', '-', and '.'.
-
scheme
public static Scheme<java.lang.String,Query<java.lang.String>,Fragment<java.lang.String>> scheme(java.lang.String name, Port defaultPort)
Factory method for creatingScheme
s that have a default port. Schemes must be at least one character long, and are permitted to contain any character in the Latin alphabet, any digit, and any of the characters '+', '-', and '.'.An example of a name that defines a default port is http, which defaults to port 80, meaning
http://example.com
is equivalent to, and preferred tohttp://example.com:80
.- Parameters:
name
- aString
containing at least one character, made up of any characters in the Latin alphabet, the digits, and the characters '+', '-', and '.'.defaultPort
-Port
representing the default port for this name.- Returns:
- a
Scheme
representing the givenString
, using the given default port. - Throws:
java.lang.IllegalArgumentException
- if the givenString
is empty or contains characters not in the Latin alphabet, the digits, or the characters '+', '-', and '.'.
-
relativeReference
public final RelativeReference<SEGMENT,QUERY,FRAGMENT> relativeReference()
Factory method for creatingRelativeReference
s with just an empty path.- Returns:
- a
RelativeReference
with an empty path.
-
relativeReference
public final RelativeReference<SEGMENT,QUERY,FRAGMENT> relativeReference(Authority authority)
Factory method for creatingRelativeReference
s with an authority and an empty path.- Parameters:
authority
- anyAuthority
to use in thisRelativeReference
.- Returns:
- a
RelativeReference
with the givenAuthority
and an empty path.
-
relativeReference
public final RelativeReference<SEGMENT,QUERY,FRAGMENT> relativeReference(Path<SEGMENT> path)
Factory method for creatingRelativeReference
s with just a path.- Parameters:
path
- anyPath
to use in thisRelativeReference
.- Returns:
- a
RelativeReference
with the givenPath
.
-
relativeReference
public final RelativeReference<SEGMENT,QUERY,FRAGMENT> relativeReference(Authority authority, AbsolutePath<SEGMENT> path)
Factory method for creatingRelativeReference
s with an authority and a path.- Parameters:
authority
- anyAuthority
to use in thisRelativeReference
.path
- anyAbsolutePath
to use in thisRelativeReference
.- Returns:
- a
RelativeReference
with the givenAuthority
andPath
.
-
relativeReference
public final RelativeReference<SEGMENT,QUERY,FRAGMENT> relativeReference(QUERY query)
Factory method for creatingRelativeReference
s with a query and an empty path.- Parameters:
query
- anyQuery
to use in thisRelativeReference
.- Returns:
- a
RelativeReference
with the givenQuery
and an empty path.
-
relativeReference
public final RelativeReference<SEGMENT,QUERY,FRAGMENT> relativeReference(Authority authority, QUERY query)
Factory method for creatingRelativeReference
s with an authority, a query and an empty path.- Parameters:
authority
- anyAuthority
to use in thisRelativeReference
.query
- anyQuery
to use in thisRelativeReference
.- Returns:
- a
RelativeReference
with the givenAuthority
andQuery
, and an empty path.
-
relativeReference
public final RelativeReference<SEGMENT,QUERY,FRAGMENT> relativeReference(Path<SEGMENT> path, QUERY query)
Factory method for creatingRelativeReference
s with a path and a query.- Parameters:
path
- anyPath
to use in thisRelativeReference
.query
- anyQuery
to use in thisRelativeReference
.- Returns:
- a
RelativeReference
with the givenPath
andQuery
.
-
relativeReference
public final RelativeReference<SEGMENT,QUERY,FRAGMENT> relativeReference(Authority authority, AbsolutePath<SEGMENT> path, QUERY query)
Factory method for creatingRelativeReference
s with an authority, a path, and a query.- Parameters:
authority
- anyAuthority
to use in thisRelativeReference
.path
- anyPath
to use in thisRelativeReference
.query
- anyQuery
to use in thisRelativeReference
.- Returns:
- a
RelativeReference
with the givenAuthority
,Path
andQuery
.
-
relativeReference
public final RelativeReference<SEGMENT,QUERY,FRAGMENT> relativeReference(FRAGMENT fragment)
Factory method for creatingRelativeReference
s with a fragment and an empty path.- Parameters:
fragment
- anyFragment
to use in thisRelativeReference
.- Returns:
- a
RelativeReference
with the givenFragment
and an empty path.
-
relativeReference
public final RelativeReference<SEGMENT,QUERY,FRAGMENT> relativeReference(Authority authority, FRAGMENT fragment)
Factory method for creatingRelativeReference
s with an authority, a fragment, and an empty path.- Parameters:
authority
- anyAuthority
to use in thisRelativeReference
.fragment
- anyFragment
to use in thisRelativeReference
.- Returns:
- a
RelativeReference
with the givenAuthority
andFragment
, and an empty path.
-
relativeReference
public final RelativeReference<SEGMENT,QUERY,FRAGMENT> relativeReference(Path<SEGMENT> path, FRAGMENT fragment)
Factory method for creatingRelativeReference
s with a path and a fragment.- Parameters:
path
- anyPath
to use in thisRelativeReference
.fragment
- anyFragment
to use in thisRelativeReference
.- Returns:
- a
RelativeReference
with the givenPath
andFragment
.
-
relativeReference
public final RelativeReference<SEGMENT,QUERY,FRAGMENT> relativeReference(Authority authority, AbsolutePath<SEGMENT> path, FRAGMENT fragment)
Factory method for creatingRelativeReference
s with an authority, a path, and fragment.- Parameters:
authority
- anyAuthority
to use in thisRelativeReference
.path
- anyAbsolutePath
to use in thisRelativeReference
.fragment
- anyFragment
to use in thisRelativeReference
.- Returns:
- a
RelativeReference
with the givenAuthority
,Path
andFragment
.
-
relativeReference
public final RelativeReference<SEGMENT,QUERY,FRAGMENT> relativeReference(QUERY query, FRAGMENT fragment)
Factory method for creatingRelativeReference
s with a query, a fragment, and an empty path.- Parameters:
query
- anyQuery
to use in thisRelativeReference
.fragment
- anyFragment
to use in thisRelativeReference
.- Returns:
- a
RelativeReference
with the givenQuery
andFragment
, and an empty path.
-
relativeReference
public final RelativeReference<SEGMENT,QUERY,FRAGMENT> relativeReference(Authority authority, QUERY query, FRAGMENT fragment)
Factory method for creatingRelativeReference
s with an authority, a query, a fragment, and an empty path.- Parameters:
authority
- anyAuthority
to use in thisRelativeReference
.query
- anyQuery
to use in thisRelativeReference
.fragment
- anyFragment
to use in thisRelativeReference
.- Returns:
- a
RelativeReference
with the givenAuthority
,Query
andFragment
, and an empty path.
-
relativeReference
public final RelativeReference<SEGMENT,QUERY,FRAGMENT> relativeReference(Path<SEGMENT> path, QUERY query, FRAGMENT fragment)
Factory method for creatingRelativeReference
s with a path, a query, and a fragment.- Parameters:
path
- anyPath
to use in thisRelativeReference
.query
- anyQuery
to use in thisRelativeReference
.fragment
- anyFragment
to use in thisRelativeReference
.- Returns:
- a
RelativeReference
with the givenPath
,Query
andFragment
.
-
relativeReference
public final RelativeReference<SEGMENT,QUERY,FRAGMENT> relativeReference(Authority authority, AbsolutePath<SEGMENT> path, QUERY query, FRAGMENT fragment)
Factory method for creatingRelativeReference
s with an authority, a path, a query, and a fragment.- Parameters:
authority
- anyAuthority
to use in thisRelativeReference
.path
- anyAbsolutePath
to use in thisRelativeReference
.query
- anyQuery
to use in thisRelativeReference
.fragment
- anyFragment
to use in thisRelativeReference
.- Returns:
- a
RelativeReference
with the givenAuthority
,Path
,Query
andFragment
.
-
parseRelativeReference
public final RelativeReference<SEGMENT,QUERY,FRAGMENT> parseRelativeReference(java.lang.String relativeReferenceString) throws ParseException
Parses the givenString
as a relative reference.- Parameters:
relativeReferenceString
- aString
that represents a relative reference.- Returns:
- a
UrinReference
representing the relative reference represented by the givenString
. - Throws:
ParseException
- if the givenString
is not a valid relative reference.
-
parseRelativeReference
public final RelativeReference<SEGMENT,QUERY,FRAGMENT> parseRelativeReference(java.net.URI uri) throws ParseException
Parses the givenURI
to produce aRelativeReference
.- Parameters:
uri
- aURI
representing a relative reference to parse.- Returns:
- a
RelativeReference
representing the RFC 3986 relative reference represented by the givenURI
. - Throws:
ParseException
- if the givenURI
is not a valid RFC 3986 relative reference.
-
urin
public final Urin<SEGMENT,QUERY,FRAGMENT> urin()
Factory method for creatingUrin
s with just a scheme and empty path.- Returns:
- a
Urin
with the givenScheme
and an empty path.
-
urin
public final Urin<SEGMENT,QUERY,FRAGMENT> urin(Path<SEGMENT> path)
Factory method for creatingUrin
s with just scheme and path components.- Parameters:
path
- anyPath
to use in thisUrin
.- Returns:
- a
Urin
with the givenScheme
andPath
.
-
urin
public final Urin<SEGMENT,QUERY,FRAGMENT> urin(Authority authority)
Factory method for creatingUrin
s with just scheme, authority, and empty path components.- Parameters:
authority
- anyAuthority
to use in thisUrin
.- Returns:
- a
Urin
with the givenScheme
andAuthority
, and an empty path.
-
urin
public final Urin<SEGMENT,QUERY,FRAGMENT> urin(Authority authority, AbsolutePath<SEGMENT> path)
Factory method for creatingUrin
s with just scheme, authority, and path components.- Parameters:
authority
- anyAuthority
to use in thisUrin
.path
- anyAbsolutePath
to use in thisUrin
.- Returns:
- a
Urin
with the givenScheme
,Authority
, andAbsolutePath
.
-
urin
public final Urin<SEGMENT,QUERY,FRAGMENT> urin(FRAGMENT fragment)
Factory method for creatingUrin
s with just a scheme, fragment, and empty path.- Parameters:
fragment
- anyFragment
to use in thisUrin
.- Returns:
- a
Urin
with the givenScheme
, the givenFragment
, and an empty path.
-
urin
public final Urin<SEGMENT,QUERY,FRAGMENT> urin(Path<SEGMENT> path, FRAGMENT fragment)
Factory method for creatingUrin
s with just scheme, path, and fragment components.- Parameters:
path
- anyPath
to use in thisUrin
.fragment
- anyFragment
to use in thisUrin
.- Returns:
- a
Urin
with the givenScheme
,Fragment
, andPath
.
-
urin
public final Urin<SEGMENT,QUERY,FRAGMENT> urin(Authority authority, FRAGMENT fragment)
Factory method for creatingUrin
s with just scheme, authority, fragment, and empty path components.- Parameters:
authority
- anyAuthority
to use in thisUrin
.fragment
- anyFragment
to use in thisUrin
.- Returns:
- a
Urin
with the givenScheme
,Authority
, andFragment
, and an empty path.
-
urin
public final Urin<SEGMENT,QUERY,FRAGMENT> urin(Authority authority, AbsolutePath<SEGMENT> path, FRAGMENT fragment)
Factory method for creatingUrin
s with just scheme, authority, path, and fragment components.- Parameters:
authority
- anyAuthority
to use in thisUrin
.path
- anyAbsolutePath
to use in thisUrin
.fragment
- anyFragment
to use in thisUrin
.- Returns:
- a
Urin
with the givenScheme
,Authority
,AbsolutePath
, andFragment
.
-
urin
public final Urin<SEGMENT,QUERY,FRAGMENT> urin(QUERY query)
Factory method for creatingUrin
s with just a scheme, query, and empty path.- Parameters:
query
- anyQuery
to use in thisUrin
.- Returns:
- a
Urin
with the givenScheme
, the givenQuery
, and an empty path.
-
urin
public final Urin<SEGMENT,QUERY,FRAGMENT> urin(Path<SEGMENT> path, QUERY query)
Factory method for creatingUrin
s with just scheme, path, and query components.- Parameters:
path
- anyPath
to use in thisUrin
.query
- anyQuery
to use in thisUrin
.- Returns:
- a
Urin
with the givenScheme
,Query
, andPath
.
-
urin
public final Urin<SEGMENT,QUERY,FRAGMENT> urin(Authority authority, QUERY query)
Factory method for creatingUrin
s with just scheme, authority, query, and empty path components.- Parameters:
authority
- anyAuthority
to use in thisUrin
.query
- anyQuery
to use in thisUrin
.- Returns:
- a
Urin
with the givenScheme
,Authority
, andQuery
, and an empty path.
-
urin
public final Urin<SEGMENT,QUERY,FRAGMENT> urin(Authority authority, AbsolutePath<SEGMENT> path, QUERY query)
Factory method for creatingUrin
s with just scheme, authority, path, and query components.- Parameters:
authority
- anyAuthority
to use in thisUrin
.path
- anyAbsolutePath
to use in thisUrin
.query
- anyQuery
to use in thisUrin
.- Returns:
- a
Urin
with the givenScheme
,Authority
,AbsolutePath
, andQuery
.
-
urin
public final Urin<SEGMENT,QUERY,FRAGMENT> urin(QUERY query, FRAGMENT fragment)
Factory method for creatingUrin
s with scheme, empty path, query, and fragment components.- Parameters:
query
- anyQuery
to use in thisUrin
.fragment
- anyFragment
to use in thisUrin
.- Returns:
- a
Urin
with the givenScheme
,Query
, andFragment
, and an empty path.
-
urin
public final Urin<SEGMENT,QUERY,FRAGMENT> urin(Path<SEGMENT> path, QUERY query, FRAGMENT fragment)
Factory method for creatingUrin
s with scheme, path, query, and fragment components.- Parameters:
path
- anyPath
to use in thisUrin
.query
- anyQuery
to use in thisUrin
.fragment
- anyFragment
to use in thisUrin
.- Returns:
- a
Urin
with the givenScheme
,Path
,Query
, andFragment
.
-
urin
public final Urin<SEGMENT,QUERY,FRAGMENT> urin(Authority authority, QUERY query, FRAGMENT fragment)
Factory method for creatingUrin
s with scheme, authority, empty path, query, and fragment components.- Parameters:
authority
- anyAuthority
to use in thisUrin
.query
- anyQuery
to use in thisUrin
.fragment
- anyFragment
to use in thisUrin
.- Returns:
- a
Urin
with the givenScheme
,Authority
,Query
, andFragment
, and an empty path.
-
urin
public final Urin<SEGMENT,QUERY,FRAGMENT> urin(Authority authority, AbsolutePath<SEGMENT> path, QUERY query, FRAGMENT fragment)
Factory method for creatingUrin
s with scheme, authority, path, query, and fragment components.- Parameters:
authority
- anyAuthority
to use in thisUrin
.path
- anyAbsolutePath
to use in thisUrin
.query
- anyQuery
to use in thisUrin
.fragment
- anyFragment
to use in thisUrin
.- Returns:
- a
Urin
with the givenScheme
,Authority
,AbsolutePath
,Query
, andFragment
.
-
parseUrin
public final Urin<SEGMENT,QUERY,FRAGMENT> parseUrin(java.lang.String uriString) throws ParseException
Parses the givenString
as a URI.- Parameters:
uriString
- aString
that represents a URI.- Returns:
- a
Urin
representing the URI represented by the givenString
. - Throws:
ParseException
- if the givenString
is not a valid URI.
-
parseUrin
public final Urin<SEGMENT,QUERY,FRAGMENT> parseUrin(java.net.URI uri) throws ParseException
Parses the givenURI
to produce aUrin
.- Parameters:
uri
- aURI
to parse.- Returns:
- a
Urin
representing the RFC 3986 URI represented by the givenURI
. - Throws:
ParseException
- if the givenURI
is not a valid RFC 3986 URI.
-
parseUrinReference
public final UrinReference<SEGMENT,QUERY,FRAGMENT> parseUrinReference(java.lang.String uriReferenceString) throws ParseException
Parses the givenString
as a URI reference.- Parameters:
uriReferenceString
- aString
that represents a URI reference.- Returns:
- a
UrinReference
representing the URI reference represented by the givenString
. - Throws:
ParseException
- if the givenString
is not a valid URI reference.
-
parseUrinReference
public final UrinReference<SEGMENT,QUERY,FRAGMENT> parseUrinReference(java.net.URI uriReference) throws ParseException
Parses the givenURI
to produce aUrinReference
.- Parameters:
uriReference
- aURI
to parse.- Returns:
- a
UrinReference
representing the RFC 3986 URI reference represented by the givenURI
. - Throws:
ParseException
- if the givenURI
is not a valid RFC 3986 URI reference.
-
-