public interface CIFSContext
withDefaultCredentials(), withAnonymousCredentials(), withCredentials(Credentials)
allow to create such sub-contexts.
Implementors of this interface should extend BaseContext or
CIFSContextWrapper to get forward compatibility.| Modifier and Type | Method and Description |
|---|---|
boolean |
close() |
SmbResource |
get(String url)
Get a resource
|
BufferCache |
getBufferCache() |
Configuration |
getConfig() |
Credentials |
getCredentials() |
DfsResolver |
getDfs() |
NameServiceClient |
getNameServiceClient() |
SmbPipeResource |
getPipe(String url,
int pipeType)
Get a pipe resource
|
SidResolver |
getSIDResolver() |
SmbTransportPool |
getTransportPool() |
URLStreamHandler |
getUrlHandler() |
boolean |
hasDefaultCredentials() |
boolean |
renewCredentials(String locationHint,
Throwable error) |
CIFSContext |
withAnonymousCredentials() |
CIFSContext |
withCredentials(Credentials creds) |
CIFSContext |
withDefaultCredentials() |
CIFSContext |
withGuestCrendentials() |
SmbResource get(String url) throws CIFSException
url - CIFSExceptionSmbPipeResource getPipe(String url, int pipeType) throws CIFSException
url - pipeType - the type of the pipeCIFSExceptionboolean close()
throws CIFSException
CIFSExceptionConfiguration getConfig()
NameServiceClient getNameServiceClient()
BufferCache getBufferCache()
SmbTransportPool getTransportPool()
DfsResolver getDfs()
SidResolver getSIDResolver()
Credentials getCredentials()
URLStreamHandler getUrlHandler()
boolean hasDefaultCredentials()
CIFSContext withDefaultCredentials()
CIFSContext withAnonymousCredentials()
CIFSContext withGuestCrendentials()
CIFSContext withCredentials(Credentials creds)
creds - Copyright © 2021. All rights reserved.