Package io.milton.resource
Interface MultiNamespaceCustomPropertyResource
-
- All Superinterfaces:
Resource
public interface MultiNamespaceCustomPropertyResource extends Resource
A resource interface similar to CustomPropertyResource, except that it doesnt use accessor objects, and it supports multiple namespaces. Properties are requested with qualified names, QNames, which include both a namespace and a local name. To implement this you should decide on a namespace for your custom properties and then look for that component of the QName when implementing
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<QName>getAllPropertyNames()ObjectgetProperty(QName name)PropertySource.PropertyMetaDatagetPropertyMetaData(QName name)Get the metadata for the requested property, or return null if this implementation does not provide that property It is also legitimate to return PropertyMetaData.UNKNOWN for unsupported propertiesvoidsetProperty(QName name, Object value)Update the property with the given typed value.-
Methods inherited from interface io.milton.resource.Resource
authenticate, authorise, checkRedirect, getModifiedDate, getName, getRealm, getUniqueId
-
-
-
-
Method Detail
-
setProperty
void setProperty(QName name, Object value) throws PropertySource.PropertySetException, io.milton.http.exceptions.NotAuthorizedException
Update the property with the given typed value.- Parameters:
name- - the qualified name of the propertyvalue- - the new typed value- Throws:
com.bradmcevoy.property.PropertySource.PropertySetException- - if the input is invalidio.milton.http.exceptions.NotAuthorizedException- - if the current user is not allowed to set this valuePropertySource.PropertySetException
-
getPropertyMetaData
PropertySource.PropertyMetaData getPropertyMetaData(QName name)
Get the metadata for the requested property, or return null if this implementation does not provide that property It is also legitimate to return PropertyMetaData.UNKNOWN for unsupported properties
-
-