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

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

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

Endpoint.setType介绍

[英]Set endpoint type
[中]设置端点类型

代码示例

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

  1. /**
  2. * Creates new Http Web Service endpoint.
  3. *
  4. * @param endpointClass endpoint class name
  5. * @param endpointName endpoint name
  6. * @param dep deployment
  7. * @return WS endpoint
  8. */
  9. protected final Endpoint newHttpEndpoint(final String endpointClass, final String endpointName, final Deployment dep) {
  10. if (endpointName == null) throw MESSAGES.nullEndpointName();
  11. if (endpointClass == null) throw MESSAGES.nullEndpointClass();
  12. final Endpoint endpoint = this.deploymentModelFactory.newHttpEndpoint(endpointClass);
  13. endpoint.setShortName(endpointName);
  14. endpoint.setType(endpointType);
  15. dep.getService().addEndpoint(endpoint);
  16. return endpoint;
  17. }

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

  1. /**
  2. * Creates new Http Web Service endpoint.
  3. *
  4. * @param endpointClass endpoint class name
  5. * @param endpointName endpoint name
  6. * @param dep deployment
  7. * @return WS endpoint
  8. */
  9. protected final Endpoint newHttpEndpoint(final String endpointClass, final String endpointName, final Deployment dep) {
  10. if (endpointName == null) throw WSLogger.ROOT_LOGGER.nullEndpointName();
  11. if (endpointClass == null) throw WSLogger.ROOT_LOGGER.nullEndpointClass();
  12. final Endpoint endpoint = this.deploymentModelFactory.newHttpEndpoint(endpointClass);
  13. endpoint.setShortName(endpointName);
  14. endpoint.setType(endpointType);
  15. dep.getService().addEndpoint(endpoint);
  16. return endpoint;
  17. }

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

  1. /**
  2. * Creates new Http Web Service endpoint.
  3. *
  4. * @param endpointClass endpoint class name
  5. * @param endpointName endpoint name
  6. * @param dep deployment
  7. * @return WS endpoint
  8. */
  9. protected final Endpoint newHttpEndpoint(final String endpointClass, final String endpointName, final Deployment dep) {
  10. if (endpointName == null) throw WSLogger.ROOT_LOGGER.nullEndpointName();
  11. if (endpointClass == null) throw WSLogger.ROOT_LOGGER.nullEndpointClass();
  12. final Endpoint endpoint = this.deploymentModelFactory.newHttpEndpoint(endpointClass);
  13. endpoint.setShortName(endpointName);
  14. endpoint.setType(endpointType);
  15. dep.getService().addEndpoint(endpoint);
  16. return endpoint;
  17. }

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

  1. /**
  2. * Creates new JMS Web Service endpoint.
  3. *
  4. * @param endpointClass endpoint class name
  5. * @param endpointName endpoint name
  6. * @param dep deployment
  7. * @return WS endpoint
  8. */
  9. protected final Endpoint newJMSEndpoint(final String endpointClass, final String endpointName, final String soapAddress, final Deployment dep) {
  10. if (endpointName == null) throw WSLogger.ROOT_LOGGER.nullEndpointName();
  11. if (endpointClass == null) throw WSLogger.ROOT_LOGGER.nullEndpointClass();
  12. final Endpoint endpoint = deploymentModelFactory.newJMSEndpoint(endpointClass);
  13. endpoint.setAddress(soapAddress);
  14. endpoint.setShortName(endpointName);
  15. endpoint.setType(endpointType);
  16. dep.getService().addEndpoint(endpoint);
  17. return endpoint;
  18. }

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

  1. /**
  2. * Creates new JMS Web Service endpoint.
  3. *
  4. * @param endpointClass endpoint class name
  5. * @param endpointName endpoint name
  6. * @param dep deployment
  7. * @return WS endpoint
  8. */
  9. protected final Endpoint newJMSEndpoint(final String endpointClass, final String endpointName, final String soapAddress, final Deployment dep) {
  10. if (endpointName == null) throw WSLogger.ROOT_LOGGER.nullEndpointName();
  11. if (endpointClass == null) throw WSLogger.ROOT_LOGGER.nullEndpointClass();
  12. final Endpoint endpoint = deploymentModelFactory.newJMSEndpoint(endpointClass);
  13. endpoint.setAddress(soapAddress);
  14. endpoint.setShortName(endpointName);
  15. endpoint.setType(endpointType);
  16. dep.getService().addEndpoint(endpoint);
  17. return endpoint;
  18. }

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

  1. /**
  2. * Creates new JMS Web Service endpoint.
  3. *
  4. * @param endpointClass endpoint class name
  5. * @param endpointName endpoint name
  6. * @param dep deployment
  7. * @return WS endpoint
  8. */
  9. protected final Endpoint newJMSEndpoint(final String endpointClass, final String endpointName, final String soapAddress, final Deployment dep) {
  10. if (endpointName == null) throw MESSAGES.nullEndpointName();
  11. if (endpointClass == null) throw MESSAGES.nullEndpointClass();
  12. final Endpoint endpoint = deploymentModelFactory.newJMSEndpoint(endpointClass);
  13. endpoint.setAddress(soapAddress);
  14. endpoint.setShortName(endpointName);
  15. endpoint.setType(endpointType);
  16. dep.getService().addEndpoint(endpoint);
  17. return endpoint;
  18. }

相关文章