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)
| 限定符和类型 | 方法和说明 |
|---|---|
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)
返回带有指定名称的该类型的枚举常量。
|
static RuntimeRestAPIVersion[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
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 - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String getURLVersionPrefix()
getURLVersionPrefix 在接口中 RestAPIVersion<RuntimeRestAPIVersion>public boolean isDefaultVersion()
isDefaultVersion 在接口中 RestAPIVersion<RuntimeRestAPIVersion>public boolean isStableVersion()
isStableVersion 在接口中 RestAPIVersion<RuntimeRestAPIVersion>Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.