Package org.forgerock.openig.resolver
Class RequestResolver
- java.lang.Object
-
- org.forgerock.openig.resolver.BeanResolver
-
- org.forgerock.openig.resolver.RequestResolver
-
public class RequestResolver extends BeanResolver
ResolvesRequest
objects.
-
-
Field Summary
-
Fields inherited from interface org.forgerock.openig.resolver.Resolver
UNRESOLVED
-
-
Constructor Summary
Constructors Constructor Description RequestResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>
getKey()
Do not forget to override this method in sub-classes.Object
put(Object object, Object element, Object value)
Attempts to set the value of an element of an object.-
Methods inherited from class org.forgerock.openig.resolver.BeanResolver
get
-
-
-
-
Method Detail
-
getKey
public Class<?> getKey()
Description copied from class:BeanResolver
Do not forget to override this method in sub-classes.
-
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. Theobject
argument references an object for which a named or indexed element is to be set. Theelement
argument specifies which element value is to be set. Thevalue
argument specifies the value to be set.The
element
argument can be either aString
or anInteger
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 interfaceResolver
- Overrides:
put
in classBeanResolver
- 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, orResolver.UNRESOLVED
if it cannot be resolved.
-
-