类 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
作者:
Andy Wilkinson
  • 构造器详细资料

    • WebOperationRequestPredicate

      public WebOperationRequestPredicate(String path, WebEndpointHttpMethod httpMethod, Collection<String> consumes, Collection<String> produces)
      Creates a new OperationRequestPredicate.
      参数:
      path - the path for the operation
      httpMethod - the HTTP method that the operation supports
      consumes - the media types that the operation consumes
      produces - the media types that the operation produces
  • 方法详细资料

    • getPath

      public String getPath()
      Returns the path for the operation.
      返回:
      the path
    • getMatchAllRemainingPathSegmentsVariable

      public String getMatchAllRemainingPathSegmentsVariable()
      Returns the name of the variable used to catch all remaining path segments null.
      返回:
      the variable name
      从以下版本开始:
      2.2.0
    • 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
    • equals

      public boolean equals(Object obj)
      覆盖:
      equals 在类中 Object
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object