|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.soa3.connector.rest.RestManager
public class RestManager
Singleton class which manages the REST calls for SOA3
| Method Summary | ||
|---|---|---|
static RestManager |
getInstance(String soa3Endpoint)
|
|
static void |
main(String[] args)
|
|
|
sendMessage(String path,
Map<String,String> headers,
String body,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MediaType acceptMediaType,
Class<T> type)
Sends the message |
|
int |
sendPostMessage(String path,
Map<String,String> headers,
Object requestEntity,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MediaType acceptMediaType)
Sends the message |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static RestManager getInstance(String soa3Endpoint)
public <T extends ServiceResponse> T sendMessage(String path,
Map<String,String> headers,
String body,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MediaType acceptMediaType,
Class<T> type)
path - the path of the callheaders - the headers mapbody - the body of the messagemediaType - the media typeacceptMediaType - the response media typetype - the response type
public int sendPostMessage(String path,
Map<String,String> headers,
Object requestEntity,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MediaType acceptMediaType)
path - the path of the callheaders - the headers mapbody - the body of the messagemediaType - the media typeacceptMediaType - the response media typetype - the response type
public static void main(String[] args)
throws org.codehaus.jackson.JsonGenerationException,
org.codehaus.jackson.map.JsonMappingException,
IOException
org.codehaus.jackson.JsonGenerationException
org.codehaus.jackson.map.JsonMappingException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||