public class BaseClient extends Object
Modifier and Type | Field and Description |
---|---|
private org.restlet.resource.ClientResource |
client
Client, which executes request.
|
static int |
DATACITE_MOCKSERVER_PORT
Port of the Datacite mockserver
|
private static org.apache.logging.log4j.Logger |
LOG
Logger.
|
private static int |
NB_DELAY
Delay between two
NB_RETRY in ms. |
private static int |
NB_RETRY
Number of retry when an error happens.
|
Constructor and Description |
---|
BaseClient(String uri)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
org.restlet.resource.ClientResource |
getClient()
Returns the client.
|
org.apache.logging.log4j.Logger |
getLog()
Returns the logger.
|
public static final int DATACITE_MOCKSERVER_PORT
private static final org.apache.logging.log4j.Logger LOG
private static final int NB_RETRY
private static final int NB_DELAY
NB_RETRY
in ms.private volatile org.restlet.resource.ClientResource client
public BaseClient(String uri)
uri
- URI of the client's end pointCopyright © 2017–2020 CNES. All rights reserved.