com.amazonaws.mturk.service.axis
Class AWSService

java.lang.Object
  extended by com.amazonaws.mturk.service.axis.AWSService
Direct Known Subclasses:
FilteredAWSService

public abstract class AWSService
extends java.lang.Object

The AWSService class contains request and response handlers that are common to all AWS products. Requests are signed using HMAC-SHA1 algorithm. Responses are screened for service errors. If there are service errors, then corresponding exceptions get created and thrown.


Field Summary
protected  ClientConfig config
           
protected static java.lang.String HTTP_HEADER_AMAZON_SOFTWARE
           
protected static java.util.Hashtable<java.lang.String,java.lang.String> httpHeaders
           
 
Constructor Summary
AWSService(ClientConfig config)
           
 
Method Summary
 Reply executeRequestMessage(Message m)
           
protected  java.lang.String getAWSAccessKeyId()
           
 ClientConfig getConfig()
           
protected abstract  java.lang.String getPackagePrefix()
           
protected abstract  java.lang.Object getPort()
           
protected abstract  java.lang.String getServiceName()
           
protected  HMACSigner getSigner()
           
 void setAccessKeyId(java.lang.String accessKeyId)
           
 void setSigner(java.lang.String secretAccessKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HTTP_HEADER_AMAZON_SOFTWARE

protected static java.lang.String HTTP_HEADER_AMAZON_SOFTWARE

httpHeaders

protected static java.util.Hashtable<java.lang.String,java.lang.String> httpHeaders

config

protected ClientConfig config
Constructor Detail

AWSService

public AWSService(ClientConfig config)
Method Detail

setAccessKeyId

public void setAccessKeyId(java.lang.String accessKeyId)

setSigner

public void setSigner(java.lang.String secretAccessKey)

getAWSAccessKeyId

protected java.lang.String getAWSAccessKeyId()

getSigner

protected HMACSigner getSigner()

getPort

protected abstract java.lang.Object getPort()

getServiceName

protected abstract java.lang.String getServiceName()

getPackagePrefix

protected abstract java.lang.String getPackagePrefix()

executeRequestMessage

public Reply executeRequestMessage(Message m)
                            throws ServiceException
Parameters:
m - - Message structure which contains the details for making wsdl operation call
Returns:
Reply structure containing results and errors from the wsdl operation call
Throws:
ServiceException

getConfig

public ClientConfig getConfig()