public class DialectSelector extends Object
Used to select the SMB/CIFS dialects that a client can use when communicating with a remote server. The dialect list is used by the client/server to agree the protocol level during the initial SMB/CIFS negotiation phase.
Constructor and Description |
---|
DialectSelector()
Construct a new SMB dialect selector with the SMB core protocol selected.
|
Modifier and Type | Method and Description |
---|---|
void |
AddDialect(int idx)
Add a dialect to the list of available SMB dialects.
|
void |
ClearAll()
Clear all the dialect bits.
|
void |
copyFrom(DialectSelector dsel)
Copy the SMB dialect selector settings.
|
void |
EnableAll()
Set all available dialects
|
boolean |
hasCore()
Determine if the core SMB dialect is enabled
|
boolean |
hasDialect(int idx)
Determine if the specified SMB dialect is selected/available.
|
boolean |
hasLanMan()
Determine if the LanMan SMB dialect is enabled
|
boolean |
hasNT()
Determine if the NT SMB dialect is enabled
|
void |
RemoveDialect(int idx)
Remove an SMB dialect from the list of available dialects.
|
String |
toString()
Return the dialect selector list as a string.
|
public DialectSelector()
public void AddDialect(int idx) throws ArrayIndexOutOfBoundsException
idx
- Index of the dialect to add to the available dialects.ArrayIndexOutOfBoundsException
- Invalid dialect index.public void ClearAll()
public void EnableAll()
public void copyFrom(DialectSelector dsel)
dsel
- DialectSelectorpublic boolean hasDialect(int idx) throws ArrayIndexOutOfBoundsException
idx
- Index of the dialect to test for.ArrayIndexOutOfBoundsException
- Invalid dialect index.public boolean hasCore()
public boolean hasLanMan()
public boolean hasNT()
public void RemoveDialect(int idx) throws ArrayIndexOutOfBoundsException
idx
- Index of the dialect to remove.ArrayIndexOutOfBoundsException
- Invalid dialect index.Copyright © 2005–2018 Alfresco Software. All rights reserved.