Package com.hierynomus.smbj.paths
Class SymlinkPathResolver
java.lang.Object
com.hierynomus.smbj.paths.SymlinkPathResolver
- All Implemented Interfaces:
PathResolver
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.hierynomus.smbj.paths.PathResolver
PathResolver.ResolveAction<T>
-
Field Summary
FieldsFields inherited from interface com.hierynomus.smbj.paths.PathResolver
LOCAL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static SMB2Error.SymbolicLinkError
getSymlinkErrorData
(SMB2Error error) private String
getSymlinkParsedPath
(String fileName, int unparsedPathLength) private String
getSymlinkUnparsedPath
(String fileName, int unparsedPathLength) private String
normalizePath
(String path) <T> T
resolve
(Session session, SMB2Packet responsePacket, SmbPath smbPath, PathResolver.ResolveAction<T> action) Reactive path resolution based on response packet<T> T
resolve
(Session session, SmbPath smbPath, PathResolver.ResolveAction<T> action) Proactive path resolution based on response packetprivate String
resolveSymlinkTarget
(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:PathResolver
Reactive path resolution based on response packet- Specified by:
resolve
in 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:PathResolver
Proactive path resolution based on response packet- Specified by:
resolve
in interfacePathResolver
- Parameters:
session
-smbPath
-- Returns:
- Throws:
PathResolveException
-
statusHandler
- Specified by:
statusHandler
in interfacePathResolver
-
getSymlinkErrorData
-
resolveSymlinkTarget
private String resolveSymlinkTarget(String originalFileName, SMB2Error.SymbolicLinkError symlinkData) -
getSymlinkParsedPath
-
getSymlinkUnparsedPath
-
normalizePath
-