org.gcube.soa3.connector.rest
Class RestManager
java.lang.Object
org.gcube.soa3.connector.rest.RestManager
public class RestManager
- extends Object
Singleton class which manages the REST calls for SOA3
- Author:
- Ciro Formisano (ENG)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static RestManager getInstance(String soa3Endpoint)
sendMessage
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)
- Sends the message
- Parameters:
path - the path of the callheaders - the headers mapbody - the body of the messagemediaType - the media typeacceptMediaType - the response media typetype - the response type
- Returns:
- the response
Copyright © 2013. All Rights Reserved.