public enum RuntimeRestAPIVersion extends Enum<RuntimeRestAPIVersion> implements RestAPIVersion<RuntimeRestAPIVersion>
REST API versions are global and thus apply to every REST component.
Changes that must result in an API version increment include but are not limited to: - modification of a handler url - addition of new mandatory parameters - removal of a handler/request - modifications to request/response bodies (excluding additions)
| Modifier and Type | Method and Description |
|---|---|
String |
getURLVersionPrefix()
Returns the URL version prefix (e.g.
|
boolean |
isDefaultVersion()
Returns whether this version is the default REST API version.
|
boolean |
isStableVersion()
Returns whether this version is considered stable.
|
static RuntimeRestAPIVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RuntimeRestAPIVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfgetLatestVersioncompareTopublic static final RuntimeRestAPIVersion V0
public static final RuntimeRestAPIVersion V1
public static RuntimeRestAPIVersion[] values()
for (RuntimeRestAPIVersion c : RuntimeRestAPIVersion.values()) System.out.println(c);
public static RuntimeRestAPIVersion 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 getURLVersionPrefix()
getURLVersionPrefix in interface RestAPIVersion<RuntimeRestAPIVersion>public boolean isDefaultVersion()
isDefaultVersion in interface RestAPIVersion<RuntimeRestAPIVersion>public boolean isStableVersion()
isStableVersion in interface RestAPIVersion<RuntimeRestAPIVersion>Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.