public enum MediaTypeParameter extends Enum<MediaTypeParameter> implements org.refcodes.mixin.NameAccessor
MediaType
parameters.Enum Constant and Description |
---|
CHARSET |
Modifier and Type | Method and Description |
---|---|
static MediaTypeParameter |
fromHttpMediaTypeParameter(String aHttpMediaTypeParameter)
Returns that
MediaTypeParameter represented by the given HTTP
Media-Type parameter. |
String |
getName() |
static MediaTypeParameter |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MediaTypeParameter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MediaTypeParameter CHARSET
public static MediaTypeParameter[] values()
for (MediaTypeParameter c : MediaTypeParameter.values()) System.out.println(c);
public static MediaTypeParameter 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 String getName()
getName
in interface org.refcodes.mixin.NameAccessor
public static MediaTypeParameter fromHttpMediaTypeParameter(String aHttpMediaTypeParameter)
MediaTypeParameter
represented by the given HTTP
Media-Type parameter.aHttpMediaTypeParameter
- The HTTP Media-Type for which to determine
the MediaTypeParameter
.MediaTypeParameter
or null if none was
determinable.Copyright © 2016. All rights reserved.