public class PolicyRestInterface extends PolicyRestInt implements PolicyRestInterfaceIfc
requestDateFormat
Constructor and Description |
---|
PolicyRestInterface() |
Modifier and Type | Method and Description |
---|---|
<T> void |
Delete(T t,
RequestDetails r,
String sourceID,
String path,
RestObject<T> restObject)
Delete.
|
<T> void |
Get(T t,
String sourceId,
String path,
RestObject<T> restObject)
Gets the.
|
<T> T |
getInstance(Class<T> clazz) |
void |
initRestClient()
Inits the rest client.
|
void |
logRequest(RequestDetails r)
Log request.
|
<T> void |
Post(T t,
org.json.simple.JSONObject requestDetails,
String uuid,
String path,
RestObject<T> restObject)
Post.
|
public void initRestClient()
PolicyRestInterfaceIfc
initRestClient
in interface PolicyRestInterfaceIfc
public <T> void Get(T t, String sourceId, String path, RestObject<T> restObject) throws Exception
PolicyRestInterfaceIfc
Get
in interface PolicyRestInterfaceIfc
T
- the generic typet
- the tsourceId
- the source idpath
- the pathrestObject
- the rest objectException
- the exceptionpublic <T> void Delete(T t, RequestDetails r, String sourceID, String path, RestObject<T> restObject)
PolicyRestInterfaceIfc
Delete
in interface PolicyRestInterfaceIfc
T
- the generic typet
- the tr
- the rsourceID
- the source IDpath
- the pathrestObject
- the rest objectpublic <T> void Post(T t, org.json.simple.JSONObject requestDetails, String uuid, String path, RestObject<T> restObject) throws Exception
PolicyRestInterfaceIfc
Post
in interface PolicyRestInterfaceIfc
T
- the generic typet
- the trequestDetails
- the ruuid
- the source IDpath
- the pathrestObject
- the rest objectException
- the exceptionpublic <T> T getInstance(Class<T> clazz) throws IllegalAccessException, InstantiationException
public void logRequest(RequestDetails r)
PolicyRestInt
logRequest
in interface PolicyRestInterfaceIfc
logRequest
in class PolicyRestInt
r
- the rCopyright © 2017. All rights reserved.