Module net.sourceforge.urin
Package net.sourceforge.urin
Class RelativeReference<SEGMENT,QUERY extends Query<?>,FRAGMENT extends Fragment<?>>
- java.lang.Object
-
- net.sourceforge.urin.UrinReference<SEGMENT,QUERY,FRAGMENT>
-
- net.sourceforge.urin.RelativeReference<SEGMENT,QUERY,FRAGMENT>
-
- Type Parameters:
SEGMENT
- The type ofSegment
used by paths of this relative reference.QUERY
- The type ofQuery
used by this relative reference.FRAGMENT
- The type ofFragment
used by this relative reference.
public abstract class RelativeReference<SEGMENT,QUERY extends Query<?>,FRAGMENT extends Fragment<?>> extends UrinReference<SEGMENT,QUERY,FRAGMENT>
A relative reference.A relative reference has a mandatory relative part component, that is made up of an optional authority, and a mandatory path, and optional query and fragment parts. The mandatory path may implicitly be the empty path.
- See Also:
- RFC 3986 - Relative Reference
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract RelativeReference<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 RelativeReference<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.
-
-