Search in sources :

Example 16 with WebProperty

use of org.glassfish.web.deployment.runtime.WebProperty in project Payara by payara.

the class DefaultHelperNode method writeDescriptor.

/**
 * write the descriptor class to a DOM tree and return it
 *
 * @param parent node for the DOM tree
 * @param nodeName node name
 * @param descriptor the descriptor to write
 * @return the DOM tree top node
 */
@Override
public Node writeDescriptor(Node parent, String nodeName, DefaultHelper descriptor) {
    Element defaultHelper = (Element) super.writeDescriptor(parent, nodeName, descriptor);
    // property*
    WebProperty[] properties = descriptor.getWebProperty();
    if (properties.length > 0) {
        WebPropertyNode wpn = new WebPropertyNode();
        wpn.writeDescriptor(defaultHelper, RuntimeTagNames.PROPERTY, properties);
    }
    // name, class-name attribute
    setAttribute(defaultHelper, RuntimeTagNames.NAME, (String) descriptor.getAttributeValue(DefaultHelper.NAME));
    return defaultHelper;
}
Also used : WebProperty(org.glassfish.web.deployment.runtime.WebProperty) Element(org.w3c.dom.Element) XMLElement(com.sun.enterprise.deployment.node.XMLElement)

Aggregations

WebProperty (org.glassfish.web.deployment.runtime.WebProperty)16 SunWebAppImpl (org.glassfish.web.deployment.runtime.SunWebAppImpl)4 XMLElement (com.sun.enterprise.deployment.node.XMLElement)3 Element (org.w3c.dom.Element)3 WebComponentDescriptor (com.sun.enterprise.deployment.WebComponentDescriptor)2 WebServiceEndpoint (com.sun.enterprise.deployment.WebServiceEndpoint)2 SecurityConstraint (com.sun.enterprise.deployment.web.SecurityConstraint)2 UserDataConstraint (com.sun.enterprise.deployment.web.UserDataConstraint)2 Cache (org.glassfish.web.deployment.runtime.Cache)2 JspConfig (org.glassfish.web.deployment.runtime.JspConfig)2 ManagerProperties (org.glassfish.web.deployment.runtime.ManagerProperties)2 JCDIService (com.sun.enterprise.container.common.spi.JCDIService)1 Application (com.sun.enterprise.deployment.Application)1 ServiceReferenceDescriptor (com.sun.enterprise.deployment.ServiceReferenceDescriptor)1 PrincipalNameDescriptor (com.sun.enterprise.deployment.runtime.common.PrincipalNameDescriptor)1 SecurityRoleMapping (com.sun.enterprise.deployment.runtime.common.SecurityRoleMapping)1 IdempotentUrlPattern (com.sun.enterprise.deployment.runtime.web.IdempotentUrlPattern)1 InitializationParameter (com.sun.enterprise.deployment.web.InitializationParameter)1 Result (com.sun.enterprise.tools.verifier.Result)1 ComponentNameConstructor (com.sun.enterprise.tools.verifier.tests.ComponentNameConstructor)1