Distribution operations - script to Java migration
For the Distribution operations, not all of the script operations from the Script API are implemented in the Java™ API. Alternative Java code is provided for those script operations that are not implemented in the Java API.
The following distribution script operations can be achieved by
using external JARs.
- getFtp
- sendFtp
The following distribution script operations can be achieved by
using the java.net package.
- getFullHTTPResponse
- getHTTPResponse
- saveMultipartRequestData
- sendHttp
- sendHttpString
- sendMultipartPost
The following distribution script operations can be achieved by
using the javax.mail.* package.
- sendEmail
- sendHTMLEmail
The following distribution Java methods
can be achieved by using the javax.mail.* package.
- setHttpServletResponseHeader
- setHttpServletResponseStatus
RoutingManager
For the Distribution script
operations, the following alternative Java code
is provided.
Script operation | Alternative Java code |
---|---|
getDistributionByName | getDistribution |
createDataSource | createDataSource |
Distribution | createDistribution |
String createDataSource(String name, String type [, HashMap extraAttribs]) | DataSource createDataSource(String name, String type) |
Distribution new Distribution(String name, String type [, HashMap extraAttribs]) | Distribution createDistribution(String name, String type) |
getDistributionByName(String name) | getDistribution (String name) |