java.lang.Object
org.codelibs.jcifs.smb.impl.DfsImpl
- All Implemented Interfaces:
DfsResolver
Caching DFS resolver implementation
This class is intended for internal use.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcache(CIFSContext tc, String path, DfsReferralData dr) Add a referral to the cachegetDc(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) Get a DFS referral for the specified targetbooleanisTrustedDomain(CIFSContext tf, String domain) Checks if a domain is trusted for DFS operationsresolve(CIFSContext tf, String domain, String root, String path) Resolve the location of a DFS path
-
Constructor Details
-
DfsImpl
Constructs a DFS resolver implementation- Parameters:
tc- the CIFS context containing configuration
-
-
Method Details
-
isTrustedDomain
Checks if a domain is trusted for DFS operations- Specified by:
isTrustedDomainin interfaceDfsResolver- Parameters:
tf- the CIFS contextdomain- the domain name to check- Returns:
- whether the given domain is trusted
- Throws:
SmbAuthException- See Also:
-
getDc
Get a connection to the domain controller for a given domain- Specified by:
getDcin interfaceDfsResolver- Parameters:
tf- the CIFS contextdomain- the domain name- Returns:
- connection to the domain controller
- Throws:
SmbAuthException- See Also:
-
getReferral
protected DfsReferralDataInternal getReferral(CIFSContext tf, SmbTransportInternal trans, String target, String targetDomain, String targetHost, String root, String path) throws SmbAuthException Get a DFS referral for the specified target- Parameters:
tf- the CIFS contexttrans- the SMB transporttarget- the target pathtargetDomain- the target domaintargetHost- the target hostroot- the DFS rootpath- the DFS path- Returns:
- the DFS referral data or null if not found
- Throws:
SmbAuthException- if authentication fails
-
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- Parameters:
tf- the CIFS context containing configuration and credentialsdomain- the domain for the DFS referralroot- the DFS root sharepath- the DFS path to resolve- Returns:
- the final referral for the given DFS path
- Throws:
SmbAuthException- if authentication fails- See Also:
-
cache
Description copied from interface:DfsResolverAdd a referral to the cache- Specified by:
cachein interfaceDfsResolver- Parameters:
tc- the CIFS context containing configurationpath- the DFS path for this referraldr- the DFS referral data to cache
-