public class RestApiStorage extends Storage
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_NAME |
| Constructor and Description |
|---|
RestApiStorage(String endpoint,
String username,
String password) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addResultAttachment(Result result,
Object attachment) |
protected Result |
createResult(String projectKey,
Result result,
List<Object> attachments) |
protected void |
deleteResult(Result result) |
protected String |
getUrl(String uri) |
protected void |
request(String url) |
protected <T> T |
requestEntity(T entity,
String url) |
addResult, addResult, addResult, addResult, addResult, addResult, addResult, addResult, getLogger, newInstance, prepareResultBeforeCreate, updateResultFromConfigurations, validateResultpublic static final String PROPERTY_NAME
public RestApiStorage(String endpoint, String username, String password) throws StorageException
StorageExceptionprotected Result createResult(String projectKey, Result result, List<Object> attachments) throws StorageException
createResult in class StorageStorageExceptionprotected void deleteResult(Result result) throws StorageException
deleteResult in class StorageStorageExceptionprotected void addResultAttachment(Result result, Object attachment) throws StorageException
StorageExceptionprotected <T> T requestEntity(T entity,
String url)
throws StorageException
StorageExceptionprotected void request(String url) throws StorageException
StorageExceptionCopyright © 2016 Etnetera a.s.. All rights reserved.