|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.pepper.platform.program.PackageLocator
public class PackageLocator
Interface providing access to and launch of other programs. Used for interprocess communication.
Constructor Summary | |
---|---|
PackageLocator()
|
Method Summary | |
---|---|
static List |
findPackageInfo(String type)
Returns a list of com.pepper.platform.program.PackageInfo objects that match the given type |
static List |
findPackageInfoByContentType(String contentType,
String fileExtension)
Return a List of com.pepper.platform.programPackageInfo objects (whether running or not) that support the specified mimeType and extension |
static List |
findPackages(String type)
Return name and ID of all packages in the Keeper of the given type, whether they're running or not. |
static List |
findPackagesByContentType(String contentType,
String fileExtension)
Return name and ID of all packages in the Keeper of that support the specified mimeType and fileExtension, whether they're running or not. |
static List |
findPackagesByDomain(String originURL)
Return name and ID of all packages in the Keeper of that support pages downloaded from the specified originURL |
static PackageInstance |
findRunningPackage(String packageID)
Find a running package instance. |
static void |
launchPackage(String packageID,
com.pepper.platform.process.ProcessListener listener,
String initialPageURL,
boolean showPackage)
Launch package if it's not running, call the listener once the package is done launching. |
static void |
launchPackage(String packageID,
String ppldURL,
com.pepper.platform.process.ProcessListener listener,
String initialPageURL,
boolean showPackage)
Launch package if it's not running, call the listener once the package is done launching. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PackageLocator()
Method Detail |
---|
public static PackageInstance findRunningPackage(String packageID)
packageID
- ID of the package to find.
public static List findPackages(String type)
type
- Type of package, as defined in the program's PPLD.
public static List findPackageInfo(String type)
type
- Type of package, as defined in the program's PPLD.public static List findPackagesByContentType(String contentType, String fileExtension)
contentType
- The contentType/mimeType to search forfileExtension
- The extension of the file of type contentType
public static List findPackageInfoByContentType(String contentType, String fileExtension)
contentType
- The contentType/mimeType to search forfileExtension
- The extension of the file of type contentType
public static List findPackagesByDomain(String originURL)
originURL
- The url that a file was downloaded from
public static void launchPackage(String packageID, com.pepper.platform.process.ProcessListener listener, String initialPageURL, boolean showPackage)
TODO: make sure listener only gets what it's supposed to
packageID
- ID of the package to launch.listener
- Listener to notify when the package has finished launching.
May be null.initialPageURL
- URL (pepper: or http) of the page to display. May be null.showPackage
- true to show the package when it is launchedpublic static void launchPackage(String packageID, String ppldURL, com.pepper.platform.process.ProcessListener listener, String initialPageURL, boolean showPackage)
TODO: make sure listener only gets what it's supposed to
packageID
- ID of the package to launch.ppldURL
- the url representing the ppld file to launchlistener
- Listener to notify when the package has finished launching.
May be null.initialPageURL
- URL (pepper: or http) of the page to display. May be null.showPackage
- true to show the package when it is launched
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |