public class SMBResourceProvider extends Object implements ResourceProvider
Constructor and Description |
---|
SMBResourceProvider() |
Modifier and Type | Method and Description |
---|---|
static String |
encryptUserInfo(String userInfo) |
Map<String,String> |
getArguments()
returns the arguments defined for this resource
|
jcifs.smb.SmbFile |
getFile(String path,
jcifs.smb.NtlmPasswordAuthentication auth) |
Resource |
getResource(String path)
return a resource that match given path
|
Resource |
getResource(String path,
jcifs.smb.NtlmPasswordAuthentication auth) |
String |
getScheme()
returns the scheme of the resource
|
ResourceProvider |
init(String scheme,
Map arguments)
this class is called by the "Resources" at startup
|
boolean |
isAttributesSupported()
returns if the resource support attributes for his resources
|
boolean |
isCaseSensitive()
returns if the resources of the provider are case-sensitive or not
|
static boolean |
isEncryptedUserInfo(String userInfo) |
boolean |
isModeSupported()
returns if the resource support mode for his resources
|
void |
lock(Resource res) |
void |
read(Resource res) |
void |
setResources(Resources resources) |
static String |
unencryptUserInfo(String userInfo) |
void |
unlock(Resource res) |
public SMBResourceProvider()
public ResourceProvider init(String scheme, Map arguments)
ResourceProvider
init
in interface ResourceProvider
scheme
- of the provider (can be "null")arguments
- initals argument (can be "null")public Resource getResource(String path, jcifs.smb.NtlmPasswordAuthentication auth)
public Resource getResource(String path)
ResourceProvider
getResource
in interface ResourceProvider
public String getScheme()
ResourceProvider
getScheme
in interface ResourceProvider
public Map<String,String> getArguments()
ResourceProvider
getArguments
in interface ResourceProvider
public void setResources(Resources resources)
setResources
in interface ResourceProvider
public void unlock(Resource res)
unlock
in interface ResourceProvider
public void lock(Resource res) throws IOException
lock
in interface ResourceProvider
IOException
public void read(Resource res) throws IOException
read
in interface ResourceProvider
IOException
public boolean isCaseSensitive()
ResourceProvider
isCaseSensitive
in interface ResourceProvider
public boolean isModeSupported()
ResourceProvider
isModeSupported
in interface ResourceProvider
public boolean isAttributesSupported()
ResourceProvider
isAttributesSupported
in interface ResourceProvider
public static boolean isEncryptedUserInfo(String userInfo)
public static String unencryptUserInfo(String userInfo)
public static String encryptUserInfo(String userInfo)
Copyright © 2015 Lucee