public enum RestfulHttpMethod extends Enum<RestfulHttpMethod>
| Modifier and Type | Method and Description |
|---|---|
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 RestfulHttpMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RestfulHttpMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RestfulHttpMethod GET
public static final RestfulHttpMethod PUT
public static final RestfulHttpMethod DELETE
public static final RestfulHttpMethod POST
public static RestfulHttpMethod[] values()
for (RestfulHttpMethod c : RestfulHttpMethod.values()) System.out.println(c);
public static RestfulHttpMethod valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic String getJavaxRsMethod()
public void setUpArgs(ClientRequestConfigurer clientRequestConfigurer, JsonRepresentation requestArgs)
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)restEasyRequest - uriBuilder - - that sits underneath the restEasyRequestrequestArgs - Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.