org.jvoicexml
Class DocumentDescriptor

java.lang.Object
  extended by org.jvoicexml.DocumentDescriptor

public final class DocumentDescriptor
extends Object

Attributes describing a VoiceXML document to retrieve from the DocumentServer.

Since:
0.7
Version:
$Revision: 2509 $
Author:
Dirk Schnelle-Walka

Constructor Summary
DocumentDescriptor(URI documentUri)
          Constructs a new object with the request method set to RequestMethod.GET.
DocumentDescriptor(URI documentUri, RequestMethod requestMethod)
          Constructs a new object.
DocumentDescriptor(URI documentUri, RequestMethod requestMethod, boolean force)
          Constructs a new object.
 
Method Summary
 void addParameter(String name, Object value)
          Adds the given parameter to the list of known parameters.
 FetchAttributes getAttributes()
          Retrieve the fetch attributes.
 RequestMethod getMethod()
          Retrieves the request method.
 Map<String,Object> getParameters()
          Retrieves the known parameter.
 URI getUri()
          Retrieves the URI of the document to fetch.
 boolean isForceLoad()
          Checks if the document has to be retrieved although the document is in the cache.
 void setAttributes(FetchAttributes value)
          Sets the fetch attributes.
 void setURI(URI value)
          Sets the URI of the document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentDescriptor

public DocumentDescriptor(URI documentUri)
Constructs a new object with the request method set to RequestMethod.GET.

Parameters:
documentUri - the URI of the document.

DocumentDescriptor

public DocumentDescriptor(URI documentUri,
                          RequestMethod requestMethod)
Constructs a new object.

Parameters:
documentUri - the URI of the document.
requestMethod - the request method.

DocumentDescriptor

public DocumentDescriptor(URI documentUri,
                          RequestMethod requestMethod,
                          boolean force)
Constructs a new object.

Parameters:
documentUri - the URI of the document.
requestMethod - the request method.
force - true if the document must be loaded
Method Detail

setURI

public void setURI(URI value)
Sets the URI of the document.

Parameters:
value - URI of the document.

getUri

public URI getUri()
Retrieves the URI of the document to fetch.

Returns:
URI of the document.

isForceLoad

public boolean isForceLoad()
Checks if the document has to be retrieved although the document is in the cache.

Returns:
true if the document must be retrieved.
Since:
0.7.5

getMethod

public RequestMethod getMethod()
Retrieves the request method.

Returns:
the request method.

getAttributes

public FetchAttributes getAttributes()
Retrieve the fetch attributes.

Returns:
the attributes

setAttributes

public void setAttributes(FetchAttributes value)
Sets the fetch attributes.

Parameters:
value - the attributes to set

addParameter

public void addParameter(String name,
                         Object value)
Adds the given parameter to the list of known parameters.

Parameters:
name - name of the parameter
value - value of the parameter

getParameters

public Map<String,Object> getParameters()
Retrieves the known parameter.

Returns:
known parameters


Copyright © 2005-2010JVoiceXML group.