private void createServletMappings(final Deployment dep, final JBossWebMetaData jbossWebMD) {
    """
	Creates servlet-mapping part of web.xml descriptor.
	<p/>
	<pre>
	&lt;servlet-mapping&gt;
	&lt;servlet-name&gt;EJBEndpointShortName&lt;/servlet-name&gt;
	&lt;url-pattern&gt;EJBEndpointURLPattern&lt;/url-pattern&gt;
	&lt;/servlet-mapping&gt;
	</pre>
	
	@param dep        webservice deployment
	@param jbossWebMD jboss web meta data
    """
         WSLogger.ROOT_LOGGER.trace("Creating servlet mappings");
        final List<ServletMappingMetaData> servletMappings = WebMetaDataHelper.getServletMappings(jbossWebMD);

        for (final Endpoint ep : dep.getService().getEndpoints()) {
            if (ep instanceof HttpEndpoint) {
                final String endpointName = ep.getShortName();
                final List<String> urlPatterns = WebMetaDataHelper.getUrlPatterns(((HttpEndpoint) ep).getURLPattern());

                 WSLogger.ROOT_LOGGER.tracef("Servlet name: %s, URL patterns: %s", endpointName, urlPatterns);
                WebMetaDataHelper.newServletMapping(endpointName, urlPatterns, servletMappings);
            }
        }
    }
private void createServletMappings(final Deployment dep, final JBossWebMetaData jbossWebMD) {
         WSLogger.ROOT_LOGGER.trace("Creating servlet mappings");
        final List<ServletMappingMetaData> servletMappings = WebMetaDataHelper.getServletMappings(jbossWebMD);

        for (final Endpoint ep : dep.getService().getEndpoints()) {
            if (ep instanceof HttpEndpoint) {
                final String endpointName = ep.getShortName();
                final List<String> urlPatterns = WebMetaDataHelper.getUrlPatterns(((HttpEndpoint) ep).getURLPattern());

                 WSLogger.ROOT_LOGGER.tracef("Servlet name: %s, URL patterns: %s", endpointName, urlPatterns);
                WebMetaDataHelper.newServletMapping(endpointName, urlPatterns, servletMappings);
            }
        }
    }
private void createServletMappings ( final Deployment dep , final JBossWebMetaData jbossWebMD ) { WSLogger . ROOT_LOGGER . trace ( "Creating servlet mappings" ) ; final List < ServletMappingMetaData > servletMappings = WebMetaDataHelper . getServletMappings ( jbossWebMD ) ; for ( final Endpoint ep : dep . getService ( ) . getEndpoints ( ) ) { if ( ep instanceof HttpEndpoint ) { final String endpointName = ep . getShortName ( ) ; final List < String > urlPatterns = WebMetaDataHelper . getUrlPatterns ( ( ( HttpEndpoint ) ep ) . getURLPattern ( ) ) ; WSLogger . ROOT_LOGGER . tracef ( "Servlet name: %s, URL patterns: %s" , endpointName , urlPatterns ) ; WebMetaDataHelper . newServletMapping ( endpointName , urlPatterns , servletMappings ) ; } } }
Creates servlet-mapping part of web.xml descriptor.
<p/>
<pre>
&lt;servlet-mapping&gt;
&lt;servlet-name&gt;EJBEndpointShortName&lt;/servlet-name&gt;
&lt;url-pattern&gt;EJBEndpointURLPattern&lt;/url-pattern&gt;
&lt;/servlet-mapping&gt;
</pre>

@param dep        webservice deployment
@param jbossWebMD jboss web meta data
Creates servlet - mapping part of web . xml descriptor . <p / > <pre > &lt ; servlet - mapping&gt ; &lt ; servlet - name&gt ; EJBEndpointShortName&lt ; / servlet - name&gt ; &lt ; url - pattern&gt ; EJBEndpointURLPattern&lt ; / url - pattern&gt ; &lt ; / servlet - mapping&gt ; < / pre >