Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PORT
Default LDAP port
|
protected boolean |
nosslFlag |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
LdapServer(LdapTransactionManager txManager,
UserFactory userSessionFactory,
int port,
boolean nosslFlag,
String bindAddress,
PropFindPropertyBuilder propFindPropertyBuilder)
Create a ServerSocket to listen for connections.
|
LdapServer(LdapTransactionManager txManager,
UserFactory userSessionFactory,
PropFindPropertyBuilder propFindPropertyBuilder) |
LdapServer(LdapTransactionManager txManager,
UserFactory userSessionFactory,
WebDavProtocol webDavProtocol,
PropFindPropertyBuilder propFindPropertyBuilder)
This constructor is for convenience.
|
| Modifier and Type | Method and Description |
|---|---|
void |
bind()
Bind server socket on defined port.
|
void |
close()
Close server socket
|
LdapConnection |
createConnectionHandler(Socket clientSocket) |
String |
getBindAddress() |
File |
getKeystoreFile() |
String |
getKeystorePass() |
String |
getKeystoreType() |
int |
getPort()
Server socket TCP port
|
String |
getProtocolName() |
boolean |
isAllowRemote() |
boolean |
isNosslFlag() |
void |
run()
The body of the server thread.
|
void |
setAllowRemote(boolean allowRemote) |
void |
setBindAddress(String bindAddress) |
void |
setKeystoreFile(File keystoreFile) |
void |
setKeystorePass(String keystorePass) |
void |
setKeystoreType(String keystoreType) |
void |
setNosslFlag(boolean nosslFlag) |
void |
setPort(int port) |
void |
start() |
activeCount, checkAccess, clone, 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, yieldpublic static final int DEFAULT_PORT
protected boolean nosslFlag
public LdapServer(LdapTransactionManager txManager, UserFactory userSessionFactory, int port, boolean nosslFlag, String bindAddress, PropFindPropertyBuilder propFindPropertyBuilder)
port - pop listen port, 389 if not defined (0)public LdapServer(LdapTransactionManager txManager, UserFactory userSessionFactory, PropFindPropertyBuilder propFindPropertyBuilder)
public LdapServer(LdapTransactionManager txManager, UserFactory userSessionFactory, WebDavProtocol webDavProtocol, PropFindPropertyBuilder propFindPropertyBuilder)
userSessionFactory - webDavProtocol - public boolean isNosslFlag()
public void setNosslFlag(boolean nosslFlag)
public String getBindAddress()
public void setBindAddress(String bindAddress)
public void setPort(int port)
public String getProtocolName()
public LdapConnection createConnectionHandler(Socket clientSocket)
public void bind()
throws Exception
DavMailException - unable to create server socketExceptionpublic void run()
public void close()
public int getPort()
public String getKeystorePass()
public void setKeystorePass(String keystorePass)
public String getKeystoreType()
public void setKeystoreType(String keystoreType)
public File getKeystoreFile()
public void setKeystoreFile(File keystoreFile)
public boolean isAllowRemote()
public void setAllowRemote(boolean allowRemote)
Copyright © 2021 McEvoy Software Ltd. All rights reserved.