org.mule.module.apikit.uri
Class URIResolveResult

java.lang.Object
  extended by org.mule.module.apikit.uri.URIResolveResult
All Implemented Interfaces:
ResolvedVariables

public class URIResolveResult
extends Object
implements ResolvedVariables

Holds the results of a URI resolver.

Version:
5 February 2010
Author:
Christophe Lauret

Nested Class Summary
static class URIResolveResult.Status
          The possible status of a resolve result.
 
Constructor Summary
protected URIResolveResult(URIPattern pattern)
          Constructs an instance of this class with fields initialised to null.
 
Method Summary
 Object get(String name)
          Returns the object corresponding to the specified variable name.
 URIResolveResult.Status getStatus()
          Returns the status of this result.
 URIPattern getURIPattern()
          Returns the URI Pattern that was used to produce this result.
 Set<String> names()
          Returns the names of the variables which have been resolved.
protected  void put(String name, Object o)
          Puts the object corresponding to the specified variable name in the results.
protected  void setStatus(URIResolveResult.Status status)
          Sets the status of this result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URIResolveResult

protected URIResolveResult(URIPattern pattern)
Constructs an instance of this class with fields initialised to null.

Method Detail

names

public Set<String> names()
Returns the names of the variables which have been resolved.

Specified by:
names in interface ResolvedVariables
Returns:
The names of the variables which have been resolved.

get

public Object get(String name)
Returns the object corresponding to the specified variable name.

Specified by:
get in interface ResolvedVariables
Parameters:
name - The name of the variable.
Returns:
The object corresponding to the specified variable; may be null.

getStatus

public URIResolveResult.Status getStatus()
Returns the status of this result.

Returns:
The status of this result.

getURIPattern

public URIPattern getURIPattern()
Returns the URI Pattern that was used to produce this result.

Returns:
The URI Pattern that was used to produce this result.

put

protected void put(String name,
                   Object o)
Puts the object corresponding to the specified variable name in the results.

Parameters:
name - The name of the variable.
o - The corresponding object.

setStatus

protected void setStatus(URIResolveResult.Status status)
Sets the status of this result.

Parameters:
status - The status of the result.


Copyright © 2013. All rights reserved.