public class RestMsoImplementation extends Object implements RestInterface
Constructor and Description |
---|
RestMsoImplementation() |
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.
|
void |
initMsoClient()
Instantiates a new mso rest interface.
|
void |
logRequest(RequestDetails r)
Log request.
|
void |
logRequest(RequestDetails r)
Log request.
|
<T> void |
Post(T t,
RequestDetails r,
String sourceID,
String path,
RestObject<T> restObject)
Post.
|
<T> void |
Put(T t,
RequestDetailsWrapper r,
String sourceID,
String path,
RestObject<T> restObject)
Put.
|
public void initMsoClient()
initMsoClient
in interface RestInterface
public <T> void Get(T t, String sourceId, String path, RestObject<T> restObject) throws Exception
RestInterface
Get
in interface RestInterface
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)
RestInterface
Delete
in interface RestInterface
T
- the generic typet
- the tr
- the rsourceID
- the source IDpath
- the pathrestObject
- the rest objectpublic <T> void Post(T t, RequestDetails r, String sourceID, String path, RestObject<T> restObject) throws Exception
RestInterface
Post
in interface RestInterface
T
- the generic typet
- the tr
- the rsourceID
- the source IDpath
- the pathrestObject
- the rest objectException
- the exceptionpublic void logRequest(RequestDetails r)
RestInterface
logRequest
in interface RestInterface
r
- the rpublic void logRequest(RequestDetails r)
RestInterface
logRequest
in interface RestInterface
r
- the rpublic <T> void Put(T t, RequestDetailsWrapper r, String sourceID, String path, RestObject<T> restObject) throws Exception
RestInterface
Put
in interface RestInterface
T
- the generic typet
- the tr
- the rsourceID
- the source IDpath
- the pathrestObject
- the rest objectException
- the exceptionCopyright © 2017. All rights reserved.