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 Details

    • getProperty

      Object getProperty(QName name)
    • 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 property
      value - - the new typed value
      Throws:
      com.bradmcevoy.property.PropertySource.PropertySetException - - if the input is invalid
      io.milton.http.exceptions.NotAuthorizedException - - if the current user is not allowed to set this value
      PropertySource.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
    • getAllPropertyNames

      List<QName> getAllPropertyNames()