public class SessionSettings
extends java.lang.Object
Constructor and Description |
---|
SessionSettings()
Default constructor
|
SessionSettings(int primaryProto,
int secondaryProto)
Class constructor
|
SessionSettings(int primaryProto,
int secondaryProto,
int tmo)
/**
Class constructor
|
Modifier and Type | Method and Description |
---|---|
DialectSelector |
getDialects()
Return the SMB dialect list to negotiate
|
int |
getLookupTimeout()
Get the NetBIOS name lookup timeout, in milliseconds
|
int |
getLookupType()
Get the NetBIOS name lookup type(s) to use
|
int |
getNativeSMBPort()
Return the native SMB port
|
java.lang.String |
getNetBIOSNameScope()
Return the NetBIOS name scope
|
int |
getNetBIOSSessionPort()
Return the NetBIOS session port
|
int |
getPrimaryProtocol()
Return the primary protocol
|
int |
getSecondaryProtocol()
Return the secondary protocol
|
int |
getSessionTimeout()
Return the session timeout
|
java.lang.String |
getSubnetMask()
Get the subnet mask to be used for NetBIOS name lookup broadcasts
|
java.net.InetAddress |
getWINSServer()
Get the WINS server to be used for NetBIOS name lookups
|
boolean |
hasNetBIOSNameScope()
Determine if the NetBIOS name scope is set
|
void |
setDialects(DialectSelector dialects)
Set the negotiated dialect list
|
void |
setLookupTimeout(int tmo)
Set the NetBIOS name lookup timeout, in milliseconds
|
void |
setLookupType(int typ)
Set the NetBIOS name lookup type(s) to use
|
void |
setNativeSMBPort(int port)
Set the native SMB port
|
void |
setNetBIOSNameScope(java.lang.String scope)
Set the NetBIOS name scope
|
void |
setNetBIOSSessionPort(int port)
Set the NetBIOS session port
|
void |
setPrimaryProtocol(int proto)
Set the primary connection protocol
|
void |
setSecondaryProtocol(int proto)
Set the secondary connection protocol
|
void |
setSessionTimeout(int tmo)
Set the session connection timeout, in milliseconds
|
void |
setSubnetMask(java.lang.String mask)
Set the subnet mask to be used for NetBIOS name lookup broadcasts
|
void |
setUseWildcardServerName(boolean ena)
Set/clear the use wildcard file server name (*SMBSERVER) flag
|
void |
setWINSServer(java.net.InetAddress addr)
Set the WINS server to be used for NetBIOS name lookups
|
java.lang.String |
toString()
Return the session settings as a string
|
boolean |
useWildcardServerName()
Get the use wildcard file server name (*SMBSERVER) flag
|
public SessionSettings()
public SessionSettings(int primaryProto, int secondaryProto)
primaryProto
- intsecondaryProto
- intpublic SessionSettings(int primaryProto, int secondaryProto, int tmo)
primaryProto
- intsecondaryProto
- inttmo
- intpublic final int getPrimaryProtocol()
public final int getSecondaryProtocol()
public final int getSessionTimeout()
public final DialectSelector getDialects()
public final int getNetBIOSSessionPort()
public final int getNativeSMBPort()
public final boolean hasNetBIOSNameScope()
public final java.lang.String getNetBIOSNameScope()
public final java.lang.String getSubnetMask()
public final java.net.InetAddress getWINSServer()
public final int getLookupType()
public final int getLookupTimeout()
public final boolean useWildcardServerName()
public final void setPrimaryProtocol(int proto)
proto
- intpublic final void setSecondaryProtocol(int proto)
proto
- intpublic final void setSessionTimeout(int tmo)
tmo
- intpublic final void setDialects(DialectSelector dialects)
dialects
- DialectSelectorpublic final void setNetBIOSSessionPort(int port)
port
- intpublic final void setNativeSMBPort(int port)
port
- intpublic final void setNetBIOSNameScope(java.lang.String scope)
scope
- Stringpublic final void setSubnetMask(java.lang.String mask)
mask
- Stringpublic final void setWINSServer(java.net.InetAddress addr)
addr
- InetAddresspublic final void setLookupType(int typ)
typ
- intpublic final void setLookupTimeout(int tmo)
tmo
- intpublic final void setUseWildcardServerName(boolean ena)
ena
- booleanpublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.