org.scohen.juploadr.uploadapi.flickrrest.authentication
Class FlickrAuth

java.lang.Object
  extended byorg.scohen.juploadr.uploadapi.flickrrest.FlickrMethod
      extended byorg.scohen.juploadr.uploadapi.flickrrest.authentication.FlickrAuth
All Implemented Interfaces:
Action

public class FlickrAuth
extends FlickrMethod

Author:
steve TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Field Summary
 
Fields inherited from class org.scohen.juploadr.uploadapi.flickrrest.FlickrMethod
client
 
Constructor Summary
FlickrAuth(java.lang.String username, java.lang.String password, HttpClient client)
           
 
Method Summary
 long getCurrentUploadUsed()
           
 java.lang.String getFailureReason()
           
 HttpMethodBase getMethod()
           
 long getMonthlyUploadLimit()
           
 java.util.SortedMap getParams()
           
 java.lang.String getPassword()
           
 DefaultFlickrHandler getResponseHandler()
           
 java.lang.String getUsername()
           
 boolean isAuthorized()
           
 boolean isPro()
           
 boolean isSuccessful()
           
 boolean parseResponse(java.lang.String response)
           
 void setCurrentUploadUsed(long currentUploadUsed)
           
 void setFailureReason(java.lang.String failureReason)
           
 void setMonthlyUploadLimit(long monthlyUploadLimit)
           
 void setPassword(java.lang.String password)
           
 void setPro(boolean isPro)
           
 void setSuccessful(boolean succeeded)
           
 void setUsername(java.lang.String username)
           
 
Methods inherited from class org.scohen.juploadr.uploadapi.flickrrest.FlickrMethod
encode, execute, getErrorCode, getQueryString, getSignature
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlickrAuth

public FlickrAuth(java.lang.String username,
                  java.lang.String password,
                  HttpClient client)
Method Detail

parseResponse

public boolean parseResponse(java.lang.String response)
                      throws ProtocolException
Overrides:
parseResponse in class FlickrMethod
Returns:
Throws:
AuthException
ProtocolException

isPro

public boolean isPro()
Returns:
Returns the isPro.

setPro

public void setPro(boolean isPro)
Parameters:
isPro - The isPro to set.

getPassword

public java.lang.String getPassword()
Returns:
Returns the password.

setPassword

public void setPassword(java.lang.String password)
Parameters:
password - The password to set.

getUsername

public java.lang.String getUsername()
Returns:
Returns the username.

setUsername

public void setUsername(java.lang.String username)
Parameters:
username - The username to set.

getCurrentUploadUsed

public long getCurrentUploadUsed()
Returns:
Returns the currentUploadUsed.

setCurrentUploadUsed

public void setCurrentUploadUsed(long currentUploadUsed)
Parameters:
currentUploadUsed - The currentUploadUsed to set.

getMonthlyUploadLimit

public long getMonthlyUploadLimit()
Returns:
Returns the monthlyUploadLimit.

setMonthlyUploadLimit

public void setMonthlyUploadLimit(long monthlyUploadLimit)
Parameters:
monthlyUploadLimit - The monthlyUploadLimit to set.

getFailureReason

public java.lang.String getFailureReason()
Returns:
Returns the failureReason.

setFailureReason

public void setFailureReason(java.lang.String failureReason)
Parameters:
failureReason - The failureReason to set.

isSuccessful

public boolean isSuccessful()
Returns:
Returns the succeeded.

setSuccessful

public void setSuccessful(boolean succeeded)
Parameters:
succeeded - The succeeded to set.

getResponseHandler

public DefaultFlickrHandler getResponseHandler()
Specified by:
getResponseHandler in class FlickrMethod

getMethod

public HttpMethodBase getMethod()
Overrides:
getMethod in class FlickrMethod

getParams

public java.util.SortedMap getParams()
Specified by:
getParams in class FlickrMethod

isAuthorized

public boolean isAuthorized()
Specified by:
isAuthorized in class FlickrMethod