mirror of https://github.com/apache/jclouds.git
Comments for media types
This commit is contained in:
parent
da8ebc0c26
commit
eef98d85d3
|
@ -32,12 +32,17 @@ import com.google.common.collect.ImmutableList;
|
||||||
*/
|
*/
|
||||||
public class VCloudDirectorMediaType {
|
public class VCloudDirectorMediaType {
|
||||||
|
|
||||||
|
// Wildcarded media types
|
||||||
|
|
||||||
public static final String ANY = "*/*";
|
public static final String ANY = "*/*";
|
||||||
|
|
||||||
public static final String ANY_IMAGE = "image/*";
|
public static final String ANY_IMAGE = "image/*";
|
||||||
|
|
||||||
|
/** The default {@literal Accept} header for the vCloud API. */
|
||||||
public static final String APPLICATION_XML_1_5 = "application/*+xml;version=1.5";
|
public static final String APPLICATION_XML_1_5 = "application/*+xml;version=1.5";
|
||||||
|
|
||||||
|
// Specific media types
|
||||||
|
|
||||||
public static final String SESSION = "application/vnd.vmware.vcloud.session+xml";
|
public static final String SESSION = "application/vnd.vmware.vcloud.session+xml";
|
||||||
|
|
||||||
public static final String ERROR = "application/vnd.vmware.vcloud.error+xml";
|
public static final String ERROR = "application/vnd.vmware.vcloud.error+xml";
|
||||||
|
@ -188,14 +193,15 @@ public class VCloudDirectorMediaType {
|
||||||
|
|
||||||
public static final String OVF_TEXT_XML = "text/xml";
|
public static final String OVF_TEXT_XML = "text/xml";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* All acceptable OVF-specific media types.
|
||||||
|
*/
|
||||||
public static final List<String> ALL_OVF = ImmutableList.of(
|
public static final List<String> ALL_OVF = ImmutableList.of(
|
||||||
OVF_TEXT_XML
|
OVF_TEXT_XML
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* All acceptable vcloud-specific media types.
|
* All acceptable vCloud-specific media types.
|
||||||
*
|
|
||||||
* This list must be updated whenever a new media type constant is added.
|
|
||||||
*/
|
*/
|
||||||
public static final List<String> ALL = ImmutableList.of(
|
public static final List<String> ALL = ImmutableList.of(
|
||||||
SESSION, ERROR, ORG_LIST, METADATA, METADATA_ENTRY, METADATA_VALUE,
|
SESSION, ERROR, ORG_LIST, METADATA, METADATA_ENTRY, METADATA_VALUE,
|
||||||
|
@ -215,7 +221,10 @@ public class VCloudDirectorMediaType {
|
||||||
ORG_LEASE_SETTINGS, ORG_PASSWORD_POLICY_SETTINGS, ORG_LDAP_SETTINGS,
|
ORG_LEASE_SETTINGS, ORG_PASSWORD_POLICY_SETTINGS, ORG_LDAP_SETTINGS,
|
||||||
ORG_GENERAL_SETTINGS, ORG_EMAIL_SETTINGS, ORG_SETTINGS, ADMIN_NETWORK,
|
ORG_GENERAL_SETTINGS, ORG_EMAIL_SETTINGS, ORG_SETTINGS, ADMIN_NETWORK,
|
||||||
ADMIN_ORG_NETWORK, USER, ROLE, DEPLOY_VAPP_PARAMS, RECOMPOSE_VAPP_PARAMS,
|
ADMIN_ORG_NETWORK, USER, ROLE, DEPLOY_VAPP_PARAMS, RECOMPOSE_VAPP_PARAMS,
|
||||||
RELOCATE_VM_PARAMS, UNDEPLOY_VAPP_PARAMS, ADMIN_VDC, MEDIA_PARAMS, RUNTIME_INFO_SECTION,
|
RELOCATE_VM_PARAMS, UNDEPLOY_VAPP_PARAMS, ADMIN_VDC, MEDIA_PARAMS,
|
||||||
SCREEN_TICKET, VAPP_NETWORK
|
RUNTIME_INFO_SECTION, SCREEN_TICKET, VAPP_NETWORK
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// NOTE These lists must be updated whenever a new media type constant is added.
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue