类 WebOperationRequestPredicate
java.lang.Object
org.springframework.boot.actuate.endpoint.web.WebOperationRequestPredicate
A predicate for a request to an operation on a web endpoint.
- 从以下版本开始:
- 2.0.0
- 作者:
- Andy Wilkinson
-
构造器概要
构造器构造器说明WebOperationRequestPredicate
(String path, WebEndpointHttpMethod httpMethod, Collection<String> consumes, Collection<String> produces) Creates a newOperationRequestPredicate
. -
方法概要
修饰符和类型方法说明boolean
Returns the media types that the operation consumes.Returns the HTTP method for the operation.Returns the name of the variable used to catch all remaining path segmentsnull
.getPath()
Returns the path for the operation.Returns the media types that the operation produces.int
hashCode()
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 supportsconsumes
- the media types that the operation consumesproduces
- the media types that the operation produces
-
-
方法详细资料
-
getPath
Returns the path for the operation.- 返回:
- the path
-
getMatchAllRemainingPathSegmentsVariable
Returns the name of the variable used to catch all remaining path segmentsnull
.- 返回:
- the variable name
- 从以下版本开始:
- 2.2.0
-
getHttpMethod
Returns the HTTP method for the operation.- 返回:
- the HTTP method
-
getConsumes
Returns the media types that the operation consumes.- 返回:
- the consumed media types
-
getProduces
Returns the media types that the operation produces.- 返回:
- the produced media types
-
equals
-
hashCode
public int hashCode() -
toString
-