stratos-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From im...@apache.org
Subject stratos git commit: Updating method comments in StratosApi41
Date Fri, 12 Dec 2014 11:10:39 GMT
Repository: stratos
Updated Branches:
  refs/heads/4.1.0-test 0e018793e -> c8c7d28ab


Updating method comments in StratosApi41


Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/c8c7d28a
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/c8c7d28a
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/c8c7d28a

Branch: refs/heads/4.1.0-test
Commit: c8c7d28abe827768f4169f179ac11e6e609fc592
Parents: 0e01879
Author: Imesh Gunaratne <imesh@apache.org>
Authored: Fri Dec 12 16:40:12 2014 +0530
Committer: Imesh Gunaratne <imesh@apache.org>
Committed: Fri Dec 12 16:40:25 2014 +0530

----------------------------------------------------------------------
 .../rest/endpoint/api/StratosApiV41.java        | 32 ++++++++++----------
 1 file changed, 16 insertions(+), 16 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/c8c7d28a/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV41.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV41.java
b/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV41.java
index 23893ea..d827519 100644
--- a/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV41.java
+++ b/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV41.java
@@ -167,41 +167,41 @@ public class StratosApiV41 extends AbstractApi {
         rb.entity(cartridges.isEmpty() ? new Cartridge[0] : cartridges.toArray(new Cartridge[cartridges.size()]));
         return rb.build();
     }
-    
+
     /**
-     * Gets the cartridges by category.
-     *
-     * @param category the category
-     * @param criteria the criteria if required for further filtering
-     * @return the cartridges by category
-     * @throws RestAPIException the rest api exception
+     * Returns cartridges by category.
+     * @param filter
+     * @param criteria
+     * @return
+     * @throws RestAPIException
      */
     @GET
     @Path("/cartridges/{filter}")
     @Produces("application/json")
     @Consumes("application/json")
     @AuthorizationAction("/permission/admin/manage/view/cartridge")
-    public Response getCartridgesByFilter(@DefaultValue("") @PathParam("filter") String filter,
@QueryParam("criteria") String criteria) throws RestAPIException {
+    public Response getCartridgesByFilter(@DefaultValue("") @PathParam("filter") String filter,
+                                          @QueryParam("criteria") String criteria) throws
RestAPIException {
         List<Cartridge> cartridges = StratosApiV41Utils.getCartridgesByFilter(filter,
criteria, getConfigContext());
         ResponseBuilder rb = Response.ok();
         rb.entity(cartridges.isEmpty() ? new Cartridge[0] : cartridges.toArray(new Cartridge[cartridges.size()]));
         return rb.build();
     }
-    
+
     /**
-     * Gets a specific cartridge by category.
-     *
-     * @param category the category
-     * @param cartridgeType the cartridge type
-     * @return the cartridge by category
-     * @throws RestAPIException the rest api exception
+     * Returns a specific cartridge by category.
+     * @param filter
+     * @param cartridgeType
+     * @return
+     * @throws RestAPIException
      */
     @GET
     @Path("/cartridges/{filter}/{cartridgeType}")
     @Produces("application/json")
     @Consumes("application/json")
     @AuthorizationAction("/permission/admin/manage/view/cartridge")
-    public Response getCartridgeByFilter(@DefaultValue("") @PathParam("filter") String filter,
@PathParam("cartridgeType") String cartridgeType) throws RestAPIException {
+    public Response getCartridgeByFilter(@DefaultValue("") @PathParam("filter") String filter,
+                                         @PathParam("cartridgeType") String cartridgeType)
throws RestAPIException {
         Cartridge cartridge = StratosApiV41Utils.getCartridgeByFilter(filter, cartridgeType,
getConfigContext());
         ResponseBuilder rb = Response.ok();
         rb.entity(cartridge);


Mime
View raw message