| | |
| | | */ |
| | | public SearchResultReferenceProtocolOp(List<String> referralURLs) |
| | | { |
| | | |
| | | if (referralURLs == null) |
| | | { |
| | | this.referralURLs = new ArrayList<String>(); |
| | |
| | | */ |
| | | public SearchResultReferenceProtocolOp(SearchResultReference searchReference) |
| | | { |
| | | |
| | | referralURLs = searchReference.getReferralURLs(); |
| | | if (referralURLs == null) |
| | | { |
| | |
| | | */ |
| | | public List<String> getReferralURLs() |
| | | { |
| | | |
| | | return referralURLs; |
| | | } |
| | | |
| | |
| | | */ |
| | | public byte getType() |
| | | { |
| | | |
| | | return OP_TYPE_SEARCH_RESULT_REFERENCE; |
| | | } |
| | | |
| | |
| | | */ |
| | | public String getProtocolOpName() |
| | | { |
| | | |
| | | return "Search Result Reference"; |
| | | } |
| | | |
| | |
| | | */ |
| | | public ASN1Element encode() |
| | | { |
| | | |
| | | ArrayList<ASN1Element> elements = |
| | | new ArrayList<ASN1Element>(referralURLs.size()); |
| | | for (String url : referralURLs) |
| | |
| | | decodeSearchReference(ASN1Element element) |
| | | throws LDAPException |
| | | { |
| | | |
| | | ArrayList<ASN1Element> elements; |
| | | try |
| | | { |
| | |
| | | */ |
| | | public void toString(StringBuilder buffer) |
| | | { |
| | | |
| | | buffer.append("SearchReference(referralURLs={"); |
| | | |
| | | if (! referralURLs.isEmpty()) |
| | |
| | | */ |
| | | public void toString(StringBuilder buffer, int indent) |
| | | { |
| | | |
| | | StringBuilder indentBuf = new StringBuilder(indent); |
| | | for (int i=0 ; i < indent; i++) |
| | | { |