Search in sources :

Example 11 with JBossServletMetaData

use of org.jboss.metadata.web.jboss.JBossServletMetaData in project wildfly by wildfly.

the class WebMetaDataHelper method newServlet.

/**
     * Creates new servlet meta data and associates them with servlets meta data.
     *
     * @param servletName servlet name
     * @param servletClass servlet class name
     * @param servletsMD servlets meta data
     * @return new servlet meta data
     */
public static JBossServletMetaData newServlet(final String servletName, final String servletClass, final JBossServletsMetaData servletsMD) {
    final JBossServletMetaData servletMD = new JBossServletMetaData();
    servletMD.setServletName(servletName);
    servletMD.setServletClass(servletClass);
    servletsMD.add(servletMD);
    return servletMD;
}
Also used : JBossServletMetaData(org.jboss.metadata.web.jboss.JBossServletMetaData)

Aggregations

JBossServletMetaData (org.jboss.metadata.web.jboss.JBossServletMetaData)11 ArrayList (java.util.ArrayList)5 DeploymentUnit (org.jboss.as.server.deployment.DeploymentUnit)5 WarMetaData (org.jboss.as.web.common.WarMetaData)5 ParamValueMetaData (org.jboss.metadata.javaee.spec.ParamValueMetaData)5 JBossWebMetaData (org.jboss.metadata.web.jboss.JBossWebMetaData)5 ServletMappingMetaData (org.jboss.metadata.web.spec.ServletMappingMetaData)5 HashSet (java.util.HashSet)4 HashMap (java.util.HashMap)3 List (java.util.List)3 DeploymentUnitProcessingException (org.jboss.as.server.deployment.DeploymentUnitProcessingException)3 SecurityConstraintMetaData (org.jboss.metadata.web.spec.SecurityConstraintMetaData)3 WebResourceCollectionMetaData (org.jboss.metadata.web.spec.WebResourceCollectionMetaData)3 DeploymentInfo (io.undertow.servlet.api.DeploymentInfo)2 MalformedURLException (java.net.MalformedURLException)2 Map (java.util.Map)2 Set (java.util.Set)2 DeploymentResourceSupport (org.jboss.as.server.deployment.DeploymentResourceSupport)2 ModelNode (org.jboss.dmr.ModelNode)2 SecurityRoleRefMetaData (org.jboss.metadata.javaee.spec.SecurityRoleRefMetaData)2