Package org.microproxy.http
Class HttpMethod
java.lang.Object
org.microproxy.http.HttpMethod
An HTTP request method. Well-known methods are interned, so
== works for them.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HttpMethodTheCONNECTrequest method.static final HttpMethodTheDELETErequest method.static final HttpMethodTheGETrequest method.static final HttpMethodTheHEADrequest method.static final HttpMethodTheOPTIONSrequest method.static final HttpMethodThePATCHrequest method.static final HttpMethodThePOSTrequest method.static final HttpMethodThePUTrequest method.static final HttpMethodTheTRACErequest method. -
Method Summary
-
Field Details
-
GET
TheGETrequest method. -
HEAD
TheHEADrequest method. -
POST
ThePOSTrequest method. -
PUT
ThePUTrequest method. -
DELETE
TheDELETErequest method. -
CONNECT
TheCONNECTrequest method. -
OPTIONS
TheOPTIONSrequest method. -
TRACE
TheTRACErequest method. -
PATCH
ThePATCHrequest method.
-
-
Method Details
-
valueOf
Returns the method with the given (case-sensitive) name.- Parameters:
name- method token- Returns:
- the interned well-known method or a new extension method
- Throws:
IllegalArgumentException- if the name is not a valid HTTP token
-
name
Returns the case-sensitive method name.- Returns:
- the case-sensitive method name
-
equals
-
hashCode
public int hashCode() -
toString
-