Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-7066

[Java Broker] Add a validValuePattern attribute to ManagedAttribute

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • qpid-java-6.1
    • Broker-J
    • None

    Description

      Currently there is no way to convey through meta data that an attribute value must conform to a particular pattern (for instance in the case of a hostname or ip address).

      Where a managed attribute is of type String, the regex can be used both client and server side to validate the input. Client side validation will also always need to take into account that it is always legal to insert a context variable reference into the value... and where such a context injection is present is is effectively impossible to correctly validate on the client side.

      For attributes which are of type Collection<String>, List<String> or Set<String> the validValuePattern can be taken to be referring to the validation applied to each element of the collection.

      The annotation information should also be conveyed through the metadataservlet

      Attachments

        Activity

          People

            rgodfrey Robert Godfrey
            rgodfrey Robert Godfrey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: