private void writeModifyDNRequestEntry( LDAPModifyDNRequest request, LDAPControl[] controls, String requestID) throws IOException, LDAPLocalException { checkState(false); // added this fix for OCT' 04 NDK if( (controls !=null) && (controls.length != 0)) { writeControls(controls, 3); } newLine(1); out.write("</modDNRequest>"); return; }
private void writeDeleteRequestEntry( LDAPDeleteRequest request, LDAPControl[] controls, String requestID) throws IOException, LDAPLocalException { checkState(false); // added this fix for OCT' 04 NDK if( (controls !=null) && (controls.length != 0)) { writeControls(controls, 3); } newLine(1); out.write("</delRequest>"); return; }
private void writeCompareRequestEntry( LDAPCompareRequest request, LDAPControl[] controls, String requestID) throws IOException, LDAPLocalException { checkState(false); newLine(2); out.write("<assertion name=\"" + request.getAttributeDescription()); out.write("\">"); newLine(3); out.write("<value>"); byte[] vals=request.getAssertionValue(); if (Base64.isLDIFSafe(vals)) out.write(new String(vals,"UTF-8")); else out.write(Base64.encode(vals)); out.write("</value>"); newLine(2); out.write("</assertion>"); // added this fix for OCT' 04 NDK if( (controls !=null) && (controls.length != 0)) { writeControls(controls, 3); } newLine(1); out.write("</compareRequest>"); } /*
writeControls(controls, 3);
private void writeAddRequestEntry( LDAPAddRequest request, LDAPControl[] controls, String requestID) throws IOException, LDAPLocalException { checkState(false); LDAPEntry entry=request.getEntry(); LDAPAttributeSet set = entry.getAttributeSet(); Iterator i = set.iterator(); while (i.hasNext()){ writeAttribute( (LDAPAttribute) i.next()); } if( (controls !=null) && (controls.length != 0)) { writeControls(controls, 3); } newLine(1); out.write("</addRequest>"); return; }
writeControls(controls, indent);
writeControls(controls, 3);
private void writeExtendedRequestEntry( LDAPExtendedRequest request, LDAPControl[] controls, String requestID) throws IOException, LDAPLocalException { checkState(false); newLine(2); out.write("<requestName>"); out.write(request.getExtendedOperation().getID()); out.write("</requestName>"); byte[] vals=request.getExtendedOperation().getValue(); if( vals != null) { newLine(2); out.write("<requestValue xsi:type=\"xsd:base64Binary\">"); out.write(Base64.encode(vals)); out.write("</requestValue>"); } // added this fix for OCT' 04 NDK if( (controls !=null) && (controls.length != 0)) { writeControls(controls, 3); } newLine(1); out.write("</extendedRequest>"); return; }
writeControls(controls, 3);