|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jvoicexml.documentserver.FetchAttributes
public final class FetchAttributes
A VoiceXML interpreter context needs to fetch VoiceXML documents, and other resources, such as audio files, grammars, scripts, and objects. Each fetch of the content associated with a URI is governed by one of the attributes in this container.
Copyright © 2005 JVoiceXML group - http://jvoicexml.sourceforge.net/
| Field Summary | |
|---|---|
static String |
HINT_PREFETCH
Prefetch hint that indicates a file may be downloaded when the page is loaded. |
static String |
HINT_SAFE
Prefetch hint that indicates a file that should only be downloaded when actually needed. |
| Constructor Summary | |
|---|---|
FetchAttributes()
Construct a new object. |
|
| Method Summary | |
|---|---|
URI |
getFetchAudio()
Retrieve the fetchAudio attribute. |
String |
getFetchHint()
Set the fetchhint attribute. |
long |
getFetchTimeout()
Set the fetchtimeout attribute. |
long |
getMaxage()
Set the maxage attribute. |
long |
getMaxstale()
Set the maxstale attribute. |
void |
setFetchAudio(URI uri)
Set the fetchAudio attribute. |
void |
setFetchHint(String hint)
Retrieve the fetchhint attribute. |
void |
setFetchTimeout(long seconds)
Retrieve the fetchtimeout attribute. |
void |
setMaxage(long seconds)
Retrieve the maxage attribute. |
void |
setMaxstale(long seconds)
Retrieve the maxstale attribute. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String HINT_PREFETCH
fetchHint,
Constant Field Valuespublic static final String HINT_SAFE
fetchHint,
Constant Field Values| Constructor Detail |
|---|
public FetchAttributes()
| Method Detail |
|---|
public void setFetchTimeout(long seconds)
fetchtimeout attribute.
seconds - Number of seconds to wait.fetchTimeoutpublic long getFetchTimeout()
fetchtimeout attribute.
fetchTimeoutpublic void setFetchHint(String hint)
fetchhint attribute.
hint - Hint when the interpreter context should retrieve content
from the server.fetchHintpublic String getFetchHint()
fetchhint attribute.
fetchHintpublic void setMaxage(long seconds)
maxage attribute.
seconds - Maximum age of documents in seconds.maxagepublic long getMaxage()
maxage attribute.
maxagepublic void setMaxstale(long seconds)
maxstale attribute.
seconds - Number of seconds to use content that has exceeded
its expiration time.maxstalepublic long getMaxstale()
maxstale attribute.
maxstalepublic void setFetchAudio(URI uri)
fetchAudio attribute.
uri - URI of the audio clip to play while the fetch is being done.fetchAudiopublic URI getFetchAudio()
fetchAudio attribute.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||