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

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

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

Call.addTransportPackage介绍

[英]Add a package to the system protocol handler search path. This enables users to create their own URLStreamHandler classes, and thus allow custom protocols to be used in Axis (typically on the client command line). For instance, if you add "samples.transport" to the packages property, and have a class samples.transport.tcp.Handler, the system will be able to parse URLs of the form "tcp://host:port..." Note: Not part of JAX-RPC specification.
[中]将包添加到系统协议处理程序搜索路径。这使用户能够创建自己的URLStreamHandler类,从而允许在Axis中使用自定义协议(通常在客户端命令行上)。例如,如果您将“samples.transport”添加到packages属性,并具有一个类samples。运输tcp。处理程序,系统将能够解析表单的URL“tcp://host:port...注意:不是JAX-RPC规范的一部分。

代码示例

代码示例来源: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);
}

相关文章