public class ExtendedInfoboxReadResponseParser extends Object
InfoboxReadResponse.
This parser is especially used for parsing additional responses (additional to that
one containing the IdentityLink retuned from the BKU as an answer of
a <PushInfobox> request.| Modifier and Type | Method and Description |
|---|---|
static List |
getTokenFromXMLOrBase64Content(Element contentParent,
String infoboxName,
String key,
boolean primary)
Unmarshales the
<XMLContent> or
<Base64Content> child of the given element to a list of
infobox token. |
static List |
parseInfoboxReadResponse(String infoboxReadResponse,
String infoboxName)
Parses and unmarshales the given
infoboxReadResponse to a list of
InfoboxToken objects. |
public static List parseInfoboxReadResponse(String infoboxReadResponse, String infoboxName) throws ParseException
infoboxReadResponse to a list of
InfoboxToken objects.
The method parses the given infoboxReadResponseinfoboxReadResponse - The infobox read response to be unmarshaled.infoboxName - The name of the infobox the reponse corresponds to.InfoboxToken
objects. Maybe empty.ParseException - If an error occurs on parsing and unmarshaling the response.public static List getTokenFromXMLOrBase64Content(Element contentParent, String infoboxName, String key, boolean primary) throws ParseException
<XMLContent> or
<Base64Content> child of the given element to a list of
infobox token.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.ParseException - If the contentParent has no <XMLContent>
or <Base64Content> child or the
<XMLContent> is empty.Copyright © 2016. All Rights Reserved.