类 WebOperationRequestPredicate
- java.lang.Object
- org.springframework.boot.actuate.endpoint.web.WebOperationRequestPredicate
public final class WebOperationRequestPredicate extends Object
A predicate for a request to an operation on a web endpoint.- 从以下版本开始:
- 2.0.0
构造器概要
构造器 构造器 说明 WebOperationRequestPredicate(String path, WebEndpointHttpMethod httpMethod, Collection<String> consumes, Collection<String> produces)
Creates a newOperationRequestPredicate
.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 boolean
equals(Object obj)
Collection<String>
getConsumes()
Returns the media types that the operation consumes.WebEndpointHttpMethod
getHttpMethod()
Returns the HTTP method for the operation.String
getPath()
Returns the path for the operation.Collection<String>
getProduces()
Returns the media types that the operation produces.int
hashCode()
String
toString()
构造器详细资料
WebOperationRequestPredicate
public WebOperationRequestPredicate(String path, WebEndpointHttpMethod httpMethod, Collection<String> consumes, Collection<String> produces)
Creates a newOperationRequestPredicate
.- 参数:
path
- the path for the operationhttpMethod
- the HTTP method that the operation supportsproduces
- the media types that the operation producesconsumes
- the media types that the operation consumes
方法详细资料
getHttpMethod
public WebEndpointHttpMethod getHttpMethod()
Returns the HTTP method for the operation.- 返回:
- the HTTP method
getConsumes
public Collection<String> getConsumes()
Returns the media types that the operation consumes.- 返回:
- the consumed media types
getProduces
public Collection<String> getProduces()
Returns the media types that the operation produces.- 返回:
- the produced media types