org.scohen.juploadr.uploadapi.zooomr
Class ZooomrMethod

java.lang.Object
  extended byorg.scohen.juploadr.uploadapi.zooomr.ZooomrMethod
All Implemented Interfaces:
Action
Direct Known Subclasses:
AddPhoto, CreatePhotoSet, GetFrob, GetListUser, GetPhotosetList, GetToken, GetUploadStatus, GetUserPhotos, ZooomrAuth, ZooomrUpload

public abstract class ZooomrMethod
extends java.lang.Object
implements Action


Field Summary
protected  HttpClient client
           
 
Constructor Summary
ZooomrMethod()
           
 
Method Summary
protected  java.lang.String encode(java.lang.String toEnc)
           
 boolean execute()
           
 int getErrorCode()
           
 HttpMethodBase getMethod()
           
abstract  java.util.SortedMap getParams()
           
 java.lang.String getQueryString(boolean signed)
           
abstract  DefaultZooomrHandler getResponseHandler()
           
 java.lang.String getSignature()
           
abstract  boolean isAuthorized()
           
 boolean parseResponse(java.lang.String response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

client

protected HttpClient client
Constructor Detail

ZooomrMethod

public ZooomrMethod()
Method Detail

getResponseHandler

public abstract DefaultZooomrHandler getResponseHandler()

execute

public boolean execute()
                throws ProtocolException,
                       CommunicationException
Specified by:
execute in interface Action
Throws:
ProtocolException
CommunicationException

getErrorCode

public int getErrorCode()

parseResponse

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

getSignature

public final java.lang.String getSignature()

getQueryString

public java.lang.String getQueryString(boolean signed)

encode

protected java.lang.String encode(java.lang.String toEnc)

getParams

public abstract java.util.SortedMap getParams()

isAuthorized

public abstract boolean isAuthorized()

getMethod

public HttpMethodBase getMethod()