Methods Summary |
---|
public com.sun.enterprise.deployment.Application | getApplication()Returns the origin's corresponding Application object.
return application;
|
public java.lang.String | getTopLevelRegistrationName()Returns the registration name for the top-level module associated with this
nested app client.
This method is primarily used to get a name to use in checking whether
the relevant module has been enabled or disabled for Java Web Start access.
return getApplication().getRegistrationName();
|
public boolean | isEnabled()Returns whether this content origin's appclient is enabled for Java
Web Start access.
try {
return AppclientJWSSupportInfo.getInstance().isEnabled(this);
} catch (IOException ioe) {
/*
*An IOException can occur if some infrastructure objects cannot be
*located in obtaining the instance. Very unlikely and also logged elsewhere.
*/
return false;
} catch (Exception e) {
throw new RuntimeException(e);
}
|
public java.io.File | locateGeneratedAppclientJarFile(java.lang.String generatedXMLLocation)Returns a File object for the generated app client jar file for this top-level
app client.
String generatedAppClientJarName = getTopLevelRegistrationName() + DeploymentImplConstants.ClientJarSuffix;
File generatedAppClientJar = new File (generatedXMLLocation, generatedAppClientJarName);
if ( ! generatedAppClientJar.exists()) {
throw new FileNotFoundException(generatedAppClientJar.getAbsolutePath());
}
return generatedAppClientJar;
|
public java.lang.String | toString()Returns a string representation of this content origin.
StringBuilder sb = new StringBuilder(super.toString());
sb.append(" registration name=").append(application.getRegistrationName());
// .append(", enabled=").append(enabled);
return sb.toString();
|