|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | 列挙型定数 | フィールド | メソッド | 詳細: 列挙型定数 | フィールド | メソッド | |||||||||
java.lang.Objectjava.lang.Enum<HttpMethod>
net.jp.saf.sastruts.method.enums.HttpMethod
public enum HttpMethod
HTTPメソッドの種類を表します.
RFCで決められているメソッドに加えて、よく使われる組み合わせを表す定義も含まれます.
| 列挙型定数の概要 | |
|---|---|
ALL
GET, POST, PUT, DELETE, HEAD, OPTIONS, TRACEの組み合わせを表します. |
|
DELETE
DELETEメソッドを表します. |
|
GET
GETメソッドを表します. |
|
GET_POST
GET,POSTの組み合わせを表します. |
|
HEAD
HEADメソッドを表します. |
|
OPTIONS
OPTIONSメソッドを表します. |
|
POST
POSTメソッドを表します. |
|
PUT
PUTメソッドを表します. |
|
REST_CRUD
GET,POST,PUT,DELETEの組み合わせを表します. |
|
TRACE
TRACEメソッドを表します. |
|
| メソッドの概要 | |
|---|---|
boolean |
check(String method)
このクラスが表すHTTPメソッドに該当するか返します. |
static HttpMethod |
valueOf(String name)
指定した名前を持つこの型の列挙型定数を返します。 |
static HttpMethod[] |
values()
この列挙型の定数を含む配列を宣言されている順序で返します。 |
| クラス java.lang.Enum から継承されたメソッド |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| クラス java.lang.Object から継承されたメソッド |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| 列挙型定数の詳細 |
|---|
public static final HttpMethod GET
public static final HttpMethod POST
public static final HttpMethod PUT
public static final HttpMethod DELETE
public static final HttpMethod HEAD
public static final HttpMethod OPTIONS
public static final HttpMethod TRACE
public static final HttpMethod GET_POST
public static final HttpMethod REST_CRUD
public static final HttpMethod ALL
| メソッドの詳細 |
|---|
public static HttpMethod[] values()
for (HttpMethod c : HttpMethod.values()) System.out.println(c);
public static HttpMethod valueOf(String name)
name - 返される列挙型定数の名前
IllegalArgumentException - 指定された名前を持つ定数を
この列挙型が持っていない場合
NullPointerException - 引数が null の場合public boolean check(String method)
文字の大小は無視します.
method - HTTPメソッドの文字列
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | 列挙型定数 | フィールド | メソッド | 詳細: 列挙型定数 | フィールド | メソッド | |||||||||