本文整理了Java中org.jboss.wsf.spi.deployment.Endpoint.getURLPattern()
方法的一些代码示例,展示了Endpoint.getURLPattern()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Endpoint.getURLPattern()
方法的具体详情如下:
包路径:org.jboss.wsf.spi.deployment.Endpoint
类名称: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>
* <servlet-mapping>
* <servlet-name>EJBEndpointShortName</servlet-name>
* <url-pattern>EJBEndpointURLPattern</url-pattern>
* </servlet-mapping>
* </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>
* <servlet-mapping>
* <servlet-name>EJBEndpointShortName</servlet-name>
* <url-pattern>EJBEndpointURLPattern</url-pattern>
* </servlet-mapping>
* </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>
* <servlet-mapping>
* <servlet-name>EJBEndpointShortName</servlet-name>
* <url-pattern>EJBEndpointURLPattern</url-pattern>
* </servlet-mapping>
* </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))
内容来源于网络,如有侵权,请联系作者删除!