From fa9ccc92efab00a9dc9a7f6dbbbcb2d208636cef Mon Sep 17 00:00:00 2001 From: paweldomas Date: Tue, 13 May 2014 19:52:55 +0000 Subject: [PATCH] Adds default overloads of the methods for creating permission error responses. Patch by Aakash Garg. --- src/org/ice4j/message/MessageFactory.java | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/org/ice4j/message/MessageFactory.java b/src/org/ice4j/message/MessageFactory.java index f3eb729..fc34955 100644 --- a/src/org/ice4j/message/MessageFactory.java +++ b/src/org/ice4j/message/MessageFactory.java @@ -694,6 +694,17 @@ public class MessageFactory return refreshSuccessResponse; } + /** + * Creates a refresh error response + * + * @param errorCode the error code to encapsulate in this message. + * @return refresh error response including the error code attribute. + */ + public static Response createRefreshErrorResponse(char errorCode) + { + return createRefreshErrorResponse(errorCode, null); + } + /** * Creates a refresh error response. * @param errorCode the error code to encapsulate in this message. @@ -860,6 +871,18 @@ public class MessageFactory return permissionSuccessResponse; } + /** + * Creates a create permission error response. + * + * @param errorCode the error code to encapsulate in this message. + * @return CreatePermission Error Response with error code attribute. + */ + public static Response createCreatePermissionErrorResponse(char errorCode) + { + return createPermissionErrorResponse( + errorCode, null); + } + /** * Creates a create permission error response. *