public class Dsmlv2Container extends Object implements Container
Constructor and Description |
---|
Dsmlv2Container(LdapApiService codec)
Creates a new LdapMessageContainer object.
|
Modifier and Type | Method and Description |
---|---|
BatchRequestDsml |
getBatchRequest()
Gets the DSML Batch Request
|
BatchResponseDsml |
getBatchResponse()
Gets the DSML Batch Response
|
AbstractGrammar |
getGrammar()
Gets the grammar
|
LdapApiService |
getLdapCodecService()
Gets the
LdapApiService associated with this Container. |
org.xmlpull.v1.XmlPullParser |
getParser()
Gets the parser
|
Enum<Dsmlv2StatesEnum> |
getState()
Get the current grammar state
|
Enum<Dsmlv2StatesEnum>[] |
getStates()
Get the states for this container's grammars
|
Enum<Dsmlv2StatesEnum> |
getTransition()
Get the transition
|
GrammarTransition |
getTransition(Enum<Dsmlv2StatesEnum> currentState,
Tag currentTag)
Get the transition associated with the state and tag
|
void |
setBatchRequest(BatchRequestDsml batchRequest)
Sets the DSML Batch Request
|
void |
setBatchResponse(BatchResponseDsml batchResponse)
Sets the DSML Batch Request
|
void |
setGrammar(AbstractGrammar grammar)
Sets the Grammar
|
void |
setParser(org.xmlpull.v1.XmlPullParser parser)
Sets the parser
|
void |
setState(Enum<Dsmlv2StatesEnum> state)
Set the new current state
|
void |
setTransition(Enum<Dsmlv2StatesEnum> transition)
Update the transition from a state to another
|
public Dsmlv2Container(LdapApiService codec)
codec
- the Codec used to encode/decode the messagespublic LdapApiService getLdapCodecService()
LdapApiService
associated with this Container.public BatchRequestDsml getBatchRequest()
public void setBatchRequest(BatchRequestDsml batchRequest)
batchRequest
- the Batch Request to setpublic BatchResponseDsml getBatchResponse()
public void setBatchResponse(BatchResponseDsml batchResponse)
batchResponse
- the Batch Response to setpublic org.xmlpull.v1.XmlPullParser getParser()
public void setParser(org.xmlpull.v1.XmlPullParser parser)
parser
- the parser to setpublic Enum<Dsmlv2StatesEnum> getState()
public void setState(Enum<Dsmlv2StatesEnum> state)
public Enum<Dsmlv2StatesEnum> getTransition()
getTransition
in interface Container
public void setTransition(Enum<Dsmlv2StatesEnum> transition)
setTransition
in interface Container
transition
- the transition to setpublic Enum<Dsmlv2StatesEnum>[] getStates()
public AbstractGrammar getGrammar()
public void setGrammar(AbstractGrammar grammar)
grammar
- the grammar to setpublic GrammarTransition getTransition(Enum<Dsmlv2StatesEnum> currentState, Tag currentTag)
currentState
- the current statecurrentTag
- the current tagCopyright © 2003–2023 The Apache Software Foundation. All rights reserved.