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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckMatches(String stringToCheck, String pattern) Checks whether a string matches a regex pattern and throws anIllegalArgumentExceptionif it doesn't.toURI()Get the URI asURI.protected static URIwithFragment(URI uri, String fragment) protected static URIprotected static URIwithQueryAndFragment(URI uri, String query, String fragment) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface NiceUri
withFragment, withQuery, withQueryAndFragment
-
Field Details
-
uri
-
-
Constructor Details
-
AbstractUri
-
-
Method Details
-
toURI
-
checkMatches
Checks whether a string matches a regex pattern and throws anIllegalArgumentExceptionif it doesn't.- Parameters:
stringToCheck- the string to check.pattern- the pattern.
-
withQuery
-
withFragment
-
withQueryAndFragment
-