This method must be called when there are not responses pending otherwise undefined behavior will occur.
The client must not be reused after this method is called otherwise undefined behavior will occur.
4445464748495051525354
public void createTenant() { Client httpClient = new HttpClientFactory().createClient(); try { createTenant(httpClient); } finally { httpClient.destroy(); } } private void createTenant(Client httpClient) { ClientResponse tr = postNewTenant(httpClient);
5859606162636465666768
public void removeTenant() { Client httpClient = new HttpClientFactory().createClient(); try { removeTenant(httpClient); } finally { httpClient.destroy(); } } private void removeTenant(Client httpClient) { ClientResponse tenantResponse = deleteTenant(httpClient);
5758596061626364656667
public void createApplication() { Client httpClient = new HttpClientFactory().createClient(); try { createApplication(httpClient); } finally { httpClient.destroy(); } } private void createApplication(Client httpClient) { ClientResponse applicationResponse = postNewApplication(httpClient);
7273747576777879808182
public void removeApplication() { Client httpClient = new HttpClientFactory().createClient(); try { removeApplication(httpClient); } finally { httpClient.destroy(); } } private void removeApplication(Client httpClient) { String appId = getApplicationId(httpClient, appName);
4849505152535455565758
6566676869707172737475