public static class RestStressTestClient.RestClient extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
RESPONSE_AUTHENTICATION_REQUIRED |
static int |
RESPONSE_OK |
static int |
RESPONSE_PUT_CREATE_OK |
static int |
RESPONSE_PUT_UPDATE_OK |
| Constructor and Description |
|---|
RestClient(String brokerUrl,
String username,
String password,
String saslMechanism) |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticateIfSaslAuthenticationRequested() |
int |
delete(String restServiceUrl) |
List<Map<String,Object>> |
get(String restServiceUrl) |
void |
logout() |
int |
post(String restServiceUrl,
Map<String,String> postData) |
int |
put(String restServiceUrl,
Map<String,Object> attributes) |
public static final int RESPONSE_PUT_CREATE_OK
public static final int RESPONSE_PUT_UPDATE_OK
public static final int RESPONSE_OK
public static final int RESPONSE_AUTHENTICATION_REQUIRED
public List<Map<String,Object>> get(String restServiceUrl) throws IOException
IOExceptionpublic int put(String restServiceUrl, Map<String,Object> attributes) throws IOException
IOExceptionpublic int delete(String restServiceUrl) throws IOException
IOExceptionpublic int post(String restServiceUrl, Map<String,String> postData) throws IOException
IOExceptionpublic void authenticateIfSaslAuthenticationRequested()
throws IOException
IOExceptionpublic void logout()
throws IOException
IOExceptionCopyright © 2006–2016 The Apache Software Foundation. All rights reserved.