public class ApiResource extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
OS_NAME |
static String |
OS_NAME_WINDOWS |
| Constructor and Description |
|---|
ApiResource(String resource)
Initialised using api.path from mule application
|
| Modifier and Type | Method and Description |
|---|---|
static void |
deleteDirectory(String apidir) |
static String |
extractZipFile(String resourceUrl)
Extract the zip file to a temp directory and return the path as a string.
|
boolean |
fatEventedApiExists()
Check if fat-evented-api.zip exists for this API artifact.
|
String |
getApiPath()
If fat-evented-api.zip exists for the API, return its path.
|
String |
getEventedApiPath()
Path of evented-api.zip for this api artifact.
|
String |
getFatEventedApiPath()
Potential path of fat-evented-api.zip for this api artifact.
|
String |
toString() |
public static final String OS_NAME
public static final String OS_NAME_WINDOWS
public ApiResource(String resource)
resource - e.g. resource::83589b9b-6630-4c28-985d-174ee9172661:userapi:1.0.4:evented-api:zip:userapi.yamlpublic static String extractZipFile(String resourceUrl) throws IOException
resourceUrl - zip file pathIOExceptionpublic String getEventedApiPath()
public String getFatEventedApiPath()
public boolean fatEventedApiExists()
public String getApiPath()
public static void deleteDirectory(String apidir) throws IOException
IOExceptionCopyright © 2025 MuleSoft, Inc.. All rights reserved.