public class MsoRestInterface extends MsoRestInt implements MsoRestInterfaceIfc
requestDateFormat
Constructor and Description |
---|
MsoRestInterface()
Instantiates a new mso rest interface.
|
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)
Gets the single instance of MsoRestInterface.
|
void |
initMsoClient()
Inits the rest client.
|
<T> void |
Post(T t,
RequestDetails r,
String sourceID,
String path,
RestObject<T> restObject)
Post.
|
<T> void |
Put(T t,
ChangeManagementRequest r,
String sourceID,
String path,
RestObject<T> restObject)
Put.
|
logRequest
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
logRequest
public MsoRestInterface()
public void initMsoClient()
MsoRestInterfaceIfc
initMsoClient
in interface MsoRestInterfaceIfc
public <T> void Get(T t, String sourceId, String path, RestObject<T> restObject) throws Exception
MsoRestInterfaceIfc
Get
in interface MsoRestInterfaceIfc
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)
MsoRestInterfaceIfc
Delete
in interface MsoRestInterfaceIfc
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
MsoRestInterfaceIfc
Post
in interface MsoRestInterfaceIfc
T
- the generic typet
- the tr
- the rsourceID
- the source IDpath
- the pathrestObject
- the rest objectException
- the exceptionpublic <T> void Put(T t, ChangeManagementRequest r, String sourceID, String path, RestObject<T> restObject) throws Exception
MsoRestInterfaceIfc
Put
in interface MsoRestInterfaceIfc
T
- the generic typet
- the tr
- the rsourceID
- the source IDpath
- the pathrestObject
- the rest objectException
- the exceptionpublic <T> T getInstance(Class<T> clazz) throws IllegalAccessException, InstantiationException
T
- the generic typeclazz
- the clazzIllegalAccessException
- the illegal access exceptionInstantiationException
- the instantiation exceptionCopyright © 2017. All rights reserved.