org.gcube.security.soa3.connector.engine
Class RestManager

java.lang.Object
  extended by org.gcube.security.soa3.connector.engine.RestManager

public class RestManager
extends Object

Singleton class which manages the REST calls for SOA3

Author:
Ciro Formisano (ENG)

Method Summary
static RestManager getInstance(String soa3Endpoint)
           
static void main(String[] args)
           
 String sendMessage(String path, Map<String,String> headers, String body, 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

getInstance

public static RestManager getInstance(String soa3Endpoint)

sendMessage

public String sendMessage(String path,
                          Map<String,String> headers,
                          String body,
                          javax.ws.rs.core.MediaType mediaType,
                          javax.ws.rs.core.MediaType acceptMediaType)
Sends the message

Parameters:
path - the path of the call
headers - the headers map
body - the body of the message
mediaType - the media type
type - the response type
Returns:
the response

main

public static void main(String[] args)


Copyright © 2013. All Rights Reserved.