org.springframework.http.HttpRequest.getMethodValue()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(339)

本文整理了Java中org.springframework.http.HttpRequest.getMethodValue()方法的一些代码示例,展示了HttpRequest.getMethodValue()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HttpRequest.getMethodValue()方法的具体详情如下:
包路径:org.springframework.http.HttpRequest
类名称:HttpRequest
方法名:getMethodValue

HttpRequest.getMethodValue介绍

[英]Return the HTTP method of the request as a String value.
[中]以字符串值的形式返回请求的HTTP方法。

代码示例

代码示例来源:origin: spring-projects/spring-framework

/**
 * Return the method value of the wrapped request.
 */
@Override
public String getMethodValue() {
  return this.request.getMethodValue();
}

代码示例来源:origin: org.springframework/spring-web

/**
 * Return the method value of the wrapped request.
 */
@Override
public String getMethodValue() {
  return this.request.getMethodValue();
}

代码示例来源:origin: spring-projects/spring-framework

/**
 * Return the HTTP method of the request.
 * @return the HTTP method as an HttpMethod enum value, or {@code null}
 * if not resolvable (e.g. in case of a non-standard HTTP method)
 * @see #getMethodValue()
 * @see HttpMethod#resolve(String)
 */
@Nullable
default HttpMethod getMethod() {
  return HttpMethod.resolve(getMethodValue());
}

代码示例来源:origin: org.springframework/spring-web

/**
 * Return the HTTP method of the request.
 * @return the HTTP method as an HttpMethod enum value, or {@code null}
 * if not resolvable (e.g. in case of a non-standard HTTP method)
 * @see #getMethodValue()
 * @see HttpMethod#resolve(String)
 */
@Nullable
default HttpMethod getMethod() {
  return HttpMethod.resolve(getMethodValue());
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-web

/**
 * Return the method value of the wrapped request.
 */
@Override
public String getMethodValue() {
  return this.request.getMethodValue();
}

代码示例来源:origin: apache/servicemix-bundles

/**
 * Return the method value of the wrapped request.
 */
@Override
public String getMethodValue() {
  return this.request.getMethodValue();
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-web

/**
 * Return the HTTP method of the request.
 * @return the HTTP method as an HttpMethod enum value, or {@code null}
 * if not resolvable (e.g. in case of a non-standard HTTP method)
 * @see #getMethodValue()
 * @see HttpMethod#resolve(String)
 */
@Nullable
default HttpMethod getMethod() {
  return HttpMethod.resolve(getMethodValue());
}

代码示例来源:origin: apache/servicemix-bundles

/**
 * Return the HTTP method of the request.
 * @return the HTTP method as an HttpMethod enum value, or {@code null}
 * if not resolvable (e.g. in case of a non-standard HTTP method)
 * @see #getMethodValue()
 * @see HttpMethod#resolve(String)
 */
@Nullable
default HttpMethod getMethod() {
  return HttpMethod.resolve(getMethodValue());
}

相关文章

微信公众号

最新文章

更多