Class Extension


  • @Deprecated
    public class Extension
    extends Object
    Deprecated.
    since 12.0.0
    The class Extension is used to create , parse Extension object.
    • Constructor Detail

      • Extension

        public Extension​(List children)
                  throws FSMsgException
        Deprecated.
        Constructor to create Extension object.
        Parameters:
        children - a list of XML String object.
        Throws:
        FSMsgException - on error.
      • Extension

        public Extension​(Element element)
                  throws FSMsgException
        Deprecated.
        Constructor to create Extension object.
        Parameters:
        element - the Extension Element object.
        Throws:
        FSMsgException - on error.
      • Extension

        public Extension​(Map avpairs)
                  throws FSMsgException
        Deprecated.
        Constructor to create Extension object. Each attribute value pair will be converted to a XML string. The converted XML string has only one element. The local name of the element will be the key of the map entry and the value of the element will be the value of the map entry. Both key and value of the map entry should be a String object.
        Parameters:
        avpairs - attribute value pairs.
        Throws:
        FSMsgException - on error.
    • Method Detail

      • getChildren

        public List getChildren()
        Deprecated.
        Returns a list of XML String objects.
        Returns:
        a list of XML String objects.
        See Also:
        setChildren(List)
      • setChildren

        public void setChildren​(List children)
                         throws FSMsgException
        Deprecated.
        Sets a list of XML String object.
        Parameters:
        children - a list of XML String object.
        Throws:
        FSMsgException
        See Also:
        getChildren()
      • getAttributeMap

        public Map getAttributeMap()
        Deprecated.
      • setAttributeMap

        public void setAttributeMap​(Map avpairs)
                             throws FSMsgException
        Deprecated.
        Converts attribute value pairs to a list of XML String objects. Each attribute value pair will be converted to a XML string. The converted XML string has only one element. The local name of the element will be the key of the map entry and the value of the element will be the value of the map entry. Both key and value of the map entry should be a String object.
        Parameters:
        avpairs - attribute value pairs.
        Throws:
        FSMsgException - on error.
      • getMinorVersion

        public int getMinorVersion()
        Deprecated.
        Returns the MinorVersion.
        Returns:
        the MinorVersion.
        See Also:
        setMinorVersion(int)
      • setMinorVersion

        public void setMinorVersion​(int minorVersion)
        Deprecated.
        Sets the MinorVersion.
        Parameters:
        minorVersion - the MinorVersion.
        See Also:
        getMinorVersion()
      • toXMLString

        public String toXMLString()
                           throws FSMsgException
        Deprecated.
        Returns a String representation of the Extension element.
        Returns:
        a string containing the valid XML for this element
        Throws:
        FSMsgException - if there is an error converting this object to a string.
      • toXMLString

        public String toXMLString​(boolean includeNS,
                                  boolean declareNS)
                           throws FSMsgException
        Deprecated.
        Creates a String representation of the Extension element.
        Parameters:
        includeNS - : Determines whether or not the namespace qualifier is prepended to the Element when converted
        declareNS - : Determines whether or not the namespace is declared within the Element.
        Returns:
        string containing the valid XML for this element.
        Throws:
        FSMsgException - if there is an error.
      • parseURLEncodedRequest

        public static Extension parseURLEncodedRequest​(jakarta.servlet.http.HttpServletRequest request,
                                                       String prefix,
                                                       int minorVersion)
                                                throws FSMsgException
        Deprecated.
        Returns Extension object. The object is creating by parsing the HttpServletRequest object.
        Parameters:
        request - the HttpServletRequest object.
        prefix - the string that is prepended to the key of query string.
        minorVersion - the MinorVersion.
        Returns:
        object.
        Throws:
        FSMsgException - if there is an error creating Extension object.
      • toURLEncodedQueryString

        public String toURLEncodedQueryString​(String prefix)
                                       throws FSMsgException
        Deprecated.
        Returns an URL Encoded String.
        Parameters:
        prefix - the string that will be prepended to the key of query string.
        Returns:
        a url encoded query string.
        Throws:
        FSMsgException - if there is an error.