|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.idoox.transport.TransportMethod
Transport methods.
Field Summary | |
static int |
_DELETE
DELETE method as integer . |
static int |
_GET
GET method as integer . |
static int |
_POST
POST method as integer . |
static int |
_PUT
PUT method as integer . |
static java.util.Set |
ALL_METHODS
Set of all transport methods. |
static TransportMethod |
DELETE
Deletes an existing resource with given URI. |
static TransportMethod |
GET
Gets data from an existing resource with given URI. |
static TransportMethod |
POST
Posts data to an existing resource with given URI. |
static TransportMethod |
PUT
Puts data to given URI. |
Constructor Summary | |
protected |
TransportMethod(int value)
Protected constructor. |
Method Summary | |
static TransportMethod |
fromInt(int value)
Returns TransportMethod instance associated with
given integer |
static TransportMethod |
fromString(java.lang.String value)
Returns TransportMethod instance associated with
given string |
java.lang.String |
toString()
|
int |
value()
Returns an associated integer value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int _POST
integer
.
public static final TransportMethod POST
null
from a client point of view. If the input
message is null
the transport supports only
one-way messages.
public static final int _GET
integer
.
public static final TransportMethod GET
public static final int _PUT
integer
.
public static final TransportMethod PUT
public static final int _DELETE
integer
.
public static final TransportMethod DELETE
public static final java.util.Set ALL_METHODS
Constructor Detail |
protected TransportMethod(int value)
Method Detail |
public int value()
integer
value.
public static TransportMethod fromInt(int value)
TransportMethod
instance associated with
given integer value.
- Parameters:
value
- integer value
- Returns:
- the transport method
- Throws:
java.lang.RuntimeException
- when invalid value is supplied.
public static TransportMethod fromString(java.lang.String value)
TransportMethod
instance associated with
given string value.
- Parameters:
value
- string value
- Returns:
- the transport method
- Throws:
java.lang.RuntimeException
- when invalid value is supplied.
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |