public class RequestHandler extends Object
| Constructor and Description |
|---|
RequestHandler() |
| Modifier and Type | Method and Description |
|---|---|
static String |
check(String uri,
Secret apiKey)
Check string.
|
static String |
getProgress(String uri,
int scanId,
Secret apiKey)
Get Scan Progress.
|
static String |
getRisk(String uri,
int scanId,
Secret apiKey)
Get Scan Global risk.
|
static String |
runRequest(String uri,
Secret apiKey,
String input)
Run request string.
|
static String |
upload(String uri,
Secret apiKey,
String file,
String plan,
String platform)
Upload string.
|
public static String getProgress(String uri, int scanId, Secret apiKey) throws IOException
uri - the uriscanId - the scan idapiKey - the api keyIOException - the io exceptionpublic static String getRisk(String uri, int scanId, Secret apiKey) throws IOException
uri - the uriscanId - the scan idapiKey - the api keyIOException - the io exceptionpublic static String check(String uri, Secret apiKey) throws IOException
uri - the uriapiKey - the api keyIOException - the io exceptionpublic static String runRequest(String uri, Secret apiKey, String input) throws IOException
uri - the uriapiKey - the api keyinput - the inputIOException - the io exceptionpublic static String upload(String uri, Secret apiKey, String file, String plan, String platform) throws IOException
uri - the uriapiKey - the api keyfile - the fileplan - the planplatform - the platformIOException - the io exceptionCopyright © 2016–2020. All rights reserved.