public class SessionSettings extends Object
A SessionSettings object can be used with the various open session methods of the SessionFactory class to specify per session overrides to the default settings, such as protocol order, remote ports, timeout values, debugging options.
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
|
int |
getNetBIOSNamePort()
Return the NetBIOS name port
|
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
|
String |
getSubnetMask()
Get the subnet mask to be used for NetBIOS name lookup broadcasts
|
int |
getVirtualCircuit()
Return the virtual circuit for this session
|
InetAddress |
getWINSServer()
Get the WINS server to be used for NetBIOS name lookups
|
boolean |
hasNetBIOSNameScope()
Determine if the NetBIOS name scope is set
|
boolean |
hasUpdateProtocol()
Check if the update primary protocol flag 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 |
setNetBIOSNamePort(int port)
Set the NetBIOS name port
|
void |
setNetBIOSNameScope(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(String mask)
Set the subnet mask to be used for NetBIOS name lookup broadcasts
|
void |
setUpdateProtocol(boolean updateProto)
Set/clear the update protocol flag
|
void |
setUseWildcardServerName(boolean ena)
Set/clear the use wildcard file server name (*SMBSERVER) flag
|
void |
setVirtualCircuit(int vc)
Set the virtual circuit
|
void |
setWINSServer(InetAddress addr)
Set the WINS server to be used for NetBIOS name lookups
|
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 getNetBIOSNamePort()
public final int getNativeSMBPort()
public final boolean hasNetBIOSNameScope()
public final String getNetBIOSNameScope()
public final String getSubnetMask()
public final InetAddress getWINSServer()
public final int getLookupType()
public final int getLookupTimeout()
public final boolean useWildcardServerName()
public final boolean hasUpdateProtocol()
public final int getVirtualCircuit()
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 setNetBIOSNamePort(int port)
port
- intpublic final void setNativeSMBPort(int port)
port
- intpublic final void setNetBIOSNameScope(String scope)
scope
- Stringpublic final void setSubnetMask(String mask)
mask
- Stringpublic final void setWINSServer(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 final void setUpdateProtocol(boolean updateProto)
updateProto
- booleanpublic final void setVirtualCircuit(int vc)
vc
- intCopyright © 2005–2017 Alfresco Software. All rights reserved.