PayPalNotificationListener Class Reference

Collaboration diagram for PayPalNotificationListener:

Collaboration graph
[legend]

List of all members.

Classes

interface  Delegate
class  Observer

Public Member Functions

 PayPalNotificationListener ()

Static Public Member Functions

static Object delegate ()
static Observer observer ()
static void setDelegate (Object obj)

Static Public Attributes

static final String DeniedPayPalPaymentReceivedNotification = "DeniedPayPalPaymentReceivedNotification"
static final String FailedPayPalPaymentReceivedNotification = "FailedPayPalPaymentReceivedNotification"
static final String InvalidPayPalPaymentReceivedNotification = "InvalidPayPalPaymentReceivedNotification"
static final String PendingPayPalPaymentReceivedNotification = "PendingPayPalPaymentReceivedNotification"
static final String ValidPayPalPaymentReceivedNotification = "ValidPayPalPaymentReceivedNotification"

Static Protected Member Functions

static Object defaultDelegate ()

Static Private Attributes

static Object _defaultDelegate
static volatile Object _delegate
static Observer _observer


Detailed Description

The PayPalNotificationListener class is a receiver for notifications from PayPalAction's ipnAction method, which broadcasts notifications of different events having to do with "Instant Payment Notification" transaction notifications from PayPal. The observer gets registered to receive notifications, and the Delegate interface defines what it can do with the notifications. If a delegate is registered and implements some subset of the methods defined in the PayPalNotificationListener.Delegate interface, PayPalNotificationListener invokes the appropriate method on the delegate object.

Constructor & Destructor Documentation

Constructor.


Member Function Documentation

static Object defaultDelegate (  )  [static, protected]

Method to return the default delegate object. Creates a new Object as the delegate if it's not assigned.

Returns:
Object

static Object delegate (  )  [static]

Method to return the assigned delegate object. If one is not assigned, it returns the defaultDelegate object.

Returns:
Object that is assigned as the class' delegate.

static Observer observer (  )  [static]

Method to return the observer object. If one is not assigned, it instantiates and returns a new Observer.

Returns:
Observer

static void setDelegate ( Object  obj  )  [static]

Method to assign the class's delegate object. Throws an IllegalArgumentException if it receives a null object to assign as the delegate.

Parameters:
obj Object


Member Data Documentation

Object _defaultDelegate [static, private]

Private ivar for the default delegate object.

volatile Object _delegate [static, private]

Private ivar for the assigned delegate Object.

Observer _observer [static, private]

Private ivar for the Observer object.

final String DeniedPayPalPaymentReceivedNotification = "DeniedPayPalPaymentReceivedNotification" [static]

Notification name when IPN returns DENIED result.

final String FailedPayPalPaymentReceivedNotification = "FailedPayPalPaymentReceivedNotification" [static]

Notification name when IPN returns FAILED result.

final String InvalidPayPalPaymentReceivedNotification = "InvalidPayPalPaymentReceivedNotification" [static]

Notification name when IPN returns INVALID result.

final String PendingPayPalPaymentReceivedNotification = "PendingPayPalPaymentReceivedNotification" [static]

Notification name when IPN returns PENDING result.

final String ValidPayPalPaymentReceivedNotification = "ValidPayPalPaymentReceivedNotification" [static]

Notification name when IPN returns VALID result.


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:37 2012 for Project Wonder by  doxygen 1.5.8