LDAPJDK 4.1

netscape.ldap
Interface LDAPTraceWriter


public interface LDAPTraceWriter

The LDAPTraceWriter interface enables logging of LDAP trace messages in environments where an OutputStream can not be used.

The interface is primarily meant for integrating LDAP tracing with the servlet log facility:

     servletCtx = config.getServletContext();
     ...
     LDAPConnection ld = new LDAPConnection();
     ld.setProperty(ld.TRACE_PROPERTY, 
            new LDAPTraceWriter() { 
                public void write (String msg) {
                    servletCtx.log(msg);
                }
            });
 
 

See Also:
LDAPConnection.setProperty(java.lang.String, java.lang.Object)

Method Summary
 void write(java.lang.String msg)
          Writes an LDAP trace message.
 

Method Detail

write

public void write(java.lang.String msg)
Writes an LDAP trace message.
Parameters:
msg - An incoming or outgoing LDAP message
See Also:
LDAPConnection.setProperty(java.lang.String, java.lang.Object)

LDAPJDK 4.1