パッケージ jcifs.context
クラス CIFSContextWrapper
- java.lang.Object
-
- jcifs.context.CIFSContextWrapper
-
- すべての実装されたインタフェース:
CIFSContext
- 直系の既知のサブクラス:
CIFSContextCredentialWrapper
public class CIFSContextWrapper extends Object implements CIFSContext
- 作成者:
- mbechler
-
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 CIFSContextWrapper(CIFSContext delegate)
-
メソッドの概要
すべてのメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 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()protected CIFSContextwrap(CIFSContext newContext)
-
-
-
コンストラクタの詳細
-
CIFSContextWrapper
public CIFSContextWrapper(CIFSContext delegate)
- パラメータ:
delegate- context to delegate non-override methods to
-
-
メソッドの詳細
-
get
public SmbResource get(String url) throws CIFSException
Get a resource- 定義:
getインタフェース内CIFSContext- 戻り値:
- the SMB resource at the specified location
- 例外:
CIFSException- 関連項目:
CIFSContext.get(java.lang.String)
-
getPipe
public SmbPipeResource getPipe(String url, int pipeType) throws CIFSException
Get a pipe resource- 定義:
getPipeインタフェース内CIFSContextpipeType- the type of the pipe- 戻り値:
- the SMB pipe resource at the specified location
- 例外:
CIFSException- 関連項目:
CIFSContext.getPipe(java.lang.String, int)
-
wrap
protected CIFSContext wrap(CIFSContext newContext)
-
getConfig
public Configuration getConfig()
- 定義:
getConfigインタフェース内CIFSContext- 戻り値:
- the active configuration
-
getDfs
public DfsResolver getDfs()
- 定義:
getDfsインタフェース内CIFSContext- 戻り値:
- the DFS instance for this context
-
getCredentials
public Credentials getCredentials()
- 定義:
getCredentialsインタフェース内CIFSContext- 戻り値:
- the used credentials
-
getUrlHandler
public URLStreamHandler getUrlHandler()
- 定義:
getUrlHandlerインタフェース内CIFSContext- 戻り値:
- an URL handler using this context
-
getSIDResolver
public SidResolver getSIDResolver()
- 定義:
getSIDResolverインタフェース内CIFSContext- 戻り値:
- the SID resolver for this context
-
hasDefaultCredentials
public boolean hasDefaultCredentials()
- 定義:
hasDefaultCredentialsインタフェース内CIFSContext- 戻り値:
- whether default credentials are available
-
withCredentials
public CIFSContext withCredentials(Credentials creds)
- 定義:
withCredentialsインタフェース内CIFSContext- 戻り値:
- a child context using using the given credentials
-
withDefaultCredentials
public CIFSContext withDefaultCredentials()
- 定義:
withDefaultCredentialsインタフェース内CIFSContext- 戻り値:
- a child context using the configured default credentials
-
withAnonymousCredentials
public CIFSContext withAnonymousCredentials()
- 定義:
withAnonymousCredentialsインタフェース内CIFSContext- 戻り値:
- a child context using anonymous credentials
-
withGuestCrendentials
public CIFSContext withGuestCrendentials()
- 定義:
withGuestCrendentialsインタフェース内CIFSContext- 戻り値:
- a child context using guest credentials
-
renewCredentials
public boolean renewCredentials(String locationHint, Throwable error)
- 定義:
renewCredentialsインタフェース内CIFSContext- 戻り値:
- whether new credentials are obtained
-
getNameServiceClient
public NameServiceClient getNameServiceClient()
- 定義:
getNameServiceClientインタフェース内CIFSContext- 戻り値:
- the name server client
-
getBufferCache
public BufferCache getBufferCache()
- 定義:
getBufferCacheインタフェース内CIFSContext- 戻り値:
- the buffer cache
-
getTransportPool
public SmbTransportPool getTransportPool()
- 定義:
getTransportPoolインタフェース内CIFSContext- 戻り値:
- the transport pool
-
close
public boolean close() throws CIFSException- 定義:
closeインタフェース内CIFSContext- 戻り値:
- whether any connection was still in use
- 例外:
CIFSException
-
-