org.ldaptive.Response.getMatchedDn()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(5.7k)|赞(0)|评价(0)|浏览(98)

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

Response.getMatchedDn介绍

[英]Returns the matched DN produced by the ldap operation.
[中]返回ldap操作生成的匹配DN。

代码示例

代码示例来源:origin: vt-middleware/ldaptive

@Override
public String getMatchedDn()
{
 return getResponse().getMatchedDn();
}

代码示例来源:origin: com.floragunn/ldaptive

@Override
public String getMatchedDn()
{
 return getResponse().getMatchedDn();
}

代码示例来源:origin: org.ldaptive/ldaptive

@Override
public String getMatchedDn()
{
 return getResponse().getMatchedDn();
}

代码示例来源:origin: org.ldaptive/ldaptive

@Override
public void responseReceived(final Response<Void> response)
{
 searchResponse = new Response<>(
  searchResult,
  response.getResultCode(),
  response.getMessage(),
  response.getMatchedDn(),
  response.getControls(),
  response.getReferralURLs(),
  response.getMessageId());
 responseLock.release();
}

代码示例来源:origin: vt-middleware/ldaptive

@Override
public void responseReceived(final Response<Void> response)
{
 searchResponse = new Response<>(
  searchResult,
  response.getResultCode(),
  response.getMessage(),
  response.getMatchedDn(),
  response.getControls(),
  response.getReferralURLs(),
  response.getMessageId());
 responseLock.release();
}

代码示例来源:origin: com.floragunn/ldaptive

@Override
public void responseReceived(final Response<Void> response)
{
 searchResponse = new Response<>(
  searchResult,
  response.getResultCode(),
  response.getMessage(),
  response.getMatchedDn(),
  response.getControls(),
  response.getReferralURLs(),
  response.getMessageId());
 responseLock.release();
}

代码示例来源:origin: org.ldaptive/ldaptive

/**
 * Performs the ldap search.
 *
 * @param  request  to invoke search with
 *
 * @return  ldap response
 *
 * @throws  LdapException  if an error occurs
 */
protected Response<SearchResult> executeSearch(final SearchRequest request)
 throws LdapException
{
 final SearchIterator si = getConnection().getProviderConnection().search(request);
 final SearchResult result = readResult(request, si);
 final Response<Void> response = si.getResponse();
 return
  new Response<>(
   result,
   response.getResultCode(),
   response.getMessage(),
   response.getMatchedDn(),
   response.getControls(),
   response.getReferralURLs(),
   response.getMessageId());
}

代码示例来源:origin: com.floragunn/ldaptive

/**
 * Performs the ldap search.
 *
 * @param  request  to invoke search with
 *
 * @return  ldap response
 *
 * @throws  LdapException  if an error occurs
 */
protected Response<SearchResult> executeSearch(final SearchRequest request)
 throws LdapException
{
 final SearchIterator si = getConnection().getProviderConnection().search(request);
 final SearchResult result = readResult(request, si);
 final Response<Void> response = si.getResponse();
 return
  new Response<>(
   result,
   response.getResultCode(),
   response.getMessage(),
   response.getMatchedDn(),
   response.getControls(),
   response.getReferralURLs(),
   response.getMessageId());
}

代码示例来源:origin: vt-middleware/ldaptive

/**
 * Performs the ldap search.
 *
 * @param  request  to invoke search with
 *
 * @return  ldap response
 *
 * @throws  LdapException  if an error occurs
 */
protected Response<SearchResult> executeSearch(final SearchRequest request)
 throws LdapException
{
 final SearchIterator si = getConnection().getProviderConnection().search(request);
 final SearchResult result = readResult(request, si);
 final Response<Void> response = si.getResponse();
 return
  new Response<>(
   result,
   response.getResultCode(),
   response.getMessage(),
   response.getMatchedDn(),
   response.getControls(),
   response.getReferralURLs(),
   response.getMessageId());
}

代码示例来源:origin: org.ldaptive/ldaptive

@Override
public HandlerResult<Response<S>> handle(final Connection conn, final Q request, final Response<S> response)
 throws LdapException
{
 final HandlerResult<Response<S>> result;
 if (referralDepth > referralLimit) {
  result = new HandlerResult<>(
   new Response<>(
    response.getResult(),
    ResultCode.REFERRAL_LIMIT_EXCEEDED,
    response.getMessage(),
    response.getMatchedDn(),
    response.getControls(),
    response.getReferralURLs(),
    response.getMessageId()));
 } else {
  final Response<S> referralResponse = followReferral(conn, request, response.getReferralURLs());
  if (referralResponse != null) {
   result = new HandlerResult<>(referralResponse);
  } else {
   result = new HandlerResult<>(response);
  }
 }
 return result;
}

代码示例来源:origin: vt-middleware/ldaptive

@Override
public HandlerResult<Response<S>> handle(final Connection conn, final Q request, final Response<S> response)
 throws LdapException
{
 final HandlerResult<Response<S>> result;
 if (referralDepth > referralLimit) {
  result = new HandlerResult<>(
   new Response<>(
    response.getResult(),
    ResultCode.REFERRAL_LIMIT_EXCEEDED,
    response.getMessage(),
    response.getMatchedDn(),
    response.getControls(),
    response.getReferralURLs(),
    response.getMessageId()));
 } else {
  final Response<S> referralResponse = followReferral(conn, request, response.getReferralURLs());
  if (referralResponse != null) {
   result = new HandlerResult<>(referralResponse);
  } else {
   result = new HandlerResult<>(response);
  }
 }
 return result;
}

代码示例来源:origin: com.floragunn/ldaptive

@Override
public HandlerResult<Response<S>> handle(final Connection conn, final Q request, final Response<S> response)
 throws LdapException
{
 HandlerResult<Response<S>> result;
 if (referralDepth > referralLimit) {
  result = new HandlerResult<>(
   new Response<>(
    response.getResult(),
    ResultCode.REFERRAL_LIMIT_EXCEEDED,
    response.getMessage(),
    response.getMatchedDn(),
    response.getControls(),
    response.getReferralURLs(),
    response.getMessageId()));
 } else {
  final Response<S> referralResponse = followReferral(conn, request, response.getReferralURLs());
  if (referralResponse != null) {
   result = new HandlerResult<>(referralResponse);
  } else {
   result = new HandlerResult<>(response);
  }
 }
 return result;
}

相关文章