Class PassthruServerFactory

  • All Implemented Interfaces:
    org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean

    public class PassthruServerFactory
    extends Object
    implements org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
    A Factory for PassthruServers objects, allowing setting of the server list via local server, individual servers or domain name.
    Author:
    dward
    • Constructor Detail

      • PassthruServerFactory

        public PassthruServerFactory()
    • Method Detail

      • setTimeout

        public void setTimeout​(int timeout)
        Sets the timeout for opening a session to an authentication server
        Parameters:
        timeout - a time period in milliseconds
      • setLocalServer

        public void setLocalServer​(boolean localServer)
        Indicates whether the local server should be used as the authentication server
        Parameters:
        localServer - true if the local server should be used as the authentication server
      • setServer

        public void setServer​(String server)
        Sets the server(s) to authenticate against.
        Parameters:
        server - comma-delimited list of server names
      • setDomain

        public void setDomain​(String domain)
        Sets the domain to authenticate against
        Parameters:
        domain - a domain name
      • setOfflineCheckInterval

        public void setOfflineCheckInterval​(Integer offlineCheckInterval)
        Sets the offline server check interval in seconds
        Parameters:
        offlineCheckInterval - a time interval in seconds
      • setNullDomainUseAnyServer

        public final void setNullDomainUseAnyServer​(boolean nullDomain)
        Set the null domain to use any available server option
        Parameters:
        nullDomain - boolean
      • setProtocolOrder

        public void setProtocolOrder​(String protoOrder)
        Set the protocol order for passthru connections
        Parameters:
        protoOrder - a comma-delimited list containing one or more of "NetBIOS" and "TCPIP" in any order
      • setBroadcastMask

        public final void setBroadcastMask​(String bcastMask)
                                    throws IOException
        Set the broadcast mask to use for NetBIOS name lookups
        Parameters:
        bcastMask - String
        Throws:
        org.alfresco.error.AlfrescoRuntimeException
        IOException
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws org.alfresco.jlan.server.config.InvalidConfigurationException
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        org.alfresco.jlan.server.config.InvalidConfigurationException
      • getObject

        public Object getObject()
        Specified by:
        getObject in interface org.springframework.beans.factory.FactoryBean
      • getObjectType

        public Class<?> getObjectType()
        Specified by:
        getObjectType in interface org.springframework.beans.factory.FactoryBean
      • isSingleton

        public boolean isSingleton()
        Specified by:
        isSingleton in interface org.springframework.beans.factory.FactoryBean
      • destroy

        public void destroy()
                     throws Exception
        Specified by:
        destroy in interface org.springframework.beans.factory.DisposableBean
        Throws:
        Exception