net.sf.sail.webapp.dao.sds
Interface SdsCommand<T,U extends AbstractHttpRequest>

All Known Subinterfaces:
SdsCurnitCreateCommand, SdsCurnitListCommand, SdsCurnitUpdateCommand, SdsJnlpCreateCommand, SdsJnlpUpdateCommand, SdsOfferingCreateCommand, SdsOfferingGetCommand, SdsOfferingListCommand, SdsOfferingUpdateCommand, SdsUserCreateCommand, SdsUserUpdateCommand, SdsWorkgroupCreateCommand, SdsWorkgroupGetCommand, SdsWorkgroupMemberCreateCommand, SdsWorkgroupUpdateCommand
All Known Implementing Classes:
SdsCurnitCreateCommandHttpRestImpl, SdsCurnitListCommandHttpRestImpl, SdsCurnitUpdateCommandHttpRestImpl, SdsJnlpCreateCommandHttpRestImpl, SdsJnlpUpdateCommandHttpRestImpl, SdsOfferingCreateCommandHttpRestImpl, SdsOfferingGetCommandHttpRestImpl, SdsOfferingListCommandHttpRestImpl, SdsOfferingUpdateCommandHttpRestImpl, SdsUserCreateCommandHttpRestImpl, SdsUserUpdateCommandHttpRestImpl, SdsWorkgroupCreateCommandHttpRestImpl, SdsWorkgroupGetCommandHttpRestImpl, SdsWorkgroupMemberCreateCommandHttpRestImpl, SdsWorkgroupUpdateCommandHttpRestImpl

public interface SdsCommand<T,U extends AbstractHttpRequest>

An SDS command as described in http://www.telscenter.org/confluence/display/SAIL/REST+protocol+for+SAIL+Data+Services+(SDS). First, generate the appropriate request using generateRequest and then execute the request using execute.

Version:
$Id$
Author:
Cynick Young

Method Summary
 T execute(U httpRequest)
          Executes the commmand based on data contructed via the generateRequest method.
 U generateRequest()
          Puts together the request data and the sds object data required to execute the commmand.
 

Method Detail

generateRequest

U generateRequest()
Puts together the request data and the sds object data required to execute the commmand.

Returns:
The AbstractHttpRequest constructed from the sds object.

execute

T execute(U httpRequest)
Executes the commmand based on data contructed via the generateRequest method.

Returns:
The data retrieved from sds.


Copyright © 2012. All Rights Reserved.