use of com.sun.enterprise.deployment.runtime.JavaWebStartAccessDescriptor in project Payara by payara.
the class NamingConventions method defaultUserFriendlyContextRoot.
public static String defaultUserFriendlyContextRoot(ApplicationClientDescriptor descriptor) {
String ufContextRoot;
/*
* Default for stand-alone clients: appName
* Default for nested clients: earAppName/uri-to-client-within-EAR-without-.jar
*/
if (descriptor.getApplication().isVirtual()) {
/*
* Stand-alone client.
*/
ufContextRoot = descriptor.getApplication().getAppName();
} else {
ufContextRoot = descriptor.getApplication().getAppName() + "/" + uriToNestedClient(descriptor);
}
/*
* The developer might have set the value in the sun-application-client.xml
* descriptor.
*/
final JavaWebStartAccessDescriptor jws = descriptor.getJavaWebStartAccessDescriptor();
if (jws != null && jws.getContextRoot() != null) {
ufContextRoot = jws.getContextRoot();
}
return ufContextRoot;
}
use of com.sun.enterprise.deployment.runtime.JavaWebStartAccessDescriptor in project Payara by payara.
the class ApplicationClientDescriptor method getJavaWebStartAccessDescriptor.
public JavaWebStartAccessDescriptor getJavaWebStartAccessDescriptor() {
if (jwsAccessDescriptor == null) {
jwsAccessDescriptor = new JavaWebStartAccessDescriptor();
jwsAccessDescriptor.setBundleDescriptor(this);
}
return jwsAccessDescriptor;
}
use of com.sun.enterprise.deployment.runtime.JavaWebStartAccessDescriptor in project Payara by payara.
the class JavaWebStartAccessNode method getDescriptor.
// public JavaWebStartAccessNode(XMLElement element) {
// register();
// setXMLRootTag(element);
// }
/**
* @return the descriptor instance to associate with this XMLNode
*/
@Override
public JavaWebStartAccessDescriptor getDescriptor() {
if (descriptor == null) {
descriptor = new JavaWebStartAccessDescriptor();
XMLNode parentNode = getParentNode();
if (parentNode != null && (parentNode instanceof AppClientRuntimeNode)) {
Object parentDescriptor = parentNode.getDescriptor();
if (parentDescriptor != null && (parentDescriptor instanceof ApplicationClientDescriptor)) {
ApplicationClientDescriptor acDescriptor = (ApplicationClientDescriptor) parentDescriptor;
acDescriptor.setJavaWebStartAccessDescriptor(descriptor);
}
}
}
return descriptor;
}
Aggregations