public interface MockOrRestClient extends VitamAutoCloseable
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
|
String getResourcePath()
String getServiceUrl()
void checkStatus() throws VitamApplicationServerException
VitamApplicationServerException
- if the Server is unavailablevoid checkStatus(javax.ws.rs.core.MultivaluedHashMap<String,Object> headers) throws VitamApplicationServerException
headers
- VitamApplicationServerException
- if the Server is unavailablevoid consumeAnyEntityAndClose(javax.ws.rs.core.Response response)
response
- void close()
close
in interface AutoCloseable
close
in interface VitamAutoCloseable
Copyright © 2018 Vitam. All rights reserved.