public class RestManager extends Object
| Modifier and Type | Method and Description |
|---|---|
static RestManager |
getInstance(String soa3Endpoint) |
static void |
main(String[] args) |
<T extends ServiceResponse> |
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
|
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 typepublic 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 typepublic static void main(String[] args) throws org.codehaus.jackson.JsonGenerationException, org.codehaus.jackson.map.JsonMappingException, IOException
org.codehaus.jackson.JsonGenerationExceptionorg.codehaus.jackson.map.JsonMappingExceptionIOExceptionCopyright © 2015. All Rights Reserved.