Package ch.tocco.nice2.dms.impl.uri
Class AbstractUri<T extends NiceUri>
java.lang.Object
ch.tocco.nice2.dms.impl.uri.AbstractUri<T>
- All Implemented Interfaces:
NiceUri<T>
- Direct Known Subclasses:
AdminUriImpl
,EntityUriImpl
,PublicUriImpl
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkMatches
(String stringToCheck, String pattern) Checks whether a string matches a regex pattern and throws anIllegalArgumentException
if it doesn't.toURI()
Get the URI asURI
.protected static URI
withFragment
(URI uri, String fragment) protected static URI
protected static URI
withQueryAndFragment
(URI uri, String query, String fragment) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.dms.api.uri.NiceUri
withFragment, withQuery, withQueryAndFragment
-
Field Details
-
uri
-
-
Constructor Details
-
AbstractUri
-
-
Method Details
-
toURI
Description copied from interface:NiceUri
Get the URI asURI
. -
checkMatches
Checks whether a string matches a regex pattern and throws anIllegalArgumentException
if it doesn't.- Parameters:
stringToCheck
- the string to check.pattern
- the pattern.
-
withQuery
-
withFragment
-
withQueryAndFragment
-