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 ofSegmentused by paths of this URI.QUERY- The type ofQueryused by this URI.FRAGMENT- The type ofFragmentused 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 givenUrinReferencerelative to this.abstract Urin<SEGMENT,QUERY,FRAGMENT>withPath(AbsolutePath<SEGMENT> path)Returns a copy of thisUrinReferencewith 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:UrinReferenceReturns a copy of thisUrinReferencewith the path replaced with the given path.
-
resolve
public abstract Urin<SEGMENT,QUERY,FRAGMENT> resolve(UrinReference<SEGMENT,QUERY,FRAGMENT> urinReference)
Resolves the givenUrinReferencerelative to this.- Parameters:
urinReference- aUrinReferenceto resolve relative to this.- Returns:
- the
Urinresulting from resolving the giveUrinReferencerelative to this. - See Also:
- RFC 3986 - Reference Resolution
-
-