public class AbstractMockClient extends Object implements MockOrRestClient
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractMockClient.FakeInboundResponse
Fake Inbound Response for Mock client support
|
| Modifier and Type | Field and Description |
|---|---|
protected static String |
INTERNAL_SERVER_ERROR |
| Constructor and Description |
|---|
AbstractMockClient() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkStatus()
Check the status from the service
|
void |
checkStatus(javax.ws.rs.core.MultivaluedHashMap<String,Object> headers)
Check the status from the service
used to passe "X-SSL-CLIENT-CERT" header that contain a pem certificate
|
void |
close()
Close the underneath http client
|
void |
consumeAnyEntityAndClose(javax.ws.rs.core.Response response)
Helper when an error occurs on client usage side to consume response however
|
String |
getResourcePath()
Get the resource path of the server.
|
String |
getServiceUrl()
Get the service URL
|
protected static final String INTERNAL_SERVER_ERROR
public void checkStatus()
MockOrRestClientcheckStatus in interface MockOrRestClientpublic void checkStatus(javax.ws.rs.core.MultivaluedHashMap<String,Object> headers) throws VitamApplicationServerException
MockOrRestClientcheckStatus in interface MockOrRestClientVitamApplicationServerException - if the Server is unavailablepublic void close()
MockOrRestClientclose in interface MockOrRestClientclose in interface VitamAutoCloseableclose in interface AutoCloseablepublic String getResourcePath()
MockOrRestClientgetResourcePath in interface MockOrRestClientpublic String getServiceUrl()
MockOrRestClientgetServiceUrl in interface MockOrRestClientpublic void consumeAnyEntityAndClose(javax.ws.rs.core.Response response)
MockOrRestClientconsumeAnyEntityAndClose in interface MockOrRestClientCopyright © 2018 Vitam. All rights reserved.