@ GET public Response getSupportedTasks ( @ QueryParam ( "storeID" ) String storeID ) { String msg = "getting suppported tasks(" + storeID + ")" ; try { TaskProvider taskProvider = taskProviderFactory . getTaskProvider ( storeID ) ; List < String > supportedTasks = taskProvider . getSupportedTasks ( ) ; String responseText = SerializationUtil . serializeList ( supportedTasks ) ; return responseOkXml ( msg , responseText ) ; } catch ( Exception e ) { return responseBad ( msg , e , INTERNAL_SERVER_ERROR ) ; } }
Gets a listing of supported tasks for a given provider