public class HttpMethod extends java.lang.Object implements com.aspose.ms.System.IEquatable<HttpMethod>
Represents utility class for retrieving and comparing standard HTTP methods.
| Constructor and Description |
|---|
HttpMethod(java.lang.String method)
Initializes a new instance of the
HttpMethod class with a specific HTTP method. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(HttpMethod other)
Indicates whether the current object is equal to another object of the same type.
|
boolean |
equals(java.lang.Object obj)
Determines whether the specified
Object, is equal to this instance. |
static HttpMethod |
getDelete()
Represents an HTTP DELETE protocol method.
|
static HttpMethod |
getGet()
Represents an HTTP GET protocol method.
|
java.lang.String |
getName()
Gets the method name.
|
static HttpMethod |
getPost()
Represents an HTTP POST protocol method.
|
static HttpMethod |
getPut()
Represents an HTTP PUT protocol method.
|
int |
hashCode()
Returns a hash code for this instance.
|
static boolean |
op_Equality(HttpMethod left,
HttpMethod right)
Implements the equality operator.
|
static boolean |
op_Inequality(HttpMethod left,
HttpMethod right)
Implements the equality operator.
|
static HttpMethod |
to_HttpMethod(java.lang.String name)
Performs an explicit conversion from
String to HttpMethod. |
java.lang.String |
toString()
Returns a
String that represents this instance. |
public HttpMethod(java.lang.String method)
Initializes a new instance of the HttpMethod class with a specific HTTP method.
method - The method.public static HttpMethod getGet()
Represents an HTTP GET protocol method.
Value: The HTTP GET method.public static HttpMethod getPut()
Represents an HTTP PUT protocol method.
Value: The HTTP PUT protocol method.public static HttpMethod getPost()
Represents an HTTP POST protocol method.
Value: The HTTP POST protocol method.public static HttpMethod getDelete()
Represents an HTTP DELETE protocol method.
Value: The HTTP DELETE protocol method.public static boolean op_Equality(HttpMethod left, HttpMethod right)
Implements the equality operator.
left - The left operand.right - The left operand.public static boolean op_Inequality(HttpMethod left, HttpMethod right)
Implements the equality operator.
left - The left operand.right - The left operand.public static HttpMethod to_HttpMethod(java.lang.String name)
Performs an explicit conversion from String to HttpMethod.
name - The http-method name.public java.lang.String getName()
Gets the method name.
Value: The name.public boolean equals(HttpMethod other)
Indicates whether the current object is equal to another object of the same type.
other - An object to compare with this object.other parameter; otherwise, false.public boolean equals(java.lang.Object obj)
Determines whether the specified Object, is equal to this instance.
equals in interface com.aspose.ms.System.IEquatable<HttpMethod>equals in class java.lang.Objectobj - The Object to compare with this instance.true if the specified Object is equal to this instance; otherwise, false.public int hashCode()
Returns a hash code for this instance.
hashCode in class java.lang.Objectpublic java.lang.String toString()
Returns a String that represents this instance.
toString in class java.lang.ObjectString that represents this instance.