org.jboss.wsf.spi.deployment.Endpoint.getURLPattern()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(6.1k)|赞(0)|评价(0)|浏览(156)

本文整理了Java中org.jboss.wsf.spi.deployment.Endpoint.getURLPattern()方法的一些代码示例,展示了Endpoint.getURLPattern()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Endpoint.getURLPattern()方法的具体详情如下:
包路径:org.jboss.wsf.spi.deployment.Endpoint
类名称:Endpoint
方法名:getURLPattern

Endpoint.getURLPattern介绍

[英]Get the URL pattern for this endpoint
[中]获取此终结点的URL模式

代码示例

代码示例来源:origin: org.jboss.ws/jbossws-jboss501

/**
* Creates servlet-mapping part of web.xml descriptor.
*
* <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
*/
private void createServletMappings(final Deployment dep, final JBossWebMetaData jbossWebMD)
{
 this.log.debug("Creating servlet mappings");
 final List<ServletMappingMetaData> servletMappings = WebMetaDataHelper.getServletMappings(jbossWebMD);
 for (final Endpoint ep : dep.getService().getEndpoints())
 {
   final String endpointName = ep.getShortName();
   final List<String> urlPatterns = WebMetaDataHelper.getUrlPatterns(ep.getURLPattern());
   this.log.debug("Servlet name: " + endpointName + ", URL patterns: " + urlPatterns);
   WebMetaDataHelper.newServletMapping(endpointName, urlPatterns, servletMappings);
 }
}

代码示例来源:origin: org.jboss.ws/jbossws-jboss600M2

/**
* Creates servlet-mapping part of web.xml descriptor.
*
* <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
*/
private void createServletMappings(final Deployment dep, final JBossWebMetaData jbossWebMD)
{
 this.log.debug("Creating servlet mappings");
 final List<ServletMappingMetaData> servletMappings = WebMetaDataHelper.getServletMappings(jbossWebMD);
 for (final Endpoint ep : dep.getService().getEndpoints())
 {
   final String endpointName = ep.getShortName();
   final List<String> urlPatterns = WebMetaDataHelper.getUrlPatterns(ep.getURLPattern());
   this.log.debug("Servlet name: " + endpointName + ", URL patterns: " + urlPatterns);
   WebMetaDataHelper.newServletMapping(endpointName, urlPatterns, servletMappings);
 }
}

代码示例来源:origin: org.jboss.ws/jbossws-jboss510

/**
* Creates servlet-mapping part of web.xml descriptor.
*
* <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
*/
private void createServletMappings(final Deployment dep, final JBossWebMetaData jbossWebMD)
{
 this.log.debug("Creating servlet mappings");
 final List<ServletMappingMetaData> servletMappings = WebMetaDataHelper.getServletMappings(jbossWebMD);
 for (final Endpoint ep : dep.getService().getEndpoints())
 {
   final String endpointName = ep.getShortName();
   final List<String> urlPatterns = WebMetaDataHelper.getUrlPatterns(ep.getURLPattern());
   this.log.debug("Servlet name: " + endpointName + ", URL patterns: " + urlPatterns);
   WebMetaDataHelper.newServletMapping(endpointName, urlPatterns, servletMappings);
 }
}

代码示例来源:origin: org.jboss.ws/jbossws-jboss600M2

.getWebResourceCollections(securityConstraint);
final String endpointName = ejbEndpoint.getShortName();
final String urlPattern = ejbEndpoint.getURLPattern();
this.log.debug("Creating web resource collection for endpoint: " + endpointName + ", URL pattern: "
   + urlPattern);

代码示例来源:origin: org.jboss.ws/jbossws-jboss510

.getWebResourceCollections(securityConstraint);
final String endpointName = ejbEndpoint.getShortName();
final String urlPattern = ejbEndpoint.getURLPattern();
this.log.debug("Creating web resource collection for endpoint: " + endpointName + ", URL pattern: "
   + urlPattern);

代码示例来源:origin: org.jboss.ws/jbossws-jboss501

.getWebResourceCollections(securityConstraint);
final String endpointName = ejbEndpoint.getShortName();
final String urlPattern = ejbEndpoint.getURLPattern();
this.log.debug("Creating web resource collection for endpoint: " + endpointName + ", URL pattern: "
   + urlPattern);

代码示例来源:origin: org.jboss.ws/jbossws-jboss600x

servletMapping.setUrlPatterns(Arrays.asList(new String[] { ep.getURLPattern() }));
servletMappings.add(servletMapping);
 resourceCollection.setUrlPatterns(Arrays.asList(new String[] { ep.getURLPattern() }));
 ArrayList<String> httpMethods = new ArrayList<String>();
 resourceCollection.setHttpMethods(httpMethods);

代码示例来源:origin: org.jboss.ws/jbossws-jboss510x

servletMapping.setUrlPatterns(Arrays.asList(new String[] { ep.getURLPattern() }));
servletMappings.add(servletMapping);
 resourceCollection.setUrlPatterns(Arrays.asList(new String[] { ep.getURLPattern() }));
 ArrayList<String> httpMethods = new ArrayList<String>();
 resourceCollection.setHttpMethods(httpMethods);

代码示例来源:origin: org.jboss.ws/jbossws-jboss501CR1

servletMapping.setUrlPatterns(Arrays.asList(new String[] { ep.getURLPattern() }));
servletMappings.add(servletMapping);
 resourceCollection.setUrlPatterns(Arrays.asList(new String[] { ep.getURLPattern() }));
 ArrayList<String> httpMethods = new ArrayList<String>();
 resourceCollection.setHttpMethods(httpMethods);

代码示例来源:origin: org.jboss.ws/jbossws-jboss500x

servletMapping.setUrlPatterns(Arrays.asList(new String[] { ep.getURLPattern() }));
servletMappings.add(servletMapping);
 resourceCollection.setUrlPatterns(Arrays.asList(new String[] { ep.getURLPattern() }));
 ArrayList<String> httpMethods = new ArrayList<String>();
 resourceCollection.setHttpMethods(httpMethods);

代码示例来源:origin: org.jboss.ws/jbossws-jboss500Beta4

servletMapping.addElement("url-pattern").addText(ep.getURLPattern());
 Element wrc = securityConstraint.addElement("web-resource-collection");
 wrc.addElement("web-resource-name").addText(ejbName);
 wrc.addElement("url-pattern").addText(ep.getURLPattern());
 if (Boolean.TRUE.equals(secureWSDLAccess))

相关文章