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

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

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

Endpoint.setShortName介绍

[英]Set the short name for this endpoint
[中]设置此端点的短名称

代码示例

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

/**
* Creates new Web Service endpoint.
*
* @param endpointClass endpoint class name
* @param endpointName endpoint name
* @param dep deployment
* @return WS endpoint
*/
protected final Endpoint newEndpoint(final String endpointClass, final String endpointName, final Deployment dep)
{
 if (endpointName == null)
 {
   throw new NullPointerException("Null endpoint name");
 }
 if (endpointClass == null)
 {
   throw new NullPointerException("Null endpoint class");
 }
 final Endpoint endpoint = this.deploymentModelFactory.newEndpoint(endpointClass);
 endpoint.setShortName(endpointName);
 dep.getService().addEndpoint(endpoint);
 return endpoint;
}

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

/**
* Creates new Web Service endpoint.
*
* @param endpointClass endpoint class name
* @param endpointName endpoint name
* @param dep deployment
* @return WS endpoint
*/
protected final Endpoint newEndpoint(final String endpointClass, final String endpointName, final Deployment dep)
{
 if (endpointName == null)
 {
   throw new NullPointerException("Null endpoint name");
 }
 if (endpointClass == null)
 {
   throw new NullPointerException("Null endpoint class");
 }
 final Endpoint endpoint = this.deploymentModelFactory.newEndpoint(endpointClass);
 endpoint.setShortName(endpointName);
 dep.getService().addEndpoint(endpoint);
 return endpoint;
}

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

/**
* Creates new Web Service endpoint.
*
* @param endpointClass endpoint class name
* @param endpointName endpoint name
* @param dep deployment
* @return WS endpoint
*/
protected final Endpoint newEndpoint(final String endpointClass, final String endpointName, final Deployment dep)
{
 if (endpointName == null)
 {
   throw new NullPointerException("Null endpoint name");
 }
 if (endpointClass == null)
 {
   throw new NullPointerException("Null endpoint class");
 }
 final Endpoint endpoint = this.deploymentModelFactory.newEndpoint(endpointClass);
 endpoint.setShortName(endpointName);
 dep.getService().addEndpoint(endpoint);
 return endpoint;
}

代码示例来源:origin: org.jboss.as/jboss-as-webservices-server-integration

/**
 * Creates new Http Web Service endpoint.
 *
 * @param endpointClass endpoint class name
 * @param endpointName endpoint name
 * @param dep deployment
 * @return WS endpoint
 */
protected final Endpoint newHttpEndpoint(final String endpointClass, final String endpointName, final Deployment dep) {
  if (endpointName == null) throw MESSAGES.nullEndpointName();
  if (endpointClass == null) throw MESSAGES.nullEndpointClass();
  final Endpoint endpoint = this.deploymentModelFactory.newHttpEndpoint(endpointClass);
  endpoint.setShortName(endpointName);
  endpoint.setType(endpointType);
  dep.getService().addEndpoint(endpoint);
  return endpoint;
}

代码示例来源:origin: org.jboss.eap/wildfly-webservices-server-integration

/**
 * Creates new Http Web Service endpoint.
 *
 * @param endpointClass endpoint class name
 * @param endpointName endpoint name
 * @param dep deployment
 * @return WS endpoint
 */
protected final Endpoint newHttpEndpoint(final String endpointClass, final String endpointName, final Deployment dep) {
  if (endpointName == null) throw WSLogger.ROOT_LOGGER.nullEndpointName();
  if (endpointClass == null) throw WSLogger.ROOT_LOGGER.nullEndpointClass();
  final Endpoint endpoint = this.deploymentModelFactory.newHttpEndpoint(endpointClass);
  endpoint.setShortName(endpointName);
  endpoint.setType(endpointType);
  dep.getService().addEndpoint(endpoint);
  return endpoint;
}

代码示例来源:origin: org.wildfly/wildfly-webservices-server-integration

/**
 * Creates new Http Web Service endpoint.
 *
 * @param endpointClass endpoint class name
 * @param endpointName endpoint name
 * @param dep deployment
 * @return WS endpoint
 */
protected final Endpoint newHttpEndpoint(final String endpointClass, final String endpointName, final Deployment dep) {
  if (endpointName == null) throw WSLogger.ROOT_LOGGER.nullEndpointName();
  if (endpointClass == null) throw WSLogger.ROOT_LOGGER.nullEndpointClass();
  final Endpoint endpoint = this.deploymentModelFactory.newHttpEndpoint(endpointClass);
  endpoint.setShortName(endpointName);
  endpoint.setType(endpointType);
  dep.getService().addEndpoint(endpoint);
  return endpoint;
}

代码示例来源:origin: org.wildfly/wildfly-webservices-server-integration

/**
 * Creates new JMS Web Service endpoint.
 *
 * @param endpointClass endpoint class name
 * @param endpointName endpoint name
 * @param dep deployment
 * @return WS endpoint
 */
protected final Endpoint newJMSEndpoint(final String endpointClass, final String endpointName, final String soapAddress, final Deployment dep) {
  if (endpointName == null) throw WSLogger.ROOT_LOGGER.nullEndpointName();
  if (endpointClass == null) throw WSLogger.ROOT_LOGGER.nullEndpointClass();
  final Endpoint endpoint = deploymentModelFactory.newJMSEndpoint(endpointClass);
  endpoint.setAddress(soapAddress);
  endpoint.setShortName(endpointName);
  endpoint.setType(endpointType);
  dep.getService().addEndpoint(endpoint);
  return endpoint;
}

代码示例来源:origin: org.jboss.eap/wildfly-webservices-server-integration

/**
 * Creates new JMS Web Service endpoint.
 *
 * @param endpointClass endpoint class name
 * @param endpointName endpoint name
 * @param dep deployment
 * @return WS endpoint
 */
protected final Endpoint newJMSEndpoint(final String endpointClass, final String endpointName, final String soapAddress, final Deployment dep) {
  if (endpointName == null) throw WSLogger.ROOT_LOGGER.nullEndpointName();
  if (endpointClass == null) throw WSLogger.ROOT_LOGGER.nullEndpointClass();
  final Endpoint endpoint = deploymentModelFactory.newJMSEndpoint(endpointClass);
  endpoint.setAddress(soapAddress);
  endpoint.setShortName(endpointName);
  endpoint.setType(endpointType);
  dep.getService().addEndpoint(endpoint);
  return endpoint;
}

代码示例来源:origin: org.jboss.as/jboss-as-webservices-server-integration

/**
 * Creates new JMS Web Service endpoint.
 *
 * @param endpointClass endpoint class name
 * @param endpointName endpoint name
 * @param dep deployment
 * @return WS endpoint
 */
protected final Endpoint newJMSEndpoint(final String endpointClass, final String endpointName, final String soapAddress, final Deployment dep) {
  if (endpointName == null) throw MESSAGES.nullEndpointName();
  if (endpointClass == null) throw MESSAGES.nullEndpointClass();
  final Endpoint endpoint = deploymentModelFactory.newJMSEndpoint(endpointClass);
  endpoint.setAddress(soapAddress);
  endpoint.setShortName(endpointName);
  endpoint.setType(endpointType);
  dep.getService().addEndpoint(endpoint);
  return endpoint;
}

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

@Override
public Deployment createDeployment(DeploymentInfo di)
{
 ArchiveDeployment dep = newDeployment(di);
 dep.setRootFile(new URLLoaderAdapter(di.localUrl));
 dep.setRuntimeClassLoader(null);
 dep.setType(getDeploymentType());
 Service service = dep.getService();
 WebMetaData webMetaData = (WebMetaData)di.metaData;
 if (webMetaData == null)
   throw new IllegalStateException("Deployment unit does not contain web meta data");
 // Copy the attachments
 dep.addAttachment(WebMetaData.class, webMetaData);
 List<Servlet> servlets = getEndpointBeans(webMetaData, di.annotationsCl);
 for (Servlet servlet : servlets)
 {
   String servletName = servlet.getServletName();
   String servletClass = servlet.getServletClass();
   // Create the endpoint
   Endpoint ep = newEndpoint(servletClass);
   ep.setShortName(servletName);
   service.addEndpoint(ep);
 }
 return dep;
}

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

@Override
public Deployment createDeployment(DeploymentInfo di)
{
 ArchiveDeployment dep = newDeployment(di);
 dep.setRootFile(new URLLoaderAdapter(di.localUrl));
 dep.setRuntimeClassLoader(null);
 dep.setType(getDeploymentType());
 Service service = dep.getService();
 WebMetaData webMetaData = (WebMetaData)di.metaData;
 if (webMetaData == null)
   throw new IllegalStateException("Deployment unit does not contain web meta data");
 // Copy the attachments
 dep.addAttachment(WebMetaData.class, webMetaData);
 List<Servlet> servlets = getEndpointBeans(webMetaData, di.annotationsCl);
 for (Servlet servlet : servlets)
 {
   String servletName = servlet.getServletName();
   String servletClass = servlet.getServletClass();
   // Create the endpoint
   Endpoint ep = newEndpoint(servletClass);
   ep.setShortName(servletName);
   service.addEndpoint(ep);
 }
 return dep;
}

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

@Override
public Deployment createDeployment(DeploymentInfo di)
{
 ArchiveDeployment dep = newDeployment(di);
 dep.setRootFile(new URLLoaderAdapter(di.localUrl));
 dep.setRuntimeClassLoader(null);
 dep.setType(getDeploymentType());
 Service service = dep.getService();
 WebMetaData webMetaData = (WebMetaData)di.metaData;
 if (webMetaData == null)
   throw new IllegalStateException("Deployment unit does not contain web meta data");
 // Copy the attachments
 dep.addAttachment(WebMetaData.class, webMetaData);
 List<Servlet> servlets = getRelevantServlets(webMetaData, di.annotationsCl);
 for (Servlet servlet : servlets)
 {
   String servletName = servlet.getServletName();
   String servletClass = servlet.getServletClass();
   // Create the endpoint
   Endpoint ep = newEndpoint(servletClass);
   ep.setShortName(servletName);
   service.addEndpoint(ep);
 }
 return dep;
}

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

@Override
public Deployment createDeployment(DeploymentInfo di)
{
 ArchiveDeployment dep = newDeployment(di);
 dep.setRootFile(new URLLoaderAdapter(di.localUrl));
 dep.setRuntimeClassLoader(di.ucl);
 dep.setType(getDeploymentType());
 Service service = dep.getService();
 Ejb3ModuleMBean ejb3Module = EJBArchiveMetaDataAdapterEJB3.getEJB3Module(di.deployedObject);
 for (Object manager : ejb3Module.getContainers().values())
 {
   if (manager instanceof EJBContainer)
   {
    EJBContainer container = (EJBContainer)manager;
    if (isWebServiceBean(container))
    {
      String ejbName = container.getEjbName();
      String epBean = container.getBeanClassName();
      // Create the endpoint
      Endpoint ep = newEndpoint(epBean);
      ep.setShortName(ejbName);
      service.addEndpoint(ep);
    }
   }
 }
 return dep;
}

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

@Override
public Deployment createDeployment(DeploymentInfo di)
{
 ArchiveDeployment dep = newDeployment(di);
 dep.setRootFile(new URLLoaderAdapter(di.localUrl));
 dep.setRuntimeClassLoader(di.ucl);
 dep.setType(getDeploymentType());
 Service service = dep.getService();
 Ejb3ModuleMBean ejb3Module = EJBArchiveMetaDataAdapterEJB3.getEJB3Module(di.deployedObject);
 for (Object manager : ejb3Module.getContainers().values())
 {
   if (manager instanceof EJBContainer)
   {
    EJBContainer container = (EJBContainer)manager;
    if (isWebServiceBean(container))
    {
      String ejbName = container.getEjbName();
      String epBean = container.getBeanClassName();
      // Create the endpoint
      Endpoint ep = newEndpoint(epBean);
      ep.setShortName(ejbName);
      service.addEndpoint(ep);
    }
   }
 }
 return dep;
}

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

@Override
public Deployment createDeployment(DeploymentInfo di)
{
 ArchiveDeployment dep = newDeployment(di);
 dep.setRootFile(new URLLoaderAdapter(di.localUrl));
 dep.setRuntimeClassLoader(di.ucl);
 dep.setType(getDeploymentType());
 Service service = dep.getService();
 Ejb3ModuleMBean ejb3Module = EJBArchiveMetaDataAdapterEJB3.getEJB3Module(di.deployedObject);
 for (Object manager : ejb3Module.getContainers().values())
 {
   if (manager instanceof EJBContainer)
   {
    EJBContainer container = (EJBContainer)manager;
    if (isWebServiceBean(container))
    {
      String ejbName = container.getEjbName();
      String epBean = container.getBeanClassName();
      // Create the endpoint
      Endpoint ep = newEndpoint(epBean);
      ep.setShortName(ejbName);
      service.addEndpoint(ep);
    }
   }
 }
 return dep;
}

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

@Override
public Deployment createDeployment(DeploymentUnit unit)
{
 ArchiveDeployment dep = newDeployment(unit);
 dep.setRootFile(new VirtualFileAdaptor(((VFSDeploymentUnit)unit).getRoot()));     
 dep.setType(getDeploymentType());
 Service service = dep.getService();
 JBossWebMetaData webMetaData = unit.getAttachment(JBossWebMetaData.class);
 if (webMetaData == null)
   throw new IllegalStateException("Deployment unit does not contain web meta data");
 // Copy the attachments
 dep.addAttachment(JBossWebMetaData.class, webMetaData);
 List<ServletMetaData> servlets = getRelevantServlets(webMetaData, unit.getClassLoader());
 for (ServletMetaData servlet : servlets)
 {
   String servletName = servlet.getName();
   String targetBean = getTargetBean(servlet);
   // Create the endpoint
   Endpoint ep = newEndpoint(targetBean);
   ep.setShortName(servletName);
   service.addEndpoint(ep);
 }
 return dep;
}

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

@Override
public Deployment createDeployment(DeploymentUnit unit)
{
 ArchiveDeployment dep = newDeployment(unit);
 dep.setRootFile(new VirtualFileAdaptor(((VFSDeploymentUnit)unit).getRoot()));     
 dep.setType(getDeploymentType());
 Service service = dep.getService();
 JBossWebMetaData webMetaData = unit.getAttachment(JBossWebMetaData.class);
 if (webMetaData == null)
   throw new IllegalStateException("Deployment unit does not contain web meta data");
 // Copy the attachments
 dep.addAttachment(JBossWebMetaData.class, webMetaData);
 List<ServletMetaData> servlets = getRelevantServlets(webMetaData, unit.getClassLoader());
 for (ServletMetaData servlet : servlets)
 {
   String servletName = servlet.getName();
   String targetBean = getTargetBean(servlet);
   // Create the endpoint
   Endpoint ep = newEndpoint(targetBean);
   ep.setShortName(servletName);
   service.addEndpoint(ep);
 }
 return dep;
}

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

@Override
public Deployment createDeployment(DeploymentUnit unit)
{
 ArchiveDeployment dep = newDeployment(unit);
 dep.setRootFile(new VirtualFileAdaptor(((VFSDeploymentUnit)unit).getRoot()));     
 dep.setType(getDeploymentType());
 Service service = dep.getService();
 JBossWebMetaData webMetaData = unit.getAttachment(JBossWebMetaData.class);
 if (webMetaData == null)
   throw new IllegalStateException("Deployment unit does not contain web meta data");
 // Copy the attachments
 dep.addAttachment(JBossWebMetaData.class, webMetaData);
 List<ServletMetaData> servlets = getRelevantServlets(webMetaData, unit.getClassLoader());
 for (ServletMetaData servlet : servlets)
 {
   String servletName = servlet.getName();
   String targetBean = getTargetBean(servlet);
   // Create the endpoint
   Endpoint ep = newEndpoint(targetBean);
   ep.setShortName(servletName);
   service.addEndpoint(ep);
 }
 return dep;
}

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

@Override
public Deployment createDeployment(DeploymentUnit unit)
{
 ArchiveDeployment dep = newDeployment(unit);
 dep.setRootFile(new VirtualFileAdaptor(((VFSDeploymentUnit)unit).getRoot()));     
 dep.setType(getDeploymentType());
 Service service = dep.getService();
 JBossWebMetaData webMetaData = unit.getAttachment(JBossWebMetaData.class);
 if (webMetaData == null)
   throw new IllegalStateException("Deployment unit does not contain web meta data");
 // Copy the attachments
 dep.addAttachment(JBossWebMetaData.class, webMetaData);
 List<ServletMetaData> servlets = getRelevantServlets(webMetaData, unit.getClassLoader());
 for (ServletMetaData servlet : servlets)
 {
   String servletName = servlet.getName();
   String targetBean = getTargetBean(servlet);
   // Create the endpoint
   Endpoint ep = newEndpoint(targetBean);
   ep.setShortName(servletName);
   service.addEndpoint(ep);
 }
 return dep;
}

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

@Override
public Deployment createDeployment(DeploymentUnit unit)
{
 ArchiveDeployment dep = newDeployment(unit);
 dep.setRootFile(new VirtualFileAdaptor(((VFSDeploymentUnit)unit).getRoot()));     
 dep.setType(getDeploymentType());
 Service service = dep.getService();
 JBossWebMetaData webMetaData = unit.getAttachment(JBossWebMetaData.class);
 if (webMetaData == null)
   throw new IllegalStateException("Deployment unit does not contain web meta data");
 // Copy the attachments
 dep.addAttachment(JBossWebMetaData.class, webMetaData);
 List<ServletMetaData> servlets = getRelevantServlets(webMetaData, unit.getClassLoader());
 for (ServletMetaData servlet : servlets)
 {
   String servletName = servlet.getName();
   String targetBean = getTargetBean(servlet);
   // Create the endpoint
   Endpoint ep = newEndpoint(targetBean);
   ep.setShortName(servletName);
   service.addEndpoint(ep);
 }
 return dep;
}

相关文章