| | |
| | | boolean typesOnly, LDAPFilter filter, |
| | | LinkedHashSet<String> attributes) |
| | | { |
| | | |
| | | |
| | | this.baseDN = baseDN; |
| | | this.scope = scope; |
| | | this.dereferencePolicy = dereferencePolicy; |
| | |
| | | */ |
| | | public ASN1OctetString getBaseDN() |
| | | { |
| | | |
| | | return baseDN; |
| | | } |
| | | |
| | |
| | | */ |
| | | public void setBaseDN(ASN1OctetString baseDN) |
| | | { |
| | | |
| | | this.baseDN = baseDN; |
| | | } |
| | | |
| | |
| | | */ |
| | | public SearchScope getScope() |
| | | { |
| | | |
| | | return scope; |
| | | } |
| | | |
| | |
| | | */ |
| | | public void setScope(SearchScope scope) |
| | | { |
| | | |
| | | this.scope = scope; |
| | | } |
| | | |
| | |
| | | */ |
| | | public DereferencePolicy getDereferencePolicy() |
| | | { |
| | | |
| | | return dereferencePolicy; |
| | | } |
| | | |
| | |
| | | */ |
| | | public void setDereferencePolicy(DereferencePolicy dereferencePolicy) |
| | | { |
| | | |
| | | this.dereferencePolicy = dereferencePolicy; |
| | | } |
| | | |
| | |
| | | */ |
| | | public int getSizeLimit() |
| | | { |
| | | |
| | | return sizeLimit; |
| | | } |
| | | |
| | |
| | | */ |
| | | public void setSizeLimit(int sizeLimit) |
| | | { |
| | | |
| | | this.sizeLimit = sizeLimit; |
| | | } |
| | | |
| | |
| | | */ |
| | | public int getTimeLimit() |
| | | { |
| | | |
| | | return timeLimit; |
| | | } |
| | | |
| | |
| | | */ |
| | | public void setTimeLimit(int timeLimit) |
| | | { |
| | | |
| | | this.timeLimit = timeLimit; |
| | | } |
| | | |
| | |
| | | */ |
| | | public boolean getTypesOnly() |
| | | { |
| | | |
| | | return typesOnly; |
| | | } |
| | | |
| | |
| | | */ |
| | | public void setTypesOnly(boolean typesOnly) |
| | | { |
| | | |
| | | this.typesOnly = typesOnly; |
| | | } |
| | | |
| | |
| | | */ |
| | | public LDAPFilter getFilter() |
| | | { |
| | | |
| | | return filter; |
| | | } |
| | | |
| | |
| | | */ |
| | | public void setFilter(LDAPFilter filter) |
| | | { |
| | | |
| | | this.filter = filter; |
| | | } |
| | | |
| | |
| | | */ |
| | | public LinkedHashSet<String> getAttributes() |
| | | { |
| | | |
| | | return attributes; |
| | | } |
| | | |
| | |
| | | */ |
| | | public void setAttributes(LinkedHashSet<String> attributes) |
| | | { |
| | | |
| | | if (attributes == null) |
| | | { |
| | | this.attributes.clear(); |
| | |
| | | */ |
| | | public byte getType() |
| | | { |
| | | |
| | | return OP_TYPE_SEARCH_REQUEST; |
| | | } |
| | | |
| | |
| | | */ |
| | | public String getProtocolOpName() |
| | | { |
| | | |
| | | return "Search Request"; |
| | | } |
| | | |
| | |
| | | */ |
| | | public ASN1Element encode() |
| | | { |
| | | |
| | | ArrayList<ASN1Element> elements = new ArrayList<ASN1Element>(8); |
| | | elements.add(baseDN); |
| | | elements.add(new ASN1Enumerated(scope.intValue())); |
| | |
| | | public static SearchRequestProtocolOp decodeSearchRequest(ASN1Element element) |
| | | throws LDAPException |
| | | { |
| | | |
| | | ArrayList<ASN1Element> elements; |
| | | try |
| | | { |
| | |
| | | */ |
| | | public void toString(StringBuilder buffer) |
| | | { |
| | | |
| | | buffer.append("SearchRequest(baseDN="); |
| | | baseDN.toString(buffer); |
| | | buffer.append(", scope="); |
| | |
| | | */ |
| | | public void toString(StringBuilder buffer, int indent) |
| | | { |
| | | |
| | | StringBuilder indentBuf = new StringBuilder(indent); |
| | | for (int i=0 ; i < indent; i++) |
| | | { |