public class ResourceDefaultFetchConfiguration extends Object
maxage
, maxstale
and fetchhint
.
This class defines default values for fetch properties and is used in
DefaultFetchConfiguration
which is used to generate VoiceXML global
default properties for resource and document fetching.
To specify the fetch properties on a per-resource basis, specify a
FetchConfiguration
on the required resource, for example
AudioFile.setFetchConfiguration(FetchConfiguration)
.
DefaultFetchConfiguration
Modifier and Type | Class and Description |
---|---|
static class |
ResourceDefaultFetchConfiguration.ResourceType
Types of resources that can be fetched.
|
Constructor and Description |
---|
ResourceDefaultFetchConfiguration(ResourceDefaultFetchConfiguration.ResourceType resourceType) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
FetchHint |
getFetchHint() |
Duration |
getMaxAge() |
Duration |
getMaxStale() |
ResourceDefaultFetchConfiguration.ResourceType |
getResourceType() |
int |
hashCode() |
void |
setFetchHint(FetchHint fetchHint) |
void |
setMaxAge(Duration maxAge) |
void |
setMaxStale(Duration maxStale) |
public ResourceDefaultFetchConfiguration(ResourceDefaultFetchConfiguration.ResourceType resourceType)
public final ResourceDefaultFetchConfiguration.ResourceType getResourceType()
public final Duration getMaxStale()
public final void setMaxStale(Duration maxStale)
public final FetchHint getFetchHint()
public final void setFetchHint(FetchHint fetchHint)
Copyright © 2019 Nu Echo Inc..