public class PassthruServerFactory extends Object implements org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
PassthruServers
objects, allowing setting of the server list via local server, individual
servers or domain name.Modifier and Type | Field and Description |
---|---|
static int |
DefaultSessionTmo |
static int |
MaxCheckInterval |
static int |
MaxSessionTmo |
static int |
MinCheckInterval |
static int |
MinSessionTmo |
Constructor and Description |
---|
PassthruServerFactory() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
destroy() |
Object |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setBroadcastMask(String bcastMask)
Set the broadcast mask to use for NetBIOS name lookups
|
void |
setDomain(String domain)
Sets the domain to authenticate against
|
void |
setLocalServer(boolean localServer)
Indicates whether the local server should be used as the authentication server
|
void |
setNullDomainUseAnyServer(boolean nullDomain)
Set the null domain to use any available server option
|
void |
setOfflineCheckInterval(Integer offlineCheckInterval)
Sets the offline server check interval in seconds
|
void |
setProtocolOrder(String protoOrder)
Set the protocol order for passthru connections
|
void |
setServer(String server)
Sets the server(s) to authenticate against.
|
void |
setTimeout(int timeout)
Sets the timeout for opening a session to an authentication server
|
public static final int DefaultSessionTmo
public static final int MinSessionTmo
public static final int MaxSessionTmo
public static final int MinCheckInterval
public static final int MaxCheckInterval
public void setTimeout(int timeout)
timeout
- a time period in millisecondspublic void setLocalServer(boolean localServer)
localServer
- true
if the local server should be used as the authentication serverpublic void setServer(String server)
server
- comma-delimited list of server namespublic void setDomain(String domain)
domain
- a domain namepublic void setOfflineCheckInterval(Integer offlineCheckInterval)
offlineCheckInterval
- a time interval in secondspublic final void setNullDomainUseAnyServer(boolean nullDomain)
nullDomain
- booleanpublic void setProtocolOrder(String protoOrder)
protoOrder
- a comma-delimited list containing one or more of "NetBIOS" and "TCPIP" in any orderpublic final void setBroadcastMask(String bcastMask) throws IOException
bcastMask
- Stringorg.alfresco.error.AlfrescoRuntimeException
IOException
public void afterPropertiesSet() throws org.alfresco.jlan.server.config.InvalidConfigurationException
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
org.alfresco.jlan.server.config.InvalidConfigurationException
public Object getObject()
getObject
in interface org.springframework.beans.factory.FactoryBean
public Class<?> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean
Copyright © 2005–2017 Alfresco Software. All rights reserved.