public class CIFSConfigSection extends ConfigSection
Modifier and Type | Field and Description |
---|---|
static int |
DefSessionTimeout |
static String |
SectionName |
Constructor and Description |
---|
CIFSConfigSection(ServerConfiguration config)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
int |
addAliasName(String alias)
Add a server alias name
|
int |
addAliasNames(StringList names)
Add server alias names
|
void |
closeConfig()
Close the configuration section
|
StringList |
getAliasNames()
Return the list of alias names for the server
|
ICifsAuthenticator |
getAuthenticator()
Get the authenticator object that is used to provide user and share connection authentication.
|
org.springframework.extensions.config.ConfigElement |
getAuthenticatorParameters()
Return the authenticator initialization parameters
|
String |
getBroadcastMask()
Return the network broadcast mask to be used for broadcast datagrams.
|
String |
getComment()
Return the server comment.
|
int |
getDatagramPort()
Return the NetBIOS datagram port
|
String |
getDomainName()
Return the domain name.
|
DialectSelector |
getEnabledDialects()
Return the enabled SMB dialects that the server will use when negotiating sessions.
|
int |
getHostAnnounceInterval()
Return the host announcement interval, in minutes
|
int |
getHostAnnouncerPort()
Return the host announcer port to use, or zero for the default port
|
List<String> |
getLoadBalancerList()
Gets the load balancer list address.
|
int |
getMaximumVirtualCircuits()
Return the maximum virtual circuits per session
|
int |
getNameServerPort()
Return the name server port to listen on.
|
InetAddress |
getNetBIOSBindAddress()
Return the local address that the NetBIOS name server should bind to.
|
int |
getNumberOfAliasNames()
Return the number of alias names configured
|
InetAddress |
getPrimaryWINSServer()
Return the primary WINS server address
|
InetAddress |
getSecondaryWINSServer()
Return the secondary WINS server address
|
String |
getServerName()
Return the server name.
|
int |
getServerType()
Return the server type flags.
|
int |
getSessionDebugFlags()
Return the server debug flags.
|
int |
getSessionPort()
Get the session port to listen on.
|
InetAddress |
getSMBBindAddress()
Return the local address that the SMB server should bind to.
|
int |
getSocketTimeout()
Return the client socket timeout, in millisconds
|
int |
getTcpipSMBPort()
Return the TCP/IP SMB port
|
List<String> |
getTerminalServerList()
Gets the terminal server list address.
|
String |
getWin32ClientAccept()
Return the Win32 NetBIOS allowed client name, defaults to '*' to allow any client to connect
|
int |
getWin32HostAnnounceInterval()
Return the Win32 NetBIOS host announcement interval, in minutes
|
int |
getWin32LANA()
Return the Win3 NetBIOS LANA number to use, or -1 for the first available
|
String |
getWin32ServerName()
Return the Win32 NetBIOS server name, if null the default server name will be used
|
boolean |
hasAliasNames()
Check if the server has any alias names configured
|
boolean |
hasDisableNIOCode()
Determine if NIO based code should be disabled
|
boolean |
hasEnableAnnouncer()
Determine if the server should be announced so that it appears under Network Neighborhood.
|
boolean |
hasHostAnnounceDebug()
Determine if host announcement debugging is enabled
|
boolean |
hasMacintoshExtensions()
Determine if Macintosh extension SMBs are enabled
|
boolean |
hasNetBIOSBindAddress()
Determine if the NetBIOS name server should bind to a particular local address
|
boolean |
hasNetBIOSDebug()
Determine if NetBIOS name server debugging is enabled
|
boolean |
hasNetBIOSSMB()
Determine if NetBIOS SMB is enabled
|
boolean |
hasPrimaryWINSServer()
Determine if the primary WINS server address has been set
|
boolean |
hasSecondaryWINSServer()
Determine if the secondary WINS server address has been set
|
boolean |
hasSMBBindAddress()
Determine if the SMB server should bind to a particular local address
|
boolean |
hasTcpipSMB()
Determine if TCP/IP SMB is enabled
|
boolean |
hasWin32EnableAnnouncer()
Determine if the server should be announced via Win32 NetBIOS, so that it appears under Network Neighborhood.
|
boolean |
hasWin32NetBIOS()
Determine if Win32 NetBIOS is enabled
|
boolean |
isNativeCodeDisabled()
Check if native code calls are disabled
|
int |
setAuthenticator(ICifsAuthenticator auth)
Set the authenticator to be used to authenticate users and share connections.
|
int |
setAuthenticator(String authClass,
org.springframework.extensions.config.ConfigElement params,
int accessMode,
boolean allowGuest)
Set the authenticator to be used to authenticate users and share connections.
|
int |
setBroadcastMask(String mask)
Set the broadcast mask to be used for broadcast datagrams.
|
int |
setComment(String comment)
Set the server comment.
|
int |
setDatagramPort(int port)
Set the name server datagram port
|
int |
setDisableNIOCode(boolean disableNIO)
Set the disable NIO code flag
|
int |
setDomainName(String domain)
Set the domain that the server is to belong to.
|
int |
setEnabledDialects(DialectSelector dialects)
Set the SMB dialects that the server may use when negotiating a session with a client.
|
int |
setHostAnnounceDebug(boolean ena)
Enable/disable host announcement debug output
|
int |
setHostAnnounceInterval(int ival)
Set the host announcement interval, in minutes
|
int |
setHostAnnouncer(boolean b)
Enable/disable the host announcer.
|
int |
setHostAnnouncerPort(int port)
Set the host announcer port
|
int |
setLoadBalancerList(List<String> loadBalancerList)
Sets the load balancer list.
|
int |
setMacintoshExtensions(boolean ena)
Enable/disbale Macintosh extension SMBs
|
int |
setMaximumVirtualCircuits(int maxVC)
Set the maximum virtual circuits per session
|
int |
setNameServerPort(int port)
Set the name server port to listen on.
|
void |
setNativeCodeDisabled(boolean noNative)
Set the native code disabled flag, to prevent calls to the Win32NetBIOS DLL
|
int |
setNetBIOSBindAddress(InetAddress addr)
Set the local address that the NetBIOS name server should bind to.
|
int |
setNetBIOSDebug(boolean ena)
Enable/disable NetBIOS name server debug output
|
int |
setNetBIOSSMB(boolean ena)
Enable/disable the NetBIOS SMB support
|
int |
setPrimaryWINSServer(InetAddress addr)
Set the primary WINS server address
|
int |
setSecondaryWINSServer(InetAddress addr)
Set the secondary WINS server address
|
int |
setServerName(String name)
Set the server name.
|
int |
setServerType(int typ)
Set the server type flags.
|
int |
setSessionDebugFlags(int flags)
Set the debug flags to be used by the server.
|
int |
setSessionPort(int port)
Set the session port to listen on for incoming session requests.
|
int |
setSMBBindAddress(InetAddress addr)
Set the local address that the SMB server should bind to.
|
int |
setSocketTimeout(int tmo)
Set the client socket timeout, in milliseconds
|
int |
setTcpipSMB(boolean ena)
Enable/disable the TCP/IP SMB support
|
int |
setTcpipSMBPort(int port)
Set the TCP/IP SMB port
|
int |
setTerminalServerList(List<String> terminalServerList)
Sets the terminal server list.
|
int |
setWin32HostAnnounceInterval(int ival)
Set the Win32 NetBIOS host announcement interval, in minutes
|
int |
setWin32HostAnnouncer(boolean b)
Enable/disable the Win32 NetBIOS host announcer.
|
int |
setWin32LANA(int ival)
Set the Win32 LANA to be used by the Win32 NetBIOS interface
|
int |
setWin32NetBIOS(boolean ena)
Enable/disable the Win32 NetBIOS SMB support
|
int |
setWin32NetBIOSClientAccept(String name)
Set the Win32 NetBIOS accepted client name
|
int |
setWin32NetBIOSName(String name)
Set the Win32 NetBIOS file server name
|
int |
setWin32WinsockNetBIOS(boolean useWinsock)
Set the Win32 NetBIOS interface to use either Winsock NetBIOS or the Netbios() API calls
|
boolean |
useWinsockNetBIOS()
Determine if the Win32 Netbios() API or Winsock Netbios calls should be used
|
fireConfigurationChange, getSectionName, getServerConfiguration, isUpdated, setUpdated
public static final String SectionName
public static final int DefSessionTimeout
public CIFSConfigSection(ServerConfiguration config)
config
- ServerConfigurationpublic final int setTerminalServerList(List<String> terminalServerList) throws InvalidConfigurationException
terminalServerList
- InvalidConfigurationException
public final List<String> getTerminalServerList()
public final int setLoadBalancerList(List<String> loadBalancerList) throws InvalidConfigurationException
loadBalancerList
- InvalidConfigurationException
public final List<String> getLoadBalancerList()
public final ICifsAuthenticator getAuthenticator()
public final org.springframework.extensions.config.ConfigElement getAuthenticatorParameters()
public final InetAddress getSMBBindAddress()
public final InetAddress getNetBIOSBindAddress()
public final String getBroadcastMask()
public final String getComment()
public final String getDomainName()
public final DialectSelector getEnabledDialects()
public final int getNameServerPort()
public final int getDatagramPort()
public final String getServerName()
public final boolean hasAliasNames()
public final int getNumberOfAliasNames()
public final StringList getAliasNames()
public final int getServerType()
public final int getSessionDebugFlags()
public final int getSessionPort()
public final String getWin32ServerName()
public final String getWin32ClientAccept()
public final boolean hasWin32EnableAnnouncer()
public final int getWin32HostAnnounceInterval()
public final int getWin32LANA()
public final boolean useWinsockNetBIOS()
public final boolean hasDisableNIOCode()
public final boolean hasPrimaryWINSServer()
public final InetAddress getPrimaryWINSServer()
public final boolean hasSecondaryWINSServer()
public final InetAddress getSecondaryWINSServer()
public final boolean hasSMBBindAddress()
public final boolean hasNetBIOSBindAddress()
public final boolean hasNetBIOSDebug()
public final boolean hasHostAnnounceDebug()
public final boolean hasEnableAnnouncer()
public final int getHostAnnounceInterval()
public final int getHostAnnouncerPort()
public final boolean hasMacintoshExtensions()
public final boolean hasNetBIOSSMB()
public final boolean hasTcpipSMB()
public final boolean hasWin32NetBIOS()
public final int getTcpipSMBPort()
public final int getSocketTimeout()
public final int getMaximumVirtualCircuits()
public final boolean isNativeCodeDisabled()
public final int setAuthenticator(String authClass, org.springframework.extensions.config.ConfigElement params, int accessMode, boolean allowGuest) throws InvalidConfigurationException
authClass
- Stringparams
- ConfigElementaccessMode
- intallowGuest
- booleanInvalidConfigurationException
public final int setAuthenticator(ICifsAuthenticator auth) throws InvalidConfigurationException
auth
- the authenticatorInvalidConfigurationException
public final int setSMBBindAddress(InetAddress addr) throws InvalidConfigurationException
addr
- java.net.InetAddressInvalidConfigurationException
public final int setNetBIOSBindAddress(InetAddress addr) throws InvalidConfigurationException
addr
- java.net.InetAddressInvalidConfigurationException
public final int setBroadcastMask(String mask) throws InvalidConfigurationException
mask
- java.lang.StringInvalidConfigurationException
public final int setComment(String comment) throws InvalidConfigurationException
comment
- java.lang.StringInvalidConfigurationException
public final int setDomainName(String domain) throws InvalidConfigurationException
domain
- java.lang.StringInvalidConfigurationException
public final int setEnabledDialects(DialectSelector dialects) throws InvalidConfigurationException
dialects
- DialectSelectorInvalidConfigurationException
public final int setHostAnnouncer(boolean b) throws InvalidConfigurationException
b
- booleanInvalidConfigurationException
public final int setHostAnnounceInterval(int ival) throws InvalidConfigurationException
ival
- intInvalidConfigurationException
public final int setHostAnnouncerPort(int port) throws InvalidConfigurationException
port
- intInvalidConfigurationException
public final int setNameServerPort(int port) throws InvalidConfigurationException
port
- intInvalidConfigurationException
public final int setDatagramPort(int port) throws InvalidConfigurationException
port
- intInvalidConfigurationException
public final int setNetBIOSDebug(boolean ena) throws InvalidConfigurationException
ena
- booleanInvalidConfigurationException
public final int setHostAnnounceDebug(boolean ena) throws InvalidConfigurationException
ena
- booleanInvalidConfigurationException
public final int setMacintoshExtensions(boolean ena) throws InvalidConfigurationException
ena
- booleanInvalidConfigurationException
public final int setServerName(String name) throws InvalidConfigurationException
name
- java.lang.StringInvalidConfigurationException
public final int addAliasName(String alias) throws InvalidConfigurationException
alias
- StringInvalidConfigurationException
public final int addAliasNames(StringList names) throws InvalidConfigurationException
names
- StringListrInvalidConfigurationException
public final int setServerType(int typ) throws InvalidConfigurationException
typ
- intInvalidConfigurationException
public final int setSessionDebugFlags(int flags) throws InvalidConfigurationException
flags
- intInvalidConfigurationException
public final int setSessionPort(int port) throws InvalidConfigurationException
port
- intInvalidConfigurationException
public final int setNetBIOSSMB(boolean ena) throws InvalidConfigurationException
ena
- booleanInvalidConfigurationException
public final int setTcpipSMB(boolean ena) throws InvalidConfigurationException
ena
- booleanInvalidConfigurationException
public final int setWin32NetBIOS(boolean ena) throws InvalidConfigurationException
ena
- booleanInvalidConfigurationException
public final int setWin32NetBIOSName(String name) throws InvalidConfigurationException
name
- StringInvalidConfigurationException
public final int setWin32NetBIOSClientAccept(String name) throws InvalidConfigurationException
name
- StringInvalidConfigurationException
public final int setWin32HostAnnouncer(boolean b) throws InvalidConfigurationException
b
- booleanInvalidConfigurationException
public final int setWin32LANA(int ival) throws InvalidConfigurationException
ival
- intInvalidConfigurationException
public final int setWin32HostAnnounceInterval(int ival) throws InvalidConfigurationException
ival
- intInvalidConfigurationException
public final int setWin32WinsockNetBIOS(boolean useWinsock) throws InvalidConfigurationException
useWinsock
- booleanInvalidConfigurationException
public final int setTcpipSMBPort(int port) throws InvalidConfigurationException
port
- intInvalidConfigurationException
public final int setPrimaryWINSServer(InetAddress addr) throws InvalidConfigurationException
addr
- InetAddressInvalidConfigurationException
public final int setSecondaryWINSServer(InetAddress addr) throws InvalidConfigurationException
addr
- InetAddressInvalidConfigurationException
public final int setDisableNIOCode(boolean disableNIO) throws InvalidConfigurationException
disableNIO
- booleanInvalidConfigurationException
public final int setSocketTimeout(int tmo) throws InvalidConfigurationException
tmo
- intInvalidConfigurationException
public final void setNativeCodeDisabled(boolean noNative)
noNative
- booleanpublic final int setMaximumVirtualCircuits(int maxVC) throws InvalidConfigurationException
maxVC
- intInvalidConfigurationException
public final void closeConfig()
closeConfig
in class ConfigSection
Copyright © 2005–2017 Alfresco Software. All rights reserved.