本文整理汇总了Java中org.alfresco.jlan.smb.server.CIFSConfigSection类的典型用法代码示例。如果您正苦于以下问题:Java CIFSConfigSection类的具体用法?Java CIFSConfigSection怎么用?Java CIFSConfigSection使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
CIFSConfigSection类属于org.alfresco.jlan.smb.server包,在下文中一共展示了CIFSConfigSection类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createCifsConfigSection
import org.alfresco.jlan.smb.server.CIFSConfigSection; //导入依赖的package包/类
private static void createCifsConfigSection(final ServerConfiguration serverConfiguration, final String hostname, final String domainName) throws InvalidConfigurationException {
final CIFSConfigSection cifsConfigSection = new CIFSConfigSection(serverConfiguration);
cifsConfigSection.setServerName(hostname);
cifsConfigSection.setDomainName(domainName);
cifsConfigSection.setHostAnnounceInterval(5);
cifsConfigSection.setHostAnnouncer(true);
cifsConfigSection.setAuthenticator(createCifsAuthenticatior(serverConfiguration));
cifsConfigSection.setTcpipSMB(true);
if (HIGHPORT_SMB) {
cifsConfigSection.setTcpipSMBPort(1025);
cifsConfigSection.setSessionPort(1026);
}
}
示例2: isCIFSServerEnabled
import org.alfresco.jlan.smb.server.CIFSConfigSection; //导入依赖的package包/类
/**
* Check if the CIFS server is enabled
*
* @return boolean
*/
public boolean isCIFSServerEnabled()
{
return (m_smbServer.isStarted() && m_serverConfig.hasConfigSection(CIFSConfigSection.SectionName));
}
示例3: isSMBServerEnabled
import org.alfresco.jlan.smb.server.CIFSConfigSection; //导入依赖的package包/类
/**
* Check if the SMB server is enabled
*
* @return boolean
*/
public final boolean isSMBServerEnabled()
{
return hasConfigSection( CIFSConfigSection.SectionName);
}