本文整理匯總了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();
}