uploader.mechanisms
Class SmugMugUploadMechanism.MyHTTPUploadListener

java.lang.Object
  extended by uploader.mechanisms.SmugMugUploadMechanism.MyHTTPUploadListener
All Implemented Interfaces:
HTTPUploadListener
Enclosing class:
SmugMugUploadMechanism

private class SmugMugUploadMechanism.MyHTTPUploadListener
extends java.lang.Object
implements HTTPUploadListener

Checks the response to an upload and fires the SmugMug event listener (if any) on success. Returns an error message if the response indicates that the upload failed.


Constructor Summary
private SmugMugUploadMechanism.MyHTTPUploadListener()
           
 
Method Summary
 java.lang.String responseReceived(HTTPUploadMechanism u, int code, java.lang.String resp)
          Called when a response has been received.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmugMugUploadMechanism.MyHTTPUploadListener

private SmugMugUploadMechanism.MyHTTPUploadListener()
Method Detail

responseReceived

public java.lang.String responseReceived(HTTPUploadMechanism u,
                                         int code,
                                         java.lang.String resp)
Description copied from interface: HTTPUploadListener
Called when a response has been received. This is only called if code indicates a successful response (i.e., 2xx series code).

Specified by:
responseReceived in interface HTTPUploadListener
Returns:
null if the upload succeeded, a string describing why it failed otherwise