Project Wonder 2.0

er.wopaypal
Class PayPalNotificationListener.Observer

java.lang.Object
  extended byer.wopaypal.PayPalNotificationListener.Observer
Enclosing class:
PayPalNotificationListener

public static class PayPalNotificationListener.Observer
extends Object

The Observer is the object which is registered (in WOPayPal) to listen for the NSNotifications broadcast by the PayPalAction's ipnAction method. When its methods receives a notification, they call handleNotification, passing the notification name and the Notification itself as the parameter to that method call.


Constructor Summary
PayPalNotificationListener.Observer()
           
 
Method Summary
 void handleDeniedPaymentNotification(NSNotification n)
          Method invoked by the NSNotificationCenter when it receives a DENIED notification from PayPalAction
 void handleFailedPaymentNotification(NSNotification n)
          Method invoked by the NSNotificationCenter when it receives a FAILED notification from PayPalAction
 void handleInvalidPaymentNotification(NSNotification n)
          Method invoked by the NSNotificationCenter when it receives a INVALID notification from PayPalAction
 void handleNotification(String targetMethodName, NSNotification n)
          handleNotification checks to see if the delegate object can perform the method name passed in as the targetMethodName parameter.
 void handlePendingPaymentNotification(NSNotification n)
          Method invoked by the NSNotificationCenter when it receives a PENDING notification from PayPalAction
 void handleValidPaymentNotification(NSNotification n)
          Method invoked by the NSNotificationCenter when it receives a VALID notification from PayPalAction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PayPalNotificationListener.Observer

public PayPalNotificationListener.Observer()
Method Detail

handleDeniedPaymentNotification

public void handleDeniedPaymentNotification(NSNotification n)
Method invoked by the NSNotificationCenter when it receives a DENIED notification from PayPalAction

Parameters:
n - NSNotification

handleFailedPaymentNotification

public void handleFailedPaymentNotification(NSNotification n)
Method invoked by the NSNotificationCenter when it receives a FAILED notification from PayPalAction

Parameters:
n - NSNotification

handleInvalidPaymentNotification

public void handleInvalidPaymentNotification(NSNotification n)
Method invoked by the NSNotificationCenter when it receives a INVALID notification from PayPalAction

Parameters:
n - NSNotification

handlePendingPaymentNotification

public void handlePendingPaymentNotification(NSNotification n)
Method invoked by the NSNotificationCenter when it receives a PENDING notification from PayPalAction

Parameters:
n - NSNotification

handleValidPaymentNotification

public void handleValidPaymentNotification(NSNotification n)
Method invoked by the NSNotificationCenter when it receives a VALID notification from PayPalAction

Parameters:
n - NSNotification

handleNotification

public void handleNotification(String targetMethodName,
                               NSNotification n)
handleNotification checks to see if the delegate object can perform the method name passed in as the targetMethodName parameter. If it can, it tries to invoke that method, passing the notification's object (a WORequest) as the parameter.

Parameters:
targetMethodName - String
n - NSNotification

Last updated: Do, Dez 9, 2004 • 12:46 PM CET

Copyright © 2002 – 2004 Project Wonder.