パッケージ jcifs
インタフェース CIFSContext
-
- 既知の実装クラスのリスト:
AbstractCIFSContext,BaseContext,CIFSContextCredentialWrapper,CIFSContextWrapper,SingletonContext
public interface CIFSContextEncapsulation of client context A context holds the client configuration, shared services as well as the active credentials. Usually you will want to create one context per client configuration and then multiple sub-contexts using different credentials (if necessary).withDefaultCredentials(),withAnonymousCredentials(),withCredentials(Credentials)allow to create such sub-contexts. Implementors of this interface should extendBaseContextorCIFSContextWrapperto get forward compatibility.- 作成者:
- mbechler
-
-
メソッドの概要
すべてのメソッド インスタンス・メソッド abstractメソッド 修飾子とタイプ メソッド 説明 booleanclose()SmbResourceget(String url)Get a resourceBufferCachegetBufferCache()ConfigurationgetConfig()CredentialsgetCredentials()DfsResolvergetDfs()NameServiceClientgetNameServiceClient()SmbPipeResourcegetPipe(String url, int pipeType)Get a pipe resourceSidResolvergetSIDResolver()SmbTransportPoolgetTransportPool()URLStreamHandlergetUrlHandler()booleanhasDefaultCredentials()booleanrenewCredentials(String locationHint, Throwable error)CIFSContextwithAnonymousCredentials()CIFSContextwithCredentials(Credentials creds)CIFSContextwithDefaultCredentials()CIFSContextwithGuestCrendentials()
-
-
-
メソッドの詳細
-
get
SmbResource get(String url) throws CIFSException
Get a resource- パラメータ:
url-- 戻り値:
- the SMB resource at the specified location
- 例外:
CIFSException
-
getPipe
SmbPipeResource getPipe(String url, int pipeType) throws CIFSException
Get a pipe resource- パラメータ:
url-pipeType- the type of the pipe- 戻り値:
- the SMB pipe resource at the specified location
- 例外:
CIFSException
-
close
boolean close() throws CIFSException- 戻り値:
- whether any connection was still in use
- 例外:
CIFSException
-
getConfig
Configuration getConfig()
- 戻り値:
- the active configuration
-
getNameServiceClient
NameServiceClient getNameServiceClient()
- 戻り値:
- the name server client
-
getBufferCache
BufferCache getBufferCache()
- 戻り値:
- the buffer cache
-
getTransportPool
SmbTransportPool getTransportPool()
- 戻り値:
- the transport pool
-
getDfs
DfsResolver getDfs()
- 戻り値:
- the DFS instance for this context
-
getSIDResolver
SidResolver getSIDResolver()
- 戻り値:
- the SID resolver for this context
-
getCredentials
Credentials getCredentials()
- 戻り値:
- the used credentials
-
getUrlHandler
URLStreamHandler getUrlHandler()
- 戻り値:
- an URL handler using this context
-
hasDefaultCredentials
boolean hasDefaultCredentials()
- 戻り値:
- whether default credentials are available
-
withDefaultCredentials
CIFSContext withDefaultCredentials()
- 戻り値:
- a child context using the configured default credentials
-
withAnonymousCredentials
CIFSContext withAnonymousCredentials()
- 戻り値:
- a child context using anonymous credentials
-
withGuestCrendentials
CIFSContext withGuestCrendentials()
- 戻り値:
- a child context using guest credentials
-
withCredentials
CIFSContext withCredentials(Credentials creds)
- パラメータ:
creds-- 戻り値:
- a child context using using the given credentials
-
-