public class AAIRestInterface extends Object
Modifier and Type | Field and Description |
---|---|
String |
certificatePath
The certificate path.
|
Constructor and Description |
---|
AAIRestInterface(String certPath)
Instantiates a new AAI rest interface.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Delete(String sourceID,
String transId,
String path)
Delete.
|
String |
encodeURL(String nodeKey)
Encode URL.
|
String |
getRestSrvrBaseURL()
Gets the rest srvr base URL.
|
javax.ws.rs.core.Response |
RestGet(String fromAppId,
String transId,
String requestUri,
boolean xml)
Rest get.
|
javax.ws.rs.core.Response |
RestPost(String fromAppId,
String transId,
String path,
String payload,
boolean xml)
Rest post.
|
javax.ws.rs.core.Response |
RestPut(String fromAppId,
String transId,
String path,
String payload,
boolean xml)
Rest put.
|
void |
SetRestSrvrBaseURL(String baseURL)
Sets the rest srvr base URL.
|
public String certificatePath
public AAIRestInterface(String certPath)
certPath
- the cert pathpublic String encodeURL(String nodeKey) throws UnsupportedEncodingException
nodeKey
- the node keyUnsupportedEncodingException
- the unsupported encoding exceptionpublic void SetRestSrvrBaseURL(String baseURL)
baseURL
- the base URLpublic String getRestSrvrBaseURL()
public javax.ws.rs.core.Response RestGet(String fromAppId, String transId, String requestUri, boolean xml) throws UnsupportedEncodingException
fromAppId
- the from app idtransId
- the trans idrequestUri
- the request urixml
- the xmlUnsupportedEncodingException
public boolean Delete(String sourceID, String transId, String path)
sourceID
- the source IDtransId
- the trans idpath
- the pathpublic javax.ws.rs.core.Response RestPut(String fromAppId, String transId, String path, String payload, boolean xml)
fromAppId
- the from app idtransId
- the trans idpath
- the pathpayload
- the payloadxml
- the xmlCopyright © 2017. All rights reserved.