Module net.sourceforge.urin
Package net.sourceforge.urin
Class Urin<SEGMENT,QUERY extends Query<?>,FRAGMENT extends Fragment<?>>
- java.lang.Object
-
- net.sourceforge.urin.UrinReference<SEGMENT,QUERY,FRAGMENT>
-
- net.sourceforge.urin.Urin<SEGMENT,QUERY,FRAGMENT>
-
- Type Parameters:
SEGMENT
- The type ofSegment
used by paths of this URI.QUERY
- The type ofQuery
used by this URI.FRAGMENT
- The type ofFragment
used by this URI.
public abstract class Urin<SEGMENT,QUERY extends Query<?>,FRAGMENT extends Fragment<?>> extends UrinReference<SEGMENT,QUERY,FRAGMENT>
A URI.RFC 3986 specifies that a URI is made up of mandatory scheme and hierarchical part components, and optional query and fragment components.
Immutable and thread safe.
- See Also:
- RFC 3986 - Syntax Components
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract Urin<SEGMENT,QUERY,FRAGMENT>
resolve(UrinReference<SEGMENT,QUERY,FRAGMENT> urinReference)
Resolves the givenUrinReference
relative to this.abstract Urin<SEGMENT,QUERY,FRAGMENT>
withPath(AbsolutePath<SEGMENT> path)
Returns a copy of thisUrinReference
with the path replaced with the given path.-
Methods inherited from class net.sourceforge.urin.UrinReference
asString, asUri, authority, fragment, hasAuthority, hasFragment, hasQuery, path, query, toString
-
-
-
-
Method Detail
-
withPath
public abstract Urin<SEGMENT,QUERY,FRAGMENT> withPath(AbsolutePath<SEGMENT> path)
Description copied from class:UrinReference
Returns a copy of thisUrinReference
with the path replaced with the given path.
-
resolve
public abstract Urin<SEGMENT,QUERY,FRAGMENT> resolve(UrinReference<SEGMENT,QUERY,FRAGMENT> urinReference)
Resolves the givenUrinReference
relative to this.- Parameters:
urinReference
- aUrinReference
to resolve relative to this.- Returns:
- the
Urin
resulting from resolving the giveUrinReference
relative to this. - See Also:
- RFC 3986 - Reference Resolution
-
-