Code example for SearchControls

Methods: setReturningAttributessetSearchScope

0
 
        this.remaining = remaining;
        this.searchBase = base;
        this.pageSize = pageSize;
 
        this.searchControls = new SearchControls();
        this.searchControls.setSearchScope(scope);
        if (returnedAttributes != null) {
            String returnedAtts[] = returnedAttributes.split(",");
            if (log.isDebugEnabled()) { 
                log.debug("Setting returning Attributes to searchControls: {}", Arrays.toString(returnedAtts));
            } 
            searchControls.setReturningAttributes(returnedAtts);
        } 
    } 
 
 
    public void process(Exchange exchange) throws Exception {
        String filter = exchange.getIn().getBody(String.class);
        DirContext dirContext = getDirContext();
Contextual code suggestions in your IDE  Get Codota for Java