org.apache.isis.viewer.restfulobjects.applib
Enum HttpMethod
java.lang.Object
java.lang.Enum<HttpMethod>
org.apache.isis.viewer.restfulobjects.applib.HttpMethod
- All Implemented Interfaces:
- Serializable, Comparable<HttpMethod>
public enum HttpMethod
- extends Enum<HttpMethod>
|
Method Summary |
String |
getJavaxRsMethod()
|
void |
setUpArgs(ClientRequestConfigurer clientRequestConfigurer,
JsonRepresentation requestArgs)
It's a bit nasty that we need to ask for the UriBuilderImpl as
well as the ClientRequest, but that's because the
ClientRequest does not allow us to setup raw query strings (only
query name/arg pairs) |
static HttpMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static HttpMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
GET
public static final HttpMethod GET
PUT
public static final HttpMethod PUT
DELETE
public static final HttpMethod DELETE
POST
public static final HttpMethod POST
values
public static HttpMethod[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (HttpMethod c : HttpMethod.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static HttpMethod valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
getJavaxRsMethod
public String getJavaxRsMethod()
setUpArgs
public void setUpArgs(ClientRequestConfigurer clientRequestConfigurer,
JsonRepresentation requestArgs)
- It's a bit nasty that we need to ask for the
UriBuilderImpl as
well as the ClientRequest, but that's because the
ClientRequest does not allow us to setup raw query strings (only
query name/arg pairs)
- Parameters:
restEasyRequest - uriBuilder - - that sits underneath the restEasyRequestrequestArgs -
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.