public enum HttpPartFormat extends Enum<HttpPartFormat>
Enum Constant and Description |
---|
BINARY
Hexadecimal encoded octets (e.g.
|
BINARY_SPACED
Spaced-separated hexadecimal encoded octets (e.g.
|
BYTE
BASE-64 encoded characters.
|
DATE
|
DATE_TIME
|
DOUBLE
64-bit floating point number.
|
FLOAT
32-bit floating point number.
|
INT32
Signed 32 bits.
|
INT64
Signed 64 bits.
|
NO_FORMAT
Not specified.
|
PASSWORD
Used to hint UIs the input needs to be obscured.
|
UON
UON notation (e.g.
|
Modifier and Type | Method and Description |
---|---|
static HttpPartFormat |
fromString(String value)
Create from lowercase dashed name.
|
boolean |
isOneOf(HttpPartFormat... list)
Returns
|
String |
toString() |
static HttpPartFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpPartFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpPartFormat INT32
public static final HttpPartFormat INT64
public static final HttpPartFormat FLOAT
public static final HttpPartFormat DOUBLE
public static final HttpPartFormat BYTE
public static final HttpPartFormat BINARY
public static final HttpPartFormat BINARY_SPACED
public static final HttpPartFormat DATE
public static final HttpPartFormat DATE_TIME
public static final HttpPartFormat PASSWORD
public static final HttpPartFormat UON
public static final HttpPartFormat NO_FORMAT
public static HttpPartFormat[] values()
for (HttpPartFormat c : HttpPartFormat.values()) System.out.println(c);
public static HttpPartFormat valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static HttpPartFormat fromString(String value)
value
- The enum name.public boolean isOneOf(HttpPartFormat... list)
list
- The list of formats to check against.public String toString()
toString
in class Enum<HttpPartFormat>
Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.