Search in sources :

Example 1 with JavaWebStartAccessDescriptor

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;
}
Also used : JavaWebStartAccessDescriptor(com.sun.enterprise.deployment.runtime.JavaWebStartAccessDescriptor)

Example 2 with JavaWebStartAccessDescriptor

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;
}
Also used : JavaWebStartAccessDescriptor(com.sun.enterprise.deployment.runtime.JavaWebStartAccessDescriptor)

Example 3 with JavaWebStartAccessDescriptor

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;
}
Also used : XMLNode(com.sun.enterprise.deployment.node.XMLNode) ApplicationClientDescriptor(com.sun.enterprise.deployment.ApplicationClientDescriptor) JavaWebStartAccessDescriptor(com.sun.enterprise.deployment.runtime.JavaWebStartAccessDescriptor)

Aggregations

JavaWebStartAccessDescriptor (com.sun.enterprise.deployment.runtime.JavaWebStartAccessDescriptor)3 ApplicationClientDescriptor (com.sun.enterprise.deployment.ApplicationClientDescriptor)1 XMLNode (com.sun.enterprise.deployment.node.XMLNode)1