public class CifsMounter extends Object
Mount/map a network drive taking care of platform differences.
Modifier and Type | Field and Description |
---|---|
static int |
Default |
static int |
NativeSMB |
static int |
NetBIOS |
static int |
Win32NetBIOS |
Constructor and Description |
---|
CifsMounter()
Default constructor
|
CifsMounter(String srvName,
String shareName,
String userName,
String password)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getPassword()
Return the password
|
int |
getProtocolPort()
Return the protocol port
|
String |
getServerAddress()
Return hte server address
|
String |
getServerName()
Return the server name
|
String |
getShareName()
Return the share name
|
String |
getUserName()
Return the user name
|
int |
isProtocolType()
Return the protocol type
|
void |
mountFilesystem(String driveLetter,
String mountPoint)
Mount a remote CIFS shared filesystem
|
void |
setPassword(String password)
Set the password
|
void |
setProtocolPort(int port)
Set the port to use for the connection
|
void |
setProtocolType(int proto)
Set the protocol type to use
|
void |
setServerAddress(String srvAddr)
Set the server address
|
void |
setServerName(String name)
Set the server name
|
void |
setShareName(String name)
Set the share name
|
void |
setUserName(String user)
Set the user name
|
String |
toString()
Return the CIFS mounter as a string
|
void |
unmountFilesystem(String driveLetter,
String mountPoint)
Unmount a remote CIFS shared filesystem
|
public static final int Default
public static final int NetBIOS
public static final int NativeSMB
public static final int Win32NetBIOS
public void mountFilesystem(String driveLetter, String mountPoint) throws CifsMountException
driveLetter
- StringmountPoint
- StringCifsMountException
public void unmountFilesystem(String driveLetter, String mountPoint) throws CifsMountException
driveLetter
- StringmountPoint
- StringCifsMountException
public final String getServerName()
public final String getServerAddress()
public final String getShareName()
public final String getUserName()
public final String getPassword()
public final int isProtocolType()
public final int getProtocolPort()
public final void setServerName(String name)
name
- Stringpublic final void setServerAddress(String srvAddr)
srvAddr
- Stringpublic final void setShareName(String name)
name
- Stringpublic final void setUserName(String user)
user
- Stringpublic final void setPassword(String password)
password
- Stringpublic final void setProtocolType(int proto)
proto
- intpublic final void setProtocolPort(int port)
port
- intCopyright © 2005–2017 Alfresco Software. All rights reserved.