mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
BaseCmd: Use HttpUtils to have single source of static string values
cloud-api depends on cloud-utils, it makes sense to refactor and put common and static stuff in cloud-utils Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
315feb0683
commit
d64d59e8f7
@ -29,6 +29,7 @@ import java.util.regex.Pattern;
|
||||
|
||||
import javax.inject.Inject;
|
||||
|
||||
import com.cloud.utils.HttpUtils;
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
import org.apache.cloudstack.acl.RoleType;
|
||||
@ -84,8 +85,8 @@ import com.cloud.vm.snapshot.VMSnapshotService;
|
||||
|
||||
public abstract class BaseCmd {
|
||||
private static final Logger s_logger = Logger.getLogger(BaseCmd.class.getName());
|
||||
public static final String RESPONSE_TYPE_XML = "xml";
|
||||
public static final String RESPONSE_TYPE_JSON = "json";
|
||||
public static final String RESPONSE_TYPE_XML = HttpUtils.RESPONSE_TYPE_XML;
|
||||
public static final String RESPONSE_TYPE_JSON = HttpUtils.RESPONSE_TYPE_JSON;
|
||||
public static final DateFormat INPUT_FORMAT = new SimpleDateFormat("yyyy-MM-dd");
|
||||
public static final DateFormat NEW_INPUT_FORMAT = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
public static final String USER_ERROR_MESSAGE = "Internal error executing command, please contact your system administrator";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user