Class AbstractUriTarget
java.lang.Object
ch.tocco.nice2.netui.spi.bind.util.AbstractUriTarget
- All Implemented Interfaces:
UriTarget
- Direct Known Subclasses:
AbstractBeanUriTarget
,AbstractPersistUriTarget
,RootTarget
,SingleTarget
,SingleTarget.RelationTarget
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.netui.api.bind.UriTarget
UriTarget.Method
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractUriTarget
(URI uri, Class<?> type) protected
AbstractUriTarget
(URI uri, Class<?> type, Set<UriTarget.Method> methods) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkMethod
(UriTarget.Method method) protected Object
checkNotNull
(@Nullable Object object) protected void
void
delete()
protected UnresolvableUriException
finalUri()
static UnresolvableUriException
get()
Class
<?> getType()
getUri()
boolean
This method is used by internal URI cache to determine if an item retrieved from cache is still valid.void
protected static URI
stripFragment
(URI uri) toString()
protected UriStoreException
unsupportedType
(Object object) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.netui.api.bind.UriTarget
getLastModTime, getLastModUser, getVersion, isPersistent
-
Field Details
-
uri
-
type
-
methods
-
-
Constructor Details
-
AbstractUriTarget
-
AbstractUriTarget
-
-
Method Details
-
toString
-
stripFragment
-
getUri
-
getMethods
- Specified by:
getMethods
in interfaceUriTarget
-
getType
-
get
- Specified by:
get
in interfaceUriTarget
- Throws:
UriStoreException
-
put
- Specified by:
put
in interfaceUriTarget
- Throws:
UriStoreException
-
delete
- Specified by:
delete
in interfaceUriTarget
- Throws:
UriStoreException
-
isInvalid
public boolean isInvalid()Description copied from interface:UriTarget
This method is used by internal URI cache to determine if an item retrieved from cache is still valid. If the target is invalid, the URI will be resolved again. -
finalUri
-
finalUri
-
checkMethod
- Throws:
UriStoreException
-
checkType
- Throws:
UriStoreException
-
checkNotNull
- Throws:
UriStoreException
-
unsupportedType
-