You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by bt...@apache.org on 2018/03/15 09:14:21 UTC
[11/18] james-project git commit: JAMES-2349 Document 405 return code
for Domain Quota Routes
JAMES-2349 Document 405 return code for Domain Quota Routes
Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/67e68880
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/67e68880
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/67e68880
Branch: refs/heads/master
Commit: 67e68880dd51b9f8ab00679fc3f727b1419bec91
Parents: 26adc7e
Author: benwa <bt...@linagora.com>
Authored: Wed Mar 14 10:19:42 2018 +0700
Committer: benwa <bt...@linagora.com>
Committed: Thu Mar 15 14:40:45 2018 +0700
----------------------------------------------------------------------
.../webadmin/routes/DomainQuotaRoutes.java | 24 +++++++++++++-------
1 file changed, 16 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/james-project/blob/67e68880/server/protocols/webadmin/webadmin-mailbox/src/main/java/org/apache/james/webadmin/routes/DomainQuotaRoutes.java
----------------------------------------------------------------------
diff --git a/server/protocols/webadmin/webadmin-mailbox/src/main/java/org/apache/james/webadmin/routes/DomainQuotaRoutes.java b/server/protocols/webadmin/webadmin-mailbox/src/main/java/org/apache/james/webadmin/routes/DomainQuotaRoutes.java
index 4f6b359..d02fd8a 100644
--- a/server/protocols/webadmin/webadmin-mailbox/src/main/java/org/apache/james/webadmin/routes/DomainQuotaRoutes.java
+++ b/server/protocols/webadmin/webadmin-mailbox/src/main/java/org/apache/james/webadmin/routes/DomainQuotaRoutes.java
@@ -116,7 +116,8 @@ public class DomainQuotaRoutes implements Routes {
@ApiResponses(value = {
@ApiResponse(code = HttpStatus.NO_CONTENT_204, message = "OK. The value has been updated."),
@ApiResponse(code = HttpStatus.BAD_REQUEST_400, message = "The body is not a positive integer or not unlimited value (-1)."),
- @ApiResponse(code = HttpStatus.NOT_FOUND_404, message = "The requested rdomain can not be found."),
+ @ApiResponse(code = HttpStatus.NOT_FOUND_404, message = "The requested domain can not be found."),
+ @ApiResponse(code = HttpStatus.METHOD_NOT_ALLOWED_405, message = "Domain Quota configuration not supported when virtual hosting is desactivated."),
@ApiResponse(code = HttpStatus.CONFLICT_409, message = "The requested restriction can't be enforced right now."),
@ApiResponse(code = HttpStatus.INTERNAL_SERVER_ERROR_500, message = "Internal server error - Something went bad on the server side.")
})
@@ -137,7 +138,8 @@ public class DomainQuotaRoutes implements Routes {
)
@ApiResponses(value = {
@ApiResponse(code = HttpStatus.OK_200, message = "OK", response = QuotaDTO.class),
- @ApiResponse(code = HttpStatus.NOT_FOUND_404, message = "The requested rdomain can not be found."),
+ @ApiResponse(code = HttpStatus.NOT_FOUND_404, message = "The requested domain can not be found."),
+ @ApiResponse(code = HttpStatus.METHOD_NOT_ALLOWED_405, message = "Domain Quota configuration not supported when virtual hosting is desactivated."),
@ApiResponse(code = HttpStatus.INTERNAL_SERVER_ERROR_500, message = "Internal server error - Something went bad on the server side.")
})
public void defineGetQuota() {
@@ -152,7 +154,8 @@ public class DomainQuotaRoutes implements Routes {
@ApiOperation(value = "Removing per domain mail size limitation by updating to unlimited value")
@ApiResponses(value = {
@ApiResponse(code = HttpStatus.NO_CONTENT_204, message = "The value is updated to unlimited value."),
- @ApiResponse(code = HttpStatus.NOT_FOUND_404, message = "The requested rdomain can not be found."),
+ @ApiResponse(code = HttpStatus.NOT_FOUND_404, message = "The requested domain can not be found."),
+ @ApiResponse(code = HttpStatus.METHOD_NOT_ALLOWED_405, message = "Domain Quota configuration not supported when virtual hosting is desactivated."),
@ApiResponse(code = HttpStatus.INTERNAL_SERVER_ERROR_500, message = "Internal server error - Something went bad on the server side.")
})
public void defineDeleteQuotaSize() {
@@ -173,7 +176,8 @@ public class DomainQuotaRoutes implements Routes {
@ApiResponses(value = {
@ApiResponse(code = HttpStatus.NO_CONTENT_204, message = "OK. The value has been updated."),
@ApiResponse(code = HttpStatus.BAD_REQUEST_400, message = "The body is not a positive integer."),
- @ApiResponse(code = HttpStatus.NOT_FOUND_404, message = "The requested rdomain can not be found."),
+ @ApiResponse(code = HttpStatus.NOT_FOUND_404, message = "The requested domain can not be found."),
+ @ApiResponse(code = HttpStatus.METHOD_NOT_ALLOWED_405, message = "Domain Quota configuration not supported when virtual hosting is desactivated."),
@ApiResponse(code = HttpStatus.CONFLICT_409, message = "The requested restriction can't be enforced right now."),
@ApiResponse(code = HttpStatus.INTERNAL_SERVER_ERROR_500, message = "Internal server error - Something went bad on the server side.")
})
@@ -193,7 +197,8 @@ public class DomainQuotaRoutes implements Routes {
@ApiResponses(value = {
@ApiResponse(code = HttpStatus.OK_200, message = "OK", response = Long.class),
@ApiResponse(code = HttpStatus.NO_CONTENT_204, message = "No value defined"),
- @ApiResponse(code = HttpStatus.NOT_FOUND_404, message = "The requested rdomain can not be found."),
+ @ApiResponse(code = HttpStatus.NOT_FOUND_404, message = "The requested domain can not be found."),
+ @ApiResponse(code = HttpStatus.METHOD_NOT_ALLOWED_405, message = "Domain Quota configuration not supported when virtual hosting is desactivated."),
@ApiResponse(code = HttpStatus.INTERNAL_SERVER_ERROR_500, message = "Internal server error - Something went bad on the server side.")
})
public void defineGetQuotaSize() {
@@ -213,7 +218,8 @@ public class DomainQuotaRoutes implements Routes {
@ApiOperation(value = "Removing per domain mail count limitation by updating to unlimited value")
@ApiResponses(value = {
@ApiResponse(code = HttpStatus.NO_CONTENT_204, message = "The value is updated to unlimited value."),
- @ApiResponse(code = HttpStatus.NOT_FOUND_404, message = "The requested rdomain can not be found."),
+ @ApiResponse(code = HttpStatus.NOT_FOUND_404, message = "The requested domain can not be found."),
+ @ApiResponse(code = HttpStatus.METHOD_NOT_ALLOWED_405, message = "Domain Quota configuration not supported when virtual hosting is desactivated."),
@ApiResponse(code = HttpStatus.INTERNAL_SERVER_ERROR_500, message = "Internal server error - Something went bad on the server side.")
})
public void defineDeleteQuotaCount() {
@@ -234,7 +240,8 @@ public class DomainQuotaRoutes implements Routes {
@ApiResponses(value = {
@ApiResponse(code = HttpStatus.NO_CONTENT_204, message = "OK. The value has been updated."),
@ApiResponse(code = HttpStatus.BAD_REQUEST_400, message = "The body is not a positive integer."),
- @ApiResponse(code = HttpStatus.NOT_FOUND_404, message = "The requested rdomain can not be found."),
+ @ApiResponse(code = HttpStatus.NOT_FOUND_404, message = "The requested domain can not be found."),
+ @ApiResponse(code = HttpStatus.METHOD_NOT_ALLOWED_405, message = "Domain Quota configuration not supported when virtual hosting is desactivated."),
@ApiResponse(code = HttpStatus.CONFLICT_409, message = "The requested restriction can't be enforced right now."),
@ApiResponse(code = HttpStatus.INTERNAL_SERVER_ERROR_500, message = "Internal server error - Something went bad on the server side.")
})
@@ -253,7 +260,8 @@ public class DomainQuotaRoutes implements Routes {
@ApiOperation(value = "Reading per domain mail count limitation")
@ApiResponses(value = {
@ApiResponse(code = HttpStatus.OK_200, message = "OK", response = Long.class),
- @ApiResponse(code = HttpStatus.NOT_FOUND_404, message = "The requested rdomain can not be found."),
+ @ApiResponse(code = HttpStatus.NOT_FOUND_404, message = "The requested domain can not be found."),
+ @ApiResponse(code = HttpStatus.METHOD_NOT_ALLOWED_405, message = "Domain Quota configuration not supported when virtual hosting is desactivated."),
@ApiResponse(code = HttpStatus.INTERNAL_SERVER_ERROR_500, message = "Internal server error - Something went bad on the server side.")
})
public void defineGetQuotaCount() {
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org