org.springframework.ws.client.core.WebServiceTemplate.initDefaultStrategies()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(7.3k)|赞(0)|评价(0)|浏览(118)

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

WebServiceTemplate.initDefaultStrategies介绍

[英]Initialize the default implementations for the template's strategies: SoapFaultMessageResolver, org.springframework.ws.soap.saaj.SaajSoapMessageFactory, and HttpUrlConnectionMessageSender.
[中]初始化模板策略的默认实现:SoapFaultMessageResolver,org。springframework。ws。肥皂萨杰。SaajSoapMessageFactory和HttpUrlConnectionMessageSender。

代码示例

代码示例来源:origin: org.springframework.ws/spring-ws-core

  1. /** Creates a new {@code WebServiceTemplate} using default settings. */
  2. public WebServiceTemplate() {
  3. initDefaultStrategies();
  4. }

代码示例来源:origin: org.springframework.ws/org.springframework.ws

  1. /** Creates a new <code>WebServiceTemplate</code> using default settings. */
  2. public WebServiceTemplate() {
  3. initDefaultStrategies();
  4. }

代码示例来源:origin: apache/servicemix-bundles

  1. /** Creates a new {@code WebServiceTemplate} using default settings. */
  2. public WebServiceTemplate() {
  3. initDefaultStrategies();
  4. }

代码示例来源:origin: spring-projects/spring-ws

  1. /** Creates a new {@code WebServiceTemplate} using default settings. */
  2. public WebServiceTemplate() {
  3. initDefaultStrategies();
  4. }

代码示例来源:origin: org.springframework.ws/spring-ws-core

  1. /**
  2. * Creates a new {@code WebServiceTemplate} based on the given message factory.
  3. *
  4. * @param messageFactory the message factory to use
  5. */
  6. public WebServiceTemplate(WebServiceMessageFactory messageFactory) {
  7. setMessageFactory(messageFactory);
  8. initDefaultStrategies();
  9. }

代码示例来源:origin: spring-projects/spring-ws

  1. /**
  2. * Creates a new {@code WebServiceTemplate} based on the given message factory.
  3. *
  4. * @param messageFactory the message factory to use
  5. */
  6. public WebServiceTemplate(WebServiceMessageFactory messageFactory) {
  7. setMessageFactory(messageFactory);
  8. initDefaultStrategies();
  9. }

代码示例来源:origin: org.springframework.ws/org.springframework.ws

  1. /**
  2. * Creates a new <code>WebServiceTemplate</code> based on the given message factory.
  3. *
  4. * @param messageFactory the message factory to use
  5. */
  6. public WebServiceTemplate(WebServiceMessageFactory messageFactory) {
  7. setMessageFactory(messageFactory);
  8. initDefaultStrategies();
  9. }

代码示例来源:origin: apache/servicemix-bundles

  1. /**
  2. * Creates a new {@code WebServiceTemplate} based on the given message factory.
  3. *
  4. * @param messageFactory the message factory to use
  5. */
  6. public WebServiceTemplate(WebServiceMessageFactory messageFactory) {
  7. setMessageFactory(messageFactory);
  8. initDefaultStrategies();
  9. }

代码示例来源:origin: org.springframework.ws/spring-ws-core

  1. /**
  2. * Creates a new {@code MarshallingMethodEndpointAdapter} with the given marshaller and unmarshaller.
  3. *
  4. * @param marshaller the marshaller to use
  5. * @param unmarshaller the unmarshaller to use
  6. * @since 2.0.3
  7. */
  8. public WebServiceTemplate(Marshaller marshaller, Unmarshaller unmarshaller) {
  9. Assert.notNull(marshaller, "marshaller must not be null");
  10. Assert.notNull(unmarshaller, "unmarshaller must not be null");
  11. this.setMarshaller(marshaller);
  12. this.setUnmarshaller(unmarshaller);
  13. initDefaultStrategies();
  14. }

代码示例来源:origin: apache/servicemix-bundles

  1. /**
  2. * Creates a new {@code MarshallingMethodEndpointAdapter} with the given marshaller and unmarshaller.
  3. *
  4. * @param marshaller the marshaller to use
  5. * @param unmarshaller the unmarshaller to use
  6. * @since 2.0.3
  7. */
  8. public WebServiceTemplate(Marshaller marshaller, Unmarshaller unmarshaller) {
  9. Assert.notNull(marshaller, "marshaller must not be null");
  10. Assert.notNull(unmarshaller, "unmarshaller must not be null");
  11. this.setMarshaller(marshaller);
  12. this.setUnmarshaller(unmarshaller);
  13. initDefaultStrategies();
  14. }

代码示例来源:origin: spring-projects/spring-ws

  1. /**
  2. * Creates a new {@code MarshallingMethodEndpointAdapter} with the given marshaller and unmarshaller.
  3. *
  4. * @param marshaller the marshaller to use
  5. * @param unmarshaller the unmarshaller to use
  6. * @since 2.0.3
  7. */
  8. public WebServiceTemplate(Marshaller marshaller, Unmarshaller unmarshaller) {
  9. Assert.notNull(marshaller, "marshaller must not be null");
  10. Assert.notNull(unmarshaller, "unmarshaller must not be null");
  11. this.setMarshaller(marshaller);
  12. this.setUnmarshaller(unmarshaller);
  13. initDefaultStrategies();
  14. }

代码示例来源:origin: org.springframework.ws/spring-ws-core

  1. /**
  2. * Creates a new {@code WebServiceTemplate} with the given marshaller. If the given {@link
  3. * Marshaller} also implements the {@link Unmarshaller} interface, it is used for both marshalling and
  4. * unmarshalling. Otherwise, an exception is thrown.
  5. *
  6. * <p>Note that all {@link Marshaller} implementations in Spring also implement the {@link Unmarshaller} interface,
  7. * so that you can safely use this constructor.
  8. *
  9. * @param marshaller object used as marshaller and unmarshaller
  10. * @throws IllegalArgumentException when {@code marshaller} does not implement the {@link Unmarshaller}
  11. * interface
  12. * @since 2.0.3
  13. */
  14. public WebServiceTemplate(Marshaller marshaller) {
  15. Assert.notNull(marshaller, "marshaller must not be null");
  16. if (!(marshaller instanceof Unmarshaller)) {
  17. throw new IllegalArgumentException("Marshaller [" + marshaller + "] does not implement the Unmarshaller " +
  18. "interface. Please set an Unmarshaller explicitly by using the " +
  19. "WebServiceTemplate(Marshaller, Unmarshaller) constructor.");
  20. }
  21. else {
  22. this.setMarshaller(marshaller);
  23. this.setUnmarshaller((Unmarshaller) marshaller);
  24. }
  25. initDefaultStrategies();
  26. }

代码示例来源:origin: apache/servicemix-bundles

  1. /**
  2. * Creates a new {@code WebServiceTemplate} with the given marshaller. If the given {@link
  3. * Marshaller} also implements the {@link Unmarshaller} interface, it is used for both marshalling and
  4. * unmarshalling. Otherwise, an exception is thrown.
  5. *
  6. * <p>Note that all {@link Marshaller} implementations in Spring also implement the {@link Unmarshaller} interface,
  7. * so that you can safely use this constructor.
  8. *
  9. * @param marshaller object used as marshaller and unmarshaller
  10. * @throws IllegalArgumentException when {@code marshaller} does not implement the {@link Unmarshaller}
  11. * interface
  12. * @since 2.0.3
  13. */
  14. public WebServiceTemplate(Marshaller marshaller) {
  15. Assert.notNull(marshaller, "marshaller must not be null");
  16. if (!(marshaller instanceof Unmarshaller)) {
  17. throw new IllegalArgumentException("Marshaller [" + marshaller + "] does not implement the Unmarshaller " +
  18. "interface. Please set an Unmarshaller explicitly by using the " +
  19. "WebServiceTemplate(Marshaller, Unmarshaller) constructor.");
  20. }
  21. else {
  22. this.setMarshaller(marshaller);
  23. this.setUnmarshaller((Unmarshaller) marshaller);
  24. }
  25. initDefaultStrategies();
  26. }

代码示例来源:origin: spring-projects/spring-ws

  1. /**
  2. * Creates a new {@code WebServiceTemplate} with the given marshaller. If the given {@link
  3. * Marshaller} also implements the {@link Unmarshaller} interface, it is used for both marshalling and
  4. * unmarshalling. Otherwise, an exception is thrown.
  5. *
  6. * <p>Note that all {@link Marshaller} implementations in Spring also implement the {@link Unmarshaller} interface,
  7. * so that you can safely use this constructor.
  8. *
  9. * @param marshaller object used as marshaller and unmarshaller
  10. * @throws IllegalArgumentException when {@code marshaller} does not implement the {@link Unmarshaller}
  11. * interface
  12. * @since 2.0.3
  13. */
  14. public WebServiceTemplate(Marshaller marshaller) {
  15. Assert.notNull(marshaller, "marshaller must not be null");
  16. if (!(marshaller instanceof Unmarshaller)) {
  17. throw new IllegalArgumentException("Marshaller [" + marshaller + "] does not implement the Unmarshaller " +
  18. "interface. Please set an Unmarshaller explicitly by using the " +
  19. "WebServiceTemplate(Marshaller, Unmarshaller) constructor.");
  20. }
  21. else {
  22. this.setMarshaller(marshaller);
  23. this.setUnmarshaller((Unmarshaller) marshaller);
  24. }
  25. initDefaultStrategies();
  26. }

相关文章

WebServiceTemplate类方法