| Package | Description |
|---|---|
| org.wso2.carbon.apimgt.importexport.utils |
| Modifier and Type | Method and Description |
|---|---|
static void |
ArchiveGeneratorUtil.archiveDirectory(String sourceDirectory)
Archive a provided source directory to a zipped file
|
static javax.ws.rs.core.Response |
AuthenticatorUtil.authorizeUser(javax.ws.rs.core.HttpHeaders headers)
Checks whether received credentials for accessing API is authorized for exporting and
importing APIs
|
static void |
APIExportUtil.createDirectory(String path)
Create directory at the given path
|
static void |
APIExportUtil.exportAPIDocumentation(List<org.wso2.carbon.apimgt.api.model.Documentation> docList,
org.wso2.carbon.apimgt.api.model.APIIdentifier apiIdentifier,
org.wso2.carbon.registry.api.Registry registry)
Retrieve documentation for the exporting API and store it in the archive directory
FILE, INLINE and URL documentations are handled
|
static void |
APIExportUtil.exportSequences(org.wso2.carbon.apimgt.api.model.API api,
org.wso2.carbon.apimgt.api.model.APIIdentifier apiIdentifier,
org.wso2.carbon.registry.api.Registry registry)
Retrieve available custom sequences and API specific sequences for API export
|
static void |
APIExportUtil.exportWSDL(org.wso2.carbon.apimgt.api.model.APIIdentifier apiIdentifier,
org.wso2.carbon.registry.api.Registry registry)
Retrieve WSDL for the exporting API and store it in the archive directory
|
static org.wso2.carbon.apimgt.api.APIProvider |
APIExportUtil.getProvider(String userName)
Retrieve API provider
|
static void |
APIImportUtil.initializeProvider(String currentUserName)
This method initializes the Provider when there is a direct request to import an API
|
static javax.ws.rs.core.Response |
APIExportUtil.retrieveApiToExport(org.wso2.carbon.apimgt.api.model.APIIdentifier apiID,
String userName)
This method retrieves all meta information and registry resources required for an API to
recreate
|
Copyright © 2018 WSO2 Inc. All rights reserved.