Adds default overloads of the methods for creating permission error responses. Patch by Aakash Garg.

This commit is contained in:
paweldomas 2014-05-13 19:52:55 +00:00
parent e48e56303c
commit fa9ccc92ef

View File

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