public final class WebOperationRequestPredicate
extends java.lang.Object
| Constructor and Description |
|---|
WebOperationRequestPredicate(java.lang.String path,
WebEndpointHttpMethod httpMethod,
java.util.Collection<java.lang.String> consumes,
java.util.Collection<java.lang.String> produces)
Creates a new
OperationRequestPredicate. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.util.Collection<java.lang.String> |
getConsumes()
Returns the media types that the operation consumes.
|
WebEndpointHttpMethod |
getHttpMethod()
Returns the HTTP method for the operation.
|
java.lang.String |
getMatchAllRemainingPathSegmentsVariable()
Returns the name of the variable used to catch all remaining path segments
null. |
java.lang.String |
getPath()
Returns the path for the operation.
|
java.util.Collection<java.lang.String> |
getProduces()
Returns the media types that the operation produces.
|
int |
hashCode() |
java.lang.String |
toString() |
public WebOperationRequestPredicate(java.lang.String path,
WebEndpointHttpMethod httpMethod,
java.util.Collection<java.lang.String> consumes,
java.util.Collection<java.lang.String> produces)
OperationRequestPredicate.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 consumespublic java.lang.String getPath()
public java.lang.String getMatchAllRemainingPathSegmentsVariable()
null.public WebEndpointHttpMethod getHttpMethod()
public java.util.Collection<java.lang.String> getConsumes()
public java.util.Collection<java.lang.String> getProduces()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object