Package jcifs.smb
Class DfsImpl
- java.lang.Object
-
- jcifs.smb.DfsImpl
-
- All Implemented Interfaces:
DfsResolver
public class DfsImpl extends Object implements DfsResolver
Caching DFS resolver implementation
-
-
Constructor Summary
Constructors Constructor Description DfsImpl(CIFSContext tc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcache(CIFSContext tc, String path, DfsReferralData dr)Add a referral to the cacheSmbTransportgetDc(CIFSContext tf, String domain)Get a connection to the domain controller for a given domainprotected DfsReferralDataInternalgetReferral(CIFSContext tf, SmbTransportInternal trans, String target, String targetDomain, String targetHost, String root, String path)booleanisTrustedDomain(CIFSContext tf, String domain)DfsReferralDataresolve(CIFSContext tf, String domain, String root, String path)Resolve the location of a DFS path
-
-
-
Constructor Detail
-
DfsImpl
public DfsImpl(CIFSContext tc)
- Parameters:
tc-
-
-
Method Detail
-
isTrustedDomain
public boolean isTrustedDomain(CIFSContext tf, String domain) throws SmbAuthException
- Specified by:
isTrustedDomainin interfaceDfsResolver- Returns:
- whether the given domain is trusted
- Throws:
SmbAuthException- See Also:
DfsResolver.isTrustedDomain(jcifs.CIFSContext, java.lang.String)
-
getDc
public SmbTransport getDc(CIFSContext tf, String domain) throws SmbAuthException
Get a connection to the domain controller for a given domain- Specified by:
getDcin interfaceDfsResolver- Returns:
- connection
- Throws:
SmbAuthException- See Also:
DfsResolver.getDc(jcifs.CIFSContext, java.lang.String)
-
getReferral
protected DfsReferralDataInternal getReferral(CIFSContext tf, SmbTransportInternal trans, String target, String targetDomain, String targetHost, String root, String path) throws SmbAuthException
- Throws:
SmbAuthException
-
resolve
public DfsReferralData resolve(CIFSContext tf, String domain, String root, String path) throws SmbAuthException
Resolve the location of a DFS path- Specified by:
resolvein interfaceDfsResolver- Returns:
- the final referral for the given DFS path
- Throws:
SmbAuthException- See Also:
DfsResolver.resolve(jcifs.CIFSContext, java.lang.String, java.lang.String, java.lang.String)
-
cache
public void cache(CIFSContext tc, String path, DfsReferralData dr)
Description copied from interface:DfsResolverAdd a referral to the cache- Specified by:
cachein interfaceDfsResolver
-
-