|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jvoicexml.documentserver.schemestrategy.builtin.BuiltinSchemeStrategy
public final class BuiltinSchemeStrategy
Schemestrategy for builtin grammars.
This class provides basic support for built grammars as specified at
ModeType and type and parameters as
specified in addGrammarCreator(GrammarCreator) or
setGrammarCreators(Collection).
| Field Summary | |
|---|---|
static String |
SCHEME_NAME
Scheme for which this scheme strategy is responsible. |
| Constructor Summary | |
|---|---|
BuiltinSchemeStrategy()
Constructs a new object. |
|
| Method Summary | |
|---|---|
void |
addGrammarCreator(org.jvoicexml.documentserver.schemestrategy.builtin.GrammarCreator creator)
Adds the specified grammar creator to the list of known grammar creators. |
InputStream |
getInputStream(String sessionId,
URI uri,
RequestMethod method,
long timeout,
Map<String,Object> parameters)
Opens the external URI and returns an InputStream to the
referenced object. |
String |
getScheme()
Get the scheme that is handled by this strategy. |
void |
sessionClosed(String sessionId)
Notification that the given session is closed. |
void |
setGrammarCreators(Collection<org.jvoicexml.documentserver.schemestrategy.builtin.GrammarCreator> col)
Adds the specified grammar creators to the list of known grammar creators. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String SCHEME_NAME
| Constructor Detail |
|---|
public BuiltinSchemeStrategy()
| Method Detail |
|---|
public void setGrammarCreators(Collection<org.jvoicexml.documentserver.schemestrategy.builtin.GrammarCreator> col)
col - the creators to addpublic void addGrammarCreator(org.jvoicexml.documentserver.schemestrategy.builtin.GrammarCreator creator)
creator - the creator to add
public InputStream getInputStream(String sessionId,
URI uri,
RequestMethod method,
long timeout,
Map<String,Object> parameters)
throws BadFetchError,
UnsupportedElementError,
IOException
InputStream to the
referenced object.
getInputStream in interface SchemeStrategysessionId - the Id of the current JVoiceXML session.uri - the URI of the object to open.method - type of the request methodtimeout - fetch timeout in msec to wait for the content to be returned
before throwing an error.badfetch event.parameters - request parameters
InputStream to the referenced object.
BadFetchError - error opening the document or unsupported method type
UnsupportedElementError - the requested element is not supported
IOException - error creating the input streampublic String getScheme()
getScheme in interface SchemeStrategypublic void sessionClosed(String sessionId)
sessionClosed in interface SchemeStrategysessionId - the Id of the current JVoiceXML session.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||