public class DXiRESTMediaType
extends javax.ws.rs.core.MediaType
CamelCase
. JSON property names must be in camelCase
.
Failing to meet these requirements will result in HTTP 500 errors.
Examples of valid syntax:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<EthernetInterface>
<Device>ens160:1</Device>
<Mtu>1500</Mtu>
<IpAddress>10.40.161.56</IpAddress>
<Netmask>255.255.252.0</Netmask>
<Gateway>10.40.160.1</Gateway>
<TrafficTypes>
<TrafficType>MGMT</TrafficType>
<TrafficType>DATA</TrafficType>
</TrafficTypes>
</EthernetInterface>
{
"device": "ens160:1",
"mtu": 1500,
"ipAddress": "10.40.161.56",
"netmask": "255.255.252.0",
"gateway": "10.40.160.1",
"trafficTypes": {
"trafficType": [
"MGMT",
"DATA"
]
}
}
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
APPLICATION_DXI_V1_0_JSON
"application/vnd.quantum.dxi.rest.1.0+json", the media type for system REST Web Services, version 1.0, JSON format.
|
static DXiRESTMediaType |
APPLICATION_DXI_V1_0_JSON_TYPE
"application/vnd.quantum.dxi.rest.1.0+json", the media type for system REST Web Services, version 1.0, JSON format.
|
static java.lang.String |
APPLICATION_DXI_V1_0_XML
"application/vnd.quantum.dxi.rest.1.0+xml", the media type for system REST Web Services, version 1.0, XML format.
|
static DXiRESTMediaType |
APPLICATION_DXI_V1_0_XML_TYPE
"application/vnd.quantum.dxi.rest.1.0+xml", the media type for system REST Web Services, version 1.0, XML format.
|
static java.lang.String |
APPLICATION_DXI_V1_1_JSON
"application/vnd.quantum.dxi.rest.1.1+json", the media type for system REST Web Services, version 1.1, JSON format.
|
static DXiRESTMediaType |
APPLICATION_DXI_V1_1_JSON_TYPE
"application/vnd.quantum.dxi.rest.1.1+json", the media type for system REST Web Services, version 1.1, JSON format.
|
static java.lang.String |
APPLICATION_DXI_V1_1_TEXT
"application/vnd.quantum.dxi.rest.1.1+text", the media type for system REST Web Services, version 1.1, TEXT format.
|
static DXiRESTMediaType |
APPLICATION_DXI_V1_1_TEXT_TYPE
"application/vnd.quantum.dxi.rest.1.1+text", the media type for system REST Web Services, version 1.1, TEXT format.
|
static java.lang.String |
APPLICATION_DXI_V1_1_XML
"application/vnd.quantum.dxi.rest.1.1+xml", the media type for system REST Web Services, version 1.1, XML format.
|
static DXiRESTMediaType |
APPLICATION_DXI_V1_1_XML_TYPE
"application/vnd.quantum.dxi.rest.1.1+xml", the media type for system REST Web Services, version 1.1, XML format.
|
static java.lang.String |
APPLICATION_DXI_V1_2_JSON
"application/vnd.quantum.dxi.rest.1.2+json", the media type for system REST Web Services, version 1.2, JSON format.
|
static DXiRESTMediaType |
APPLICATION_DXI_V1_2_JSON_TYPE
"application/vnd.quantum.dxi.rest.1.2+json", the media type for system REST Web Services, version 1.2, JSON format.
|
static java.lang.String |
APPLICATION_DXI_V1_2_TEXT
"application/vnd.quantum.dxi.rest.1.2+text", the media type for system REST Web Services, version 1.2, TEXT format.
|
static DXiRESTMediaType |
APPLICATION_DXI_V1_2_TEXT_TYPE
"application/vnd.quantum.dxi.rest.1.2+text", the media type for system REST Web Services, version 1.2, TEXT format.
|
static java.lang.String |
APPLICATION_DXI_V1_2_XML
"application/vnd.quantum.dxi.rest.1.2+xml", the media type for system REST Web Services, version 1.2, XML format.
|
static DXiRESTMediaType |
APPLICATION_DXI_V1_2_XML_TYPE
"application/vnd.quantum.dxi.rest.1.2+xml", the media type for system REST Web Services, version 1.2, XML format.
|
static java.lang.String |
APPLICATION_DXI_V1_2_ZIP
"application/vnd.quantum.dxi.rest.1.2+zip", the media type for system REST Web Services, version 1.2, ZIP format.
|
static DXiRESTMediaType |
APPLICATION_DXI_V1_2_ZIP_TYPE
"application/vnd.quantum.dxi.rest.1.2+zip", the media type for system REST Web Services, version 1.2, ZIP format.
|
APPLICATION_ATOM_XML, APPLICATION_ATOM_XML_TYPE, APPLICATION_FORM_URLENCODED, APPLICATION_FORM_URLENCODED_TYPE, APPLICATION_JSON, APPLICATION_JSON_TYPE, APPLICATION_OCTET_STREAM, APPLICATION_OCTET_STREAM_TYPE, APPLICATION_SVG_XML, APPLICATION_SVG_XML_TYPE, APPLICATION_XHTML_XML, APPLICATION_XHTML_XML_TYPE, APPLICATION_XML, APPLICATION_XML_TYPE, MEDIA_TYPE_WILDCARD, MULTIPART_FORM_DATA, MULTIPART_FORM_DATA_TYPE, TEXT_HTML, TEXT_HTML_TYPE, TEXT_PLAIN, TEXT_PLAIN_TYPE, TEXT_XML, TEXT_XML_TYPE, WILDCARD, WILDCARD_TYPE
Constructor and Description |
---|
DXiRESTMediaType(java.lang.String type,
java.lang.String subtype)
Create a new instance with the given type and subtype.
|
DXiRESTMediaType(java.lang.String type,
java.lang.String subtype,
java.util.Map<java.lang.String,java.lang.String> parameters)
Create a new instance with the given type, subtype, and parameters.
|
public static final DXiRESTMediaType APPLICATION_DXI_V1_0_XML_TYPE
public static final java.lang.String APPLICATION_DXI_V1_0_XML
public static final DXiRESTMediaType APPLICATION_DXI_V1_0_JSON_TYPE
public static final java.lang.String APPLICATION_DXI_V1_0_JSON
public static final DXiRESTMediaType APPLICATION_DXI_V1_1_XML_TYPE
public static final java.lang.String APPLICATION_DXI_V1_1_XML
public static final DXiRESTMediaType APPLICATION_DXI_V1_1_JSON_TYPE
public static final java.lang.String APPLICATION_DXI_V1_1_JSON
public static final DXiRESTMediaType APPLICATION_DXI_V1_1_TEXT_TYPE
public static final java.lang.String APPLICATION_DXI_V1_1_TEXT
public static final DXiRESTMediaType APPLICATION_DXI_V1_2_XML_TYPE
public static final java.lang.String APPLICATION_DXI_V1_2_XML
public static final DXiRESTMediaType APPLICATION_DXI_V1_2_JSON_TYPE
public static final java.lang.String APPLICATION_DXI_V1_2_JSON
public static final DXiRESTMediaType APPLICATION_DXI_V1_2_TEXT_TYPE
public static final java.lang.String APPLICATION_DXI_V1_2_TEXT
public static final DXiRESTMediaType APPLICATION_DXI_V1_2_ZIP_TYPE
public static final java.lang.String APPLICATION_DXI_V1_2_ZIP
public DXiRESTMediaType(java.lang.String type, java.lang.String subtype)
type
- the media primary typesubtype
- the media subtypepublic DXiRESTMediaType(java.lang.String type, java.lang.String subtype, java.util.Map<java.lang.String,java.lang.String> parameters)
type
- the media primary typesubtype
- the media subtypeparameters
- a map of media type parametersCopyright © 2011-2024 Quantum Corporation. All Rights Reserved.