|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.checkout.notification.CompositeNotificationParser
public class CompositeNotificationParser
Constructor Summary | |
---|---|
CompositeNotificationParser()
Default constructor |
Method Summary | |
---|---|
CheckoutNotification |
parse(org.w3c.dom.Document xmlDocument)
Parses the xmlDocment and returns a CheckoutNotification object of the specified type. |
CheckoutNotification |
parse(java.lang.String xmlString)
Parses an xml string and returns a CheckoutNotification object of the given type. |
void |
register(java.lang.String notificationType,
NotificationParser parser)
Registers a NotificationParser with the associated notification type |
static void |
registerDefaultNotificationParsers(CompositeNotificationParser parser)
Registers the default notification parsers. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompositeNotificationParser()
Method Detail |
---|
public CheckoutNotification parse(java.lang.String xmlString) throws CheckoutParserException
xmlString
-
com.google.checkout.notification.UnknownNotificationException
- if the
notification type was not recognized
com.google.checkout.notification.CheckoutException
- if
there was an error parsing the request string
CheckoutParserException
public CheckoutNotification parse(org.w3c.dom.Document xmlDocument) throws CheckoutParserException
parse
in interface NotificationParser
xmlDocument
-
CheckoutParserException
public void register(java.lang.String notificationType, NotificationParser parser)
notificationType
- The notification typeparser
- The parser associated with the notification typepublic static void registerDefaultNotificationParsers(CompositeNotificationParser parser)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |