|
Cisco Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cisco.scabb.servconf.mgmt.ImportExportApi
public class ImportExportApi
An API for import/export actions. Import/Export of Service Configuration Elements is in CSV format. Import/Export of a Service Configuration is in XML format.
| Constructor Summary | |
|---|---|
ImportExportApi()
|
|
| Method Summary | |
|---|---|
static void |
exportFlavors(java.util.List flavors,
FlavorType flavorType,
java.io.File file)
Exports flavors of a specified type to a specified file in a CSV format |
static void |
exportFlavors(java.util.List flavors,
FlavorType flavorType,
java.io.OutputStream outStream)
Exports flavors of a specified type to a given output-stream in a CSV format |
static void |
exportFlavorsToEasyFormat(java.util.List flavors,
java.io.File file)
Exports flavors of a specified type to a specified file in a Easy CSV format |
static void |
exportProtocols(java.util.List protocols,
java.io.File file)
Exports protocols to a specified file in a CSV format |
static void |
exportProtocols(java.util.List protocols,
java.io.OutputStream outStream)
Exports protocols to a given output-stream in a CSV format |
static void |
exportServiceConfiguration(ServiceConfig servConf,
java.io.File f)
exports the specified Service Configuration to the specified file. |
static void |
exportServices(ServiceConfig servConf,
java.io.File file)
Exports services from a given Service Configuration to a specified file in a CSV format |
static void |
exportServices(ServiceConfig servConf,
java.io.OutputStream outStream)
Exports services from a given Service Configuration to a given output-stream in a CSV format |
static void |
exportZones(java.util.List zones,
java.io.File file)
Exports zones to a specified file in a CSV format |
static void |
exportZones(java.util.List zones,
java.io.OutputStream outStream)
Exports zones to a given output-stream in a CSV format |
static void |
exportZonesToEasyFormat(java.util.List zones,
java.io.File file)
Exports zones to a specified file in a Easy CSV format |
static void |
importFlavors(ServiceConfig servConf,
FlavorType flavorType,
java.io.File file)
Imports flavors of a specified type from a specified CSV file |
static void |
importFlavors(ServiceConfig servConf,
FlavorType flavorType,
java.io.InputStream inStream)
Imports flavors of a specified type from a given input-stream |
static void |
importFlavorsFromEasyFormat(ServiceConfig servConf,
java.io.File file)
Imports flavors of a specified type from a specified CSV file in Easy Format |
static void |
importHttpRefererFlavorsFromEasyFormat(ServiceConfig servConf,
java.io.File file)
Imports flavors of a HTTP Referer from a specified CSV file in Easy Format |
static void |
importProtocols(ServiceConfig servConf,
java.io.File file)
Imports protocols from a specified CSV file |
static void |
importProtocols(ServiceConfig servConf,
java.io.InputStream inStream)
Imports protocols from a given input-stream |
static ServiceConfig |
importServiceConfiguration(java.io.File f)
Imports a Service Configuration from the specified file. |
static void |
importServices(ServiceConfig servConf,
java.io.File file)
Imports services from a specified CSV file |
static void |
importServices(ServiceConfig servConf,
java.io.InputStream inStream)
Imports services from a specified CSV file |
static void |
importZones(ServiceConfig servConf,
java.io.File file)
Imports zones from a specified CSV file |
static void |
importZones(ServiceConfig servConf,
java.io.InputStream inStream)
Imports zones from a given input-stream |
static void |
importZonesFromEasyFormat(ServiceConfig servConf,
java.io.File file)
Imports zones from a specified CSV file in Easy Format |
static void |
loadListArray(ServiceConfig servConf,
java.io.InputStream inStream)
Deprecated. This function is deprecated - only used for 2.57 host list and ip list It converts the 2.57 csv file of lists into 3.0 HTTP URL flavor for the 2.57 host lists and zone list for the 2.57 ip lists. For loading 3.0 csv files please use the functions #importFlavors and #importZones |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImportExportApi()
| Method Detail |
|---|
public static void exportServiceConfiguration(ServiceConfig servConf,
java.io.File f)
throws java.io.FileNotFoundException,
ImportExportException
servConf - the Service Configuration to exportf - the file to export to
java.io.FileNotFoundException
ImportExportException - if an error occurs during export
public static ServiceConfig importServiceConfiguration(java.io.File f)
throws ImportExportException,
java.io.IOException
f - the file containing the Service Configuration to import
ImportExportException - if an error occurs during import
java.io.IOException
public static void importFlavors(ServiceConfig servConf,
FlavorType flavorType,
java.io.File file)
throws ImportExportException
servConf - the Service Configuration to import the flavors toflavorType - the type of the imported flavorsfile - the CSV file to import from
ImportExportException - if an error occurs during importFlavorType
public static void importFlavors(ServiceConfig servConf,
FlavorType flavorType,
java.io.InputStream inStream)
throws ImportExportException
servConf - the Service Configuration to import the flavors toflavorType - the type of the imported flavorsinStream - the input-stream to import from
ImportExportException - if an error occurs during importFlavorType
public static void importFlavorsFromEasyFormat(ServiceConfig servConf,
java.io.File file)
throws ImportExportException
servConf - the Service Configuration to import the flavors tofile - the CSV file to import from
ImportExportException - if an error occurs during import
public static void importHttpRefererFlavorsFromEasyFormat(ServiceConfig servConf,
java.io.File file)
throws ImportExportException
servConf - the Service Configuration to import the flavors tofile - the CSV file to import from
ImportExportException - if an error occurs during import
public static void importZones(ServiceConfig servConf,
java.io.File file)
throws ImportExportException
servConf - the Service Configuration to import the zones tofile - the CSV file to import from
ImportExportException - if an error occurs during import
public static void importZones(ServiceConfig servConf,
java.io.InputStream inStream)
throws ImportExportException
servConf - the Service Configuration to import the zones toinStream - the input-stream to import from
ImportExportException - if an error occurs during import
public static void importZonesFromEasyFormat(ServiceConfig servConf,
java.io.File file)
throws ImportExportException
servConf - the Service Configuration to import the zones tofile - the CSV file to import from
ImportExportException - if an error occurs during import
public static void importProtocols(ServiceConfig servConf,
java.io.File file)
throws ImportExportException
servConf - the Service Configuration to import the protocols tofile - the CSV file to import from
ImportExportException - if an error occurs during import
public static void importProtocols(ServiceConfig servConf,
java.io.InputStream inStream)
throws ImportExportException
servConf - the Service Configuration to import the protocols toinStream - the input-stream to import from
ImportExportException - if an error occurs during import
public static void importServices(ServiceConfig servConf,
java.io.File file)
throws ImportExportException
servConf - the Service Configuration to import the services tofile - the CSV file to import from
ImportExportException - if an error occurs during import
public static void importServices(ServiceConfig servConf,
java.io.InputStream inStream)
throws ImportExportException
servConf - the Service Configuration to import the services toinStream - the input-stream to import from
ImportExportException - if an error occurs during import
public static void exportProtocols(java.util.List protocols,
java.io.File file)
throws ImportExportException
protocols - the list of protocols to exportfile - the file to export to
ImportExportException - if an error occurs during export
public static void exportProtocols(java.util.List protocols,
java.io.OutputStream outStream)
throws ImportExportException
protocols - the list of protocols to exportoutStream - the output-stream to export to
ImportExportException - if an error occurs during export
public static void exportZones(java.util.List zones,
java.io.File file)
throws ImportExportException
zones - the list of zones to exportfile - the file to export to
ImportExportException - if an error occurs during export
public static void exportZones(java.util.List zones,
java.io.OutputStream outStream)
throws ImportExportException
zones - the list of zones to exportoutStream - the output-stream to export to
ImportExportException - if an error occurs during export
public static void exportZonesToEasyFormat(java.util.List zones,
java.io.File file)
throws ImportExportException
zones - the list of zones to exportfile - the file to export to
ImportExportException - if an error occurs during export
public static void exportFlavors(java.util.List flavors,
FlavorType flavorType,
java.io.File file)
throws ImportExportException
flavors - the list of flavors to exportflavorType - the type of the exported flavorsfile - the file to export to
ImportExportException - if an error occurs during exportFlavorType
public static void exportFlavors(java.util.List flavors,
FlavorType flavorType,
java.io.OutputStream outStream)
throws ImportExportException
flavors - the list of flavors to exportflavorType - the type of the exported flavorsoutStream - the output-stream to export to
ImportExportException - if an error occurs during exportFlavorType
public static void exportFlavorsToEasyFormat(java.util.List flavors,
java.io.File file)
throws ImportExportException
flavors - the list of flavors to exportfile - the file to export to
ImportExportException - if an error occurs during export
public static void exportServices(ServiceConfig servConf,
java.io.File file)
throws ImportExportException
servConf - the Service Configuration to export the services fromfile - the file to export to
ImportExportException - if an error occurs during export
public static void exportServices(ServiceConfig servConf,
java.io.OutputStream outStream)
throws ImportExportException
servConf - the Service Configuration to export the services fromoutStream - the output-stream to export to
ImportExportException - if an error occurs during export
public static void loadListArray(ServiceConfig servConf,
java.io.InputStream inStream)
throws ImportExportException
ImportExportException
|
Cisco Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||