com.ibm.di.eventhandler
Class LDAPServerEventHandler

java.lang.Object
  extended by java.lang.Thread
      extended by com.ibm.di.server.Monitor
          extended by com.ibm.di.eventhandler.Switchboard
              extended by com.ibm.di.eventhandler.LDAPServerEventHandler
All Implemented Interfaces:
VersionInfoInterface, ActionListener, Runnable, EventListener

public class LDAPServerEventHandler
extends Switchboard


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
LDAPServerEventHandler()
           
LDAPServerEventHandler(Socket socket)
           
 
Method Summary
 Exception addSearchResultEntry(Entry entry)
          Sends a search result entry to the LDAP client in response to a search request.
 String getCharset()
          Returns the charset encoding name
 SearchResultAccumulator getSearchResultAccumulator()
           
 String getVersion()
          Return version information
 boolean isAccepting()
           
 boolean isBinary(String attribute)
          Returns true if the attribute should be treated as a binary.
 void run()
           
 void setBinary(Vector binattrs)
          Sets the list of binary attributes
 void setCharset(String charset)
          Sets the charset encoding
 void setExitRequested(boolean value)
          Override setExitRequested
 void setSocket(Socket s)
          Sets the LDAP client socket for a child thread.
 
Methods inherited from class com.ibm.di.eventhandler.Switchboard
actionPerformed, addEventListener, close, debug, debugBreak, debugMsg, dispatchEvent, dump, dumpEntry, dumpProperties, enableDebug, exitProcess, exitProcess, exitRequested, fireEvent, getConfiguration, getDebug, getDebugger, getEventHandlerListener, getExitMessage, getExitRequested, getInterceptor, getLog, getLogCategory, getNullBehavior, getNullBehaviorValue, getNullDefinition, getNullDefinitionValue, getParam, getParent, getProperty, getRecording, getScriptEngine, getServer, getStats, getTaskName, logmsg, logmsg, removeEventHandlerListener, removeEventListener, setConfiguration, setDebug, setDebugger, setEventHandlerListener, setExitMessage, setInterceptor, setLog, setLogCategory, setParam, setParent, setProperty, setRecording, start
 
Methods inherited from class com.ibm.di.server.Monitor
addActionListener, addThread, allThreadsStopped, fireListener, removeActionListener, removeThread, runningALs, runningEHs, setMonitorMessage, threadStarted, threadStopped
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LDAPServerEventHandler

public LDAPServerEventHandler()

LDAPServerEventHandler

public LDAPServerEventHandler(Socket socket)
Method Detail

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread

isAccepting

public boolean isAccepting()

setExitRequested

public void setExitRequested(boolean value)
Override setExitRequested

Overrides:
setExitRequested in class Switchboard

setSocket

public void setSocket(Socket s)
Sets the LDAP client socket for a child thread.


setBinary

public void setBinary(Vector binattrs)
Sets the list of binary attributes


isBinary

public boolean isBinary(String attribute)
Returns true if the attribute should be treated as a binary.


setCharset

public void setCharset(String charset)
Sets the charset encoding


getCharset

public String getCharset()
Returns the charset encoding name


getSearchResultAccumulator

public SearchResultAccumulator getSearchResultAccumulator()

addSearchResultEntry

public Exception addSearchResultEntry(Entry entry)
Sends a search result entry to the LDAP client in response to a search request.

Parameters:
entry - The entry. It must contain the $dn attribute plus other LDAP attributes.
Returns:
An exception object if the add failed.

getVersion

public String getVersion()
Return version information