本文整理汇总了Java中com.mysql.fabric.xmlrpc.Client类的典型用法代码示例。如果您正苦于以下问题:Java Client类的具体用法?Java Client怎么用?Java Client使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Client类属于com.mysql.fabric.xmlrpc包,在下文中一共展示了Client类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: generateAuthHeaders
import com.mysql.fabric.xmlrpc.Client; //导入依赖的package包/类
public void generateAuthHeaders(Client client) throws Exception {
if ("".equals(this.fabricUsername)) {
// no auth needed if no username
return;
}
String authenticateHeader = DigestAuthentication.getChallengeHeader(this.fabricUrl);
Map<String, String> digestChallenge = DigestAuthentication.parseDigestChallenge(authenticateHeader);
String authorizationHeader = DigestAuthentication.generateAuthorizationHeader(digestChallenge, this.fabricUsername, this.fabricPassword);
client.setHeader("Authorization", authorizationHeader);
}
示例2: InternalXmlRpcMethodCaller
import com.mysql.fabric.xmlrpc.Client; //导入依赖的package包/类
public InternalXmlRpcMethodCaller(String url) throws FabricCommunicationException {
try {
this.xmlRpcClient = new Client(url);
} catch (MalformedURLException ex) {
throw new FabricCommunicationException(ex);
}
}
示例3: generateAuthHeaders
import com.mysql.fabric.xmlrpc.Client; //导入依赖的package包/类
public void generateAuthHeaders(Client client) throws Exception {
if ("".equals(this.fabricUsername)) {
// no auth needed if no username
return;
}
String authenticateHeader = DigestAuthentication.getChallengeHeader(this.fabricUrl);
Map<String, String> digestChallenge = DigestAuthentication.parseDigestChallenge(authenticateHeader);
String authorizationHeader = DigestAuthentication
.generateAuthorizationHeader(digestChallenge, this.fabricUsername, this.fabricPassword);
client.setHeader("Authorization", authorizationHeader);
}
示例4: InternalXmlRpcMethodCaller
import com.mysql.fabric.xmlrpc.Client; //导入依赖的package包/类
public InternalXmlRpcMethodCaller(String url) throws FabricCommunicationException {
try {
xmlRpcClient = new Client(url);
} catch(MalformedURLException ex) {
throw new FabricCommunicationException(ex);
}
}