本文整理了Java中org.apache.cxf.jaxrs.client.WebClient.resetQuery()
方法的一些代码示例,展示了WebClient.resetQuery()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebClient.resetQuery()
方法的具体详情如下:
包路径:org.apache.cxf.jaxrs.client.WebClient
类名称:WebClient
方法名:resetQuery
[英]Resets the current query
[中]重置当前查询
代码示例来源:origin: Talend/tesb-rt-se
private void findPersons(WebClient wc, String searchExpression) {
wc.resetQuery();
wc.query("_s", searchExpression);
PersonCollection persons = wc.get(PersonCollection.class);
printPersonCollection(persons);
}
代码示例来源:origin: apache/cxf
@Override
public String processJwt(JwtToken jwt, Client client) {
if (keyServiceClient != null) {
List<String> opers = new LinkedList<>();
if (super.isJwsRequired()) {
opers.add(JsonWebKey.KEY_OPER_SIGN);
}
if (super.isJweRequired()) {
opers.add(JsonWebKey.KEY_OPER_ENCRYPT);
}
// the form request can be supported too
keyServiceClient.resetQuery();
keyServiceClient.query(JsonWebKey.KEY_OPERATIONS, opers);
//TODO: OIDC core talks about various security algorithm preferences
// that may be set during the client registrations, they can be passed along too
return keyServiceClient.post(jwt, String.class);
}
return super.processJwt(jwt, client);
}
public void setKeyServiceClient(WebClient keyServiceClient) {
代码示例来源:origin: org.apache.cxf/cxf-rt-rs-security-sso-oidc
@Override
public String processJwt(JwtToken jwt, Client client) {
if (keyServiceClient != null) {
List<String> opers = new LinkedList<>();
if (super.isJwsRequired()) {
opers.add(JsonWebKey.KEY_OPER_SIGN);
}
if (super.isJweRequired()) {
opers.add(JsonWebKey.KEY_OPER_ENCRYPT);
}
// the form request can be supported too
keyServiceClient.resetQuery();
keyServiceClient.query(JsonWebKey.KEY_OPERATIONS, opers);
//TODO: OIDC core talks about various security algorithm preferences
// that may be set during the client registrations, they can be passed along too
return keyServiceClient.post(jwt, String.class);
}
return super.processJwt(jwt, client);
}
public void setKeyServiceClient(WebClient keyServiceClient) {
内容来源于网络,如有侵权,请联系作者删除!