Hi Lars, > I think Method should not be derived from Metadata because it doen't > adds a value IMO. > > To avoid confusion if the Method can be compared by identity or not, > we should convert Method (back?) to an Enum. Enums can always be > compared by identity, so it limits confusion if Method is comparable > by identity or not.
We predefined the standard HTTP and WebDAV methods, but nothing in REST or HTTP prevents the user from creating new ones if needed. If we think about the mapping of other protocols to the API which may also require new methods. If a user has to create a "QUERY" method for example, he could use the Method.valueOf() method, but would still need to compare it via "equals()" because another valid instance could have been created somewhere else in the code. Enums work fine only if the list of items is fully know at compil time, which unfortunately is not our case. Thanks, Jerome