public final class Method extends Object
See: RFC 7231, Section 4
| Modifier and Type | Field and Description |
|---|---|
static Method |
ACL |
static Method |
BASELINE_CONTROL |
static Method |
BIND |
static Method |
CHECKIN |
static Method |
CHECKOUT |
static Method |
CONNECT |
static Method |
COPY |
static Method |
DELETE |
static Method |
GET |
static Method |
HEAD |
static Method |
LABEL |
static Method |
LINK |
static Method |
LOCK |
static Method |
MERGE |
static Method |
MKACTIVITY |
static Method |
MKCALENDAR |
static Method |
MKCOL |
static Method |
MKREDIRECTREF |
static Method |
MKWORKSPACE |
static Method |
MOVE |
static Method |
OPTIONS |
static Method |
ORDERPATCH |
static Method |
PATCH |
static Method |
POST |
static Method |
PROPFIND |
static Method |
PROPPATCH |
static Method |
PUT |
static Method |
REBIND |
static Method |
REPORT |
static Method |
SEARCH |
static Method |
TRACE |
static Method |
UNCHECKOUT |
static Method |
UNLINK |
static Method |
UNLOCK |
static Method |
UPDATE |
static Method |
UPDATEREDIRECTREF |
static Method |
VERSION_CONTROL |
| Modifier and Type | Method and Description |
|---|---|
static Method |
create(String name,
boolean safe,
boolean idempotent,
boolean requestBodyEmpty)
|
boolean |
equals(Object o)
Two
Method objects are considered equal when their names are equal using a case-sensitive comparison. |
static Method |
forName(String name)
Retrieves the
Method for the supplied name. |
String |
getName() |
static Collection<Method> |
getPredefinedMethods() |
int |
hashCode() |
boolean |
isIdempotent()
A method is "idempotent" if the client intended either no modification, or a consistent modification.
|
boolean |
isRequestBodyEmpty()
Identifies whether the request body for this method is empty or not.
|
boolean |
isSafe()
A
Method is "safe" if it is only meant for retrieval. |
String |
toString() |
public static final Method GET
public static final Method HEAD
public static final Method OPTIONS
public static final Method TRACE
public static final Method PUT
public static final Method DELETE
public static final Method POST
public static final Method CONNECT
public static final Method ACL
public static final Method BASELINE_CONTROL
public static final Method BIND
public static final Method CHECKIN
public static final Method CHECKOUT
public static final Method COPY
public static final Method LABEL
public static final Method LINK
public static final Method LOCK
public static final Method MERGE
public static final Method MKACTIVITY
public static final Method MKCALENDAR
public static final Method MKCOL
public static final Method MKREDIRECTREF
public static final Method MKWORKSPACE
public static final Method MOVE
public static final Method ORDERPATCH
public static final Method PATCH
public static final Method PROPFIND
public static final Method PROPPATCH
public static final Method REBIND
public static final Method REPORT
public static final Method SEARCH
public static final Method UNCHECKOUT
public static final Method UNLINK
public static final Method UNLOCK
public static final Method UPDATE
public static final Method UPDATEREDIRECTREF
public static final Method VERSION_CONTROL
public static Method create(String name, boolean safe, boolean idempotent, boolean requestBodyEmpty)
Method
This constructor is only required to create Method instances that are not defined in Method.name - the method name. The allowed characters are restricted. See
RFC 7230 for the characters allowed in the name.safe - true if the method is safe. See isSafe()idempotent - true if the method is idempotent. See isIdempotent()requestBodyEmpty - true if the associated request body is empty. See isRequestBodyEmpty().MethodIllegalArgumentException - if the name contains illegal characters. See
RFC 7230 for the characters allowed in the name.public boolean isSafe()
Method is "safe" if it is only meant for retrieval. In this case, the client intends no modification on
the resource. A safe method is also idempotent, see isIdempotent().Method is safepublic boolean isIdempotent()
public boolean isRequestBodyEmpty()
public boolean equals(Object o)
Method objects are considered equal when their names are equal using a case-sensitive comparison.public static Method forName(String name)
Method for the supplied name.
For example, given the name GET, this method will return GET.
name - the nameMethod with the specified name.public static Collection<Method> getPredefinedMethods()
Collection of the Method instances defined as fields in this class.Copyright 2023 Ping Identity Corp. All rights reserved.