Package com.sun.identity.cli.rest
Class RestCommand
- java.lang.Object
-
- com.sun.identity.cli.rest.RestCommand
-
public class RestCommand extends Object
Rest command does a rest call to OpenAM
-
-
Constructor Summary
Constructors Constructor Description RestCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringsendRestCommand(SSOTokenID ssoTokenID, URL url, String requestMethod, Map<String,String> headers, String data)Run a rest command with a SSO TokenStringsendRestCommand(URL url, String requestMethod, Map<String,String> headers, String data)Run a rest command
-
-
-
Method Detail
-
sendRestCommand
public String sendRestCommand(SSOTokenID ssoTokenID, URL url, String requestMethod, Map<String,String> headers, String data) throws IOException
Run a rest command with a SSO Token- Parameters:
ssoTokenID-url-requestMethod-headers-data-- Returns:
- Throws:
IOException
-
sendRestCommand
public String sendRestCommand(URL url, String requestMethod, Map<String,String> headers, String data) throws IOException
Run a rest command- Parameters:
url-requestMethod-headers-data-- Returns:
- Throws:
IOException
-
-