Class SymlinkPathResolver
java.lang.Object
com.hierynomus.smbj.paths.SymlinkPathResolver
- All Implemented Interfaces:
PathResolver
-
Nested Class Summary
Nested classes/interfaces inherited from interface PathResolver
PathResolver.ResolveAction<T> -
Field Summary
FieldsFields inherited from interface PathResolver
LOCAL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static SMB2Error.SymbolicLinkErrorgetSymlinkErrorData(SMB2Error error) private StringgetSymlinkParsedPath(String fileName, int unparsedPathLength) private StringgetSymlinkUnparsedPath(String fileName, int unparsedPathLength) private StringnormalizePath(String path) <T> Tresolve(Session session, SMB2Packet responsePacket, SmbPath smbPath, PathResolver.ResolveAction<T> action) Reactive path resolution based on response packet<T> Tresolve(Session session, SmbPath smbPath, PathResolver.ResolveAction<T> action) Proactive path resolution based on response packetprivate StringresolveSymlinkTarget(String originalFileName, SMB2Error.SymbolicLinkError symlinkData)
-
Field Details
-
wrapped
-
statusHandler
-
-
Constructor Details
-
SymlinkPathResolver
-
-
Method Details
-
resolve
public <T> T resolve(Session session, SMB2Packet responsePacket, SmbPath smbPath, PathResolver.ResolveAction<T> action) throws PathResolveException Description copied from interface:PathResolverReactive path resolution based on response packet- Specified by:
resolvein interfacePathResolver- Parameters:
session-responsePacket-smbPath-- Returns:
- Throws:
PathResolveException
-
resolve
public <T> T resolve(Session session, SmbPath smbPath, PathResolver.ResolveAction<T> action) throws PathResolveException Description copied from interface:PathResolverProactive path resolution based on response packet- Specified by:
resolvein interfacePathResolver- Parameters:
session-smbPath-- Returns:
- Throws:
PathResolveException
-
statusHandler
- Specified by:
statusHandlerin interfacePathResolver
-
getSymlinkErrorData
-
resolveSymlinkTarget
private String resolveSymlinkTarget(String originalFileName, SMB2Error.SymbolicLinkError symlinkData) -
getSymlinkParsedPath
-
getSymlinkUnparsedPath
-
normalizePath
-