本文整理汇总了Java中org.apache.xmlrpc.XmlRpcClientException类的典型用法代码示例。如果您正苦于以下问题:Java XmlRpcClientException类的具体用法?Java XmlRpcClientException怎么用?Java XmlRpcClientException使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
XmlRpcClientException类属于org.apache.xmlrpc包,在下文中一共展示了XmlRpcClientException类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createTransport
import org.apache.xmlrpc.XmlRpcClientException; //导入依赖的package包/类
/**
* <p>createTransport</p>
*
* @return a {@link org.apache.xmlrpc.XmlRpcTransport} object.
* @throws org.apache.xmlrpc.XmlRpcClientException if any.
*/
@SuppressWarnings("deprecation")
public XmlRpcTransport createTransport() throws XmlRpcClientException {
if ("https".equals(url.getProtocol())) {
if (timeout > 0)
{
throw new XmlRpcClientException("Timeouts not supported under https.", null);
}
return new DefaultXmlRpcTransport(url, auth);
}
return new TimeoutSecureXmlRpcTransport(url, auth, timeout);
}
示例2: createTransport
import org.apache.xmlrpc.XmlRpcClientException; //导入依赖的package包/类
/**
* <p>createTransport</p>
*
* @return a {@link org.apache.xmlrpc.XmlRpcTransport} object.
* @throws org.apache.xmlrpc.XmlRpcClientException if any.
*/
public XmlRpcTransport createTransport() throws XmlRpcClientException {
if ("https".equals(url.getProtocol())) {
if (timeout > 0)
{
throw new XmlRpcClientException("Timeouts not supported under https.", null);
}
return new DefaultXmlRpcTransport(url, auth);
}
return new TimeoutSecureXmlRpcTransport(url, auth, timeout);
}
示例3: endClientRequest
import org.apache.xmlrpc.XmlRpcClientException; //导入依赖的package包/类
public void endClientRequest() throws XmlRpcClientException {
this.method.releaseConnection();
}