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
IOException
public int put(String restServiceUrl, Map<String,Object> attributes) throws IOException
IOException
public int delete(String restServiceUrl) throws IOException
IOException
public int post(String restServiceUrl, Map<String,String> postData) throws IOException
IOException
public void authenticateIfSaslAuthenticationRequested() throws IOException
IOException
public void logout() throws IOException
IOException
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.