Class StatusImpl

  • All Implemented Interfaces:
    Status

    public class StatusImpl
    extends Object
    implements Status
    This class defines methods for Status element.
    • Constructor Detail

      • StatusImpl

        public StatusImpl()
        Constructs the Status Object.
      • StatusImpl

        public StatusImpl​(Element element)
                   throws SAML2Exception
        Constructs the Status Object.
        Parameters:
        element - the Document Element of Status object.
        Throws:
        SAML2Exception - if Status cannot be created.
      • StatusImpl

        public StatusImpl​(String xmlString)
                   throws SAML2Exception
        Constructs the Status Object.
        Parameters:
        xmlString - the XML String representation of this object.
        Throws:
        SAML2Exception - if Status cannot be created.
    • Method Detail

      • toXMLString

        public String toXMLString()
                           throws SAML2Exception
        Returns the Status in an XML document String format based on the Status schema described above.
        Specified by:
        toXMLString in interface Status
        Returns:
        An XML String representing the Status.
        Throws:
        SAML2Exception - if some error occurs during conversion to String.
      • toXMLString

        public String toXMLString​(boolean includeNSPrefix,
                                  boolean declareNS)
                           throws SAML2Exception
        Returns the Status in an XML document String format based on the Status schema described above.
        Specified by:
        toXMLString in interface Status
        Parameters:
        includeNSPrefix - 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:
        A XML String representing the Status.
        Throws:
        SAML2Exception - if some error occurs during conversion to String.
      • makeImmutable

        public void makeImmutable()
        Makes this object immutable.
        Specified by:
        makeImmutable in interface Status
      • isMutable

        public boolean isMutable()
        Returns value true if object is mutable.
        Specified by:
        isMutable in interface Status
        Returns:
        true if object is mutable.