|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.amazonaws.mturk.service.axis.AWSService
com.amazonaws.mturk.service.axis.FilteredAWSService
public abstract class FilteredAWSService
This maintains the list of Filters which processes operation requests and replies It has methods to add, remove and clear filters. Also handles execution of the filters
| Field Summary |
|---|
| Fields inherited from class com.amazonaws.mturk.service.axis.AWSService |
|---|
config, HTTP_HEADER_AMAZON_SOFTWARE, httpHeaders |
| Constructor Summary | |
|---|---|
FilteredAWSService(ClientConfig config)
|
|
FilteredAWSService(ClientConfig config,
java.util.List<Filter> filterList)
|
|
| Method Summary | |
|---|---|
void |
addFilter(Filter filter)
|
void |
clearFilters()
Clears all filters which are removable from the List of Filters |
protected AsyncReply |
executeAsyncRequest(java.lang.Object request,
java.lang.String axisMethodName,
java.lang.String resultAccessorName,
AsyncCallback callback)
Enqueues the request in the Axis worker queue for asynchronous sending. |
protected AsyncReply |
executeAsyncRequests(java.lang.Object requests,
java.lang.String axisMethodName,
java.lang.String resultAccessorName,
AsyncCallback callback)
Enqueues the request array in the Axis work queue for asynchronous sending. |
protected java.lang.Object |
executeRequest(java.lang.Object request,
java.lang.String axisMethodName,
java.lang.String resultAccessorName)
Sends an AWS request to the service and returns results. |
protected java.lang.Object |
executeRequest(java.lang.Object request,
java.lang.String axisMethodName,
java.lang.String resultAccessorName,
java.lang.String credential)
Sends an AWS request to the service and returns results. |
protected java.lang.Object[] |
executeRequests(java.lang.Object requests,
java.lang.String axisMethodName,
java.lang.String resultAccessorName)
Sets the common parameters, sends an array of AWS requests to the service, and returns results. |
protected java.lang.Object[] |
executeRequests(java.lang.Object requests,
java.lang.String axisMethodName,
java.lang.String resultAccessorName,
java.lang.String credential)
Sets the common parameters, sends an array of AWS requests to the service, and returns results. |
java.util.List<Filter> |
getFilterList()
|
void |
removeFilter(Filter filter)
|
| Methods inherited from class com.amazonaws.mturk.service.axis.AWSService |
|---|
executeRequestMessage, getAWSAccessKeyId, getConfig, getPackagePrefix, getPort, getServiceName, getSigner, setAccessKeyId, setSigner |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FilteredAWSService(ClientConfig config,
java.util.List<Filter> filterList)
filterList - - List of Filters that should be executed.
Also appends the FinalFilter, which makes the wsdl call, to the Listpublic FilteredAWSService(ClientConfig config)
| Method Detail |
|---|
public java.util.List<Filter> getFilterList()
public void addFilter(Filter filter)
filter - - Adds the Filter implementaion to head of the List of Filterspublic void removeFilter(Filter filter)
filter - - Removes the Filter from List of Filters, if it is remavable and found in the list
Throws RuntimeException if filter not found in list or not removablepublic void clearFilters()
protected java.lang.Object executeRequest(java.lang.Object request,
java.lang.String axisMethodName,
java.lang.String resultAccessorName)
throws ServiceException
request - axisMethodName - resultAccessorName -
ServiceException
protected java.lang.Object[] executeRequests(java.lang.Object requests,
java.lang.String axisMethodName,
java.lang.String resultAccessorName)
throws ServiceException
requests - axisMethodName - resultAccessorName -
ServiceExceptionhttp://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2006-10-31/ApiReference_CommonParametersArticle.html
protected java.lang.Object executeRequest(java.lang.Object request,
java.lang.String axisMethodName,
java.lang.String resultAccessorName,
java.lang.String credential)
throws ServiceException
request - axisMethodName - resultAccessorName - credential -
ServiceException
protected java.lang.Object[] executeRequests(java.lang.Object requests,
java.lang.String axisMethodName,
java.lang.String resultAccessorName,
java.lang.String credential)
requests - axisMethodName - resultAccessorName - credential -
ServiceExceptionhttp://docs.amazonwebservices.com/AWSMechanicalTurkRequester/2006-10-31/ApiReference_CommonParametersArticle.html
protected AsyncReply executeAsyncRequest(java.lang.Object request,
java.lang.String axisMethodName,
java.lang.String resultAccessorName,
AsyncCallback callback)
request - axisMethodName - resultAccessorName - callback - Callback interface to invoke when the request has been processed (optional)
protected AsyncReply executeAsyncRequests(java.lang.Object requests,
java.lang.String axisMethodName,
java.lang.String resultAccessorName,
AsyncCallback callback)
requests - axisMethodName - resultAccessorName - callback - Callback interface to invoke when the request has been processed (optional)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||