| Modifier and Type | Class and Description |
|---|---|
static class |
Resource.Response |
| Modifier and Type | Field and Description |
|---|---|
static String |
ENCODE |
static String |
JSON_CONTENT_TYPE |
static String |
METHOD_GET |
static String |
METHOD_POST |
static String |
METHOD_PUT |
static String |
XML_CONTENT_TYPE |
| Constructor and Description |
|---|
Resource(String uri,
String key) |
Resource(String uri,
String key,
boolean testFlag) |
Resource(String uri,
String key,
boolean testFlag,
String contentType) |
Resource(String uri,
String key,
String contentType) |
| Modifier and Type | Method and Description |
|---|---|
Resource.Response |
delete(String path,
Formattable data)
DELETE method.
|
Resource.Response |
get(String path,
Formattable data)
GET method.
|
String |
getContentType() |
Resource.Response |
post(String path,
Formattable data)
POST method.
|
Resource.Response |
put(String path,
Formattable data)
PUT method.
|
public static final String METHOD_POST
public static final String METHOD_GET
public static final String METHOD_PUT
public static final String ENCODE
public static final String XML_CONTENT_TYPE
public static final String JSON_CONTENT_TYPE
public Resource.Response post(String path, Formattable data) throws AuthyException
path - data - AuthyExceptionpublic Resource.Response get(String path, Formattable data) throws AuthyException
path - data - AuthyExceptionpublic Resource.Response put(String path, Formattable data) throws AuthyException
path - data - AuthyExceptionpublic Resource.Response delete(String path, Formattable data) throws AuthyException
path - data - AuthyExceptionpublic String getContentType()
Copyright © 2019. All rights reserved.