org.apache.axis.client.Call.setTransportForProtocol()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(138)

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

Call.setTransportForProtocol介绍

[英]Register a Transport that should be used for URLs of the specified protocol. Note: Not part of JAX-RPC specification.
[中]

代码示例

代码示例来源:origin: axis/axis

/**
 * Set up the default transport URL mappings.
 *
 * This must be called BEFORE doing non-standard URL parsing (i.e. if you
 * want the system to accept a "local:" URL).  This is why the Options class
 * calls it before parsing the command-line URL argument.
 *
 * Note: Not part of JAX-RPC specification.
 */
public static synchronized void initialize() {
  addTransportPackage("org.apache.axis.transport");
  setTransportForProtocol("java",
      org.apache.axis.transport.java.JavaTransport.class);
  setTransportForProtocol("local",
      org.apache.axis.transport.local.LocalTransport.class);
  setTransportForProtocol("http", HTTPTransport.class);
  setTransportForProtocol("https", HTTPTransport.class);
}

代码示例来源:origin: org.apache.axis/axis

/**
 * Set up the default transport URL mappings.
 *
 * This must be called BEFORE doing non-standard URL parsing (i.e. if you
 * want the system to accept a "local:" URL).  This is why the Options class
 * calls it before parsing the command-line URL argument.
 *
 * Note: Not part of JAX-RPC specification.
 */
public static synchronized void initialize() {
  addTransportPackage("org.apache.axis.transport");
  setTransportForProtocol("java",
      org.apache.axis.transport.java.JavaTransport.class);
  setTransportForProtocol("local",
      org.apache.axis.transport.local.LocalTransport.class);
  setTransportForProtocol("http", HTTPTransport.class);
  setTransportForProtocol("https", HTTPTransport.class);
}

代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis

/**
 * Set up the default transport URL mappings.
 *
 * This must be called BEFORE doing non-standard URL parsing (i.e. if you
 * want the system to accept a "local:" URL).  This is why the Options class
 * calls it before parsing the command-line URL argument.
 *
 * Note: Not part of JAX-RPC specification.
 */
public static synchronized void initialize() {
  addTransportPackage("org.apache.axis.transport");
  setTransportForProtocol("java",
      org.apache.axis.transport.java.JavaTransport.class);
  setTransportForProtocol("local",
      org.apache.axis.transport.local.LocalTransport.class);
  setTransportForProtocol("http", HTTPTransport.class);
  setTransportForProtocol("https", HTTPTransport.class);
}

相关文章

微信公众号

最新文章

更多