org.scohen.juploadr.uploadapi.flickrrest.authentication
Class FlickrAuth
java.lang.Object
org.scohen.juploadr.uploadapi.flickrrest.FlickrMethod
org.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
|
Constructor Summary |
FlickrAuth(java.lang.String username,
java.lang.String password,
HttpClient client)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FlickrAuth
public FlickrAuth(java.lang.String username,
java.lang.String password,
HttpClient client)
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