Class RequestResolver

    • Constructor Detail

      • RequestResolver

        public RequestResolver()
    • Method Detail

      • put

        public Object put​(Object object,
                          Object element,
                          Object value)
        Description copied from interface: Resolver
        Attempts to set the value of an element of an object. The object argument references an object for which a named or indexed element is to be set. The element argument specifies which element value is to be set. The value argument specifies the value to be set.

        The element argument can be either a String or an Integer object. A string represents a named element of an associative array; an integer represents the index of an ordered array.

        If the resolver cannot resolve the requested element or set its value, then Resolver.UNRESOLVED should be returned. This allows other resovlers of more generic classes or interfaces to potentially resolve the requested element.

        Specified by:
        put in interface Resolver
        Overrides:
        put in class BeanResolver
        Parameters:
        object - the object in which to resolve the specified element.
        element - the element within the specified object whose value is to be set.
        value - the value to set the element to.
        Returns:
        the previous value of the element, null if no previous value, or Resolver.UNRESOLVED if it cannot be resolved.