org.apache.cxf.jaxrs.client.WebClient.resetQuery()方法的使用及代码示例

x33g5p2x  于2022-02-02 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(86)

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

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) {

相关文章

WebClient类方法