at.gv.egovernment.moa.id.auth.parser

Class ExtendedInfoboxReadResponseParser

    • Method Detail

      • parseInfoboxReadResponse

        public static List parseInfoboxReadResponse(String infoboxReadResponse,
                                    String infoboxName)
                                             throws ParseException
        Parses and unmarshales the given infoboxReadResponse to a list of InfoboxToken objects. The method parses the given infoboxReadResponse
        Parameters:
        infoboxReadResponse - The infobox read response to be unmarshaled.
        infoboxName - The name of the infobox the reponse corresponds to.
        Returns:
        A list of InfoboxToken objects. Maybe empty.
        Throws:
        ParseException - If an error occurs on parsing and unmarshaling the response.
      • getTokenFromXMLOrBase64Content

        public static List getTokenFromXMLOrBase64Content(Element contentParent,
                                          String infoboxName,
                                          String key,
                                          boolean primary)
                                                   throws ParseException
        Unmarshales the <XMLContent> or <Base64Content> child of the given element to a list of infobox token.
        Parameters:
        contentParent - The elment including the <XMLContent> or <Base64Content> child to unmarshal the infobox token from.
        infoboxName - The name of the infobox.
        key - The key of an AssocArrayData-Pair. Maybe null.
        primary - Specifies whether this token is the first (e.g. in an AssocArrayData) token.
        Returns:
        A infobox token list.
        Throws:
        ParseException - If the contentParent has no <XMLContent> or <Base64Content> child or the <XMLContent> is empty.

Copyright © 2016. All Rights Reserved.