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. *