Class RequestMethod
- java.lang.Object
-
- com.github.tomakehurst.wiremock.http.RequestMethod
-
- All Implemented Interfaces:
NamedValueMatcher<RequestMethod>,ValueMatcher<RequestMethod>
public class RequestMethod extends java.lang.Object implements NamedValueMatcher<RequestMethod>
-
-
Field Summary
Fields Modifier and Type Field Description static RequestMethodANYstatic RequestMethodDELETEstatic RequestMethodGETstatic RequestMethodGET_OR_HEADstatic RequestMethodHEADstatic RequestMethodOPTIONSstatic RequestMethodPATCHstatic RequestMethodPOSTstatic RequestMethodPUTstatic RequestMethodTRACE
-
Constructor Summary
Constructors Constructor Description RequestMethod(java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)static RequestMethodfromString(java.lang.String value)java.lang.StringgetExpected()java.lang.StringgetName()booleanhasEntity()inthashCode()booleanisOneOf(RequestMethod... methods)MatchResultmatch(RequestMethod method)java.lang.StringtoString()java.lang.Stringvalue()static RequestMethod[]values()
-
-
-
Field Detail
-
GET
public static final RequestMethod GET
-
POST
public static final RequestMethod POST
-
PUT
public static final RequestMethod PUT
-
DELETE
public static final RequestMethod DELETE
-
PATCH
public static final RequestMethod PATCH
-
OPTIONS
public static final RequestMethod OPTIONS
-
HEAD
public static final RequestMethod HEAD
-
TRACE
public static final RequestMethod TRACE
-
ANY
public static final RequestMethod ANY
-
GET_OR_HEAD
public static final RequestMethod GET_OR_HEAD
-
-
Method Detail
-
fromString
public static RequestMethod fromString(java.lang.String value)
-
value
public java.lang.String value()
-
isOneOf
public boolean isOneOf(RequestMethod... methods)
-
match
public MatchResult match(RequestMethod method)
- Specified by:
matchin interfaceValueMatcher<RequestMethod>
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceNamedValueMatcher<RequestMethod>
-
getExpected
public java.lang.String getExpected()
- Specified by:
getExpectedin interfaceNamedValueMatcher<RequestMethod>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hasEntity
public boolean hasEntity()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
values
public static RequestMethod[] values()
-
-