Class Dsmlv2Container

    • Constructor Detail

      • Dsmlv2Container

        public Dsmlv2Container​(LdapApiService codec)
        Creates a new LdapMessageContainer object.
        Parameters:
        codec - the Codec used to encode/decode the messages
    • Method Detail

      • getLdapCodecService

        public LdapApiService getLdapCodecService()
        Gets the LdapApiService associated with this Container.
        Returns:
        The codec used to encode/decode the messages
      • getBatchRequest

        public BatchRequestDsml getBatchRequest()
        Gets the DSML Batch Request
        Returns:
        Returns the Batch Request
      • setBatchRequest

        public void setBatchRequest​(BatchRequestDsml batchRequest)
        Sets the DSML Batch Request
        Parameters:
        batchRequest - the Batch Request to set
      • getBatchResponse

        public BatchResponseDsml getBatchResponse()
        Gets the DSML Batch Response
        Returns:
        Returns the Batch Response
      • setBatchResponse

        public void setBatchResponse​(BatchResponseDsml batchResponse)
        Sets the DSML Batch Request
        Parameters:
        batchResponse - the Batch Response to set
      • getParser

        public XmlPullParser getParser()
        Gets the parser
        Returns:
        the parser
      • setParser

        public void setParser​(XmlPullParser parser)
        Sets the parser
        Parameters:
        parser - the parser to set
      • setTransition

        public void setTransition​(Enum<Dsmlv2StatesEnum> transition)
        Update the transition from a state to another
        Specified by:
        setTransition in interface Container
        Parameters:
        transition - the transition to set
      • getGrammar

        public AbstractGrammar getGrammar()
        Gets the grammar
        Returns:
        the grammar
      • setGrammar

        public void setGrammar​(AbstractGrammar grammar)
        Sets the Grammar
        Parameters:
        grammar - the grammar to set
      • getTransition

        public GrammarTransition getTransition​(Enum<Dsmlv2StatesEnum> currentState,
                                               Tag currentTag)
        Get the transition associated with the state and tag
        Parameters:
        currentState - the current state
        currentTag - the current tag
        Returns:
        a valid transition if any, or null.