Class ScpPathCommandDetailsSupport
java.lang.Object
org.apache.sshd.scp.common.helpers.AbstractScpCommandDetails
org.apache.sshd.scp.common.helpers.ScpPathCommandDetailsSupport
- All Implemented Interfaces:
NamedResource
- Direct Known Subclasses:
ScpReceiveDirCommandDetails,ScpReceiveFileCommandDetails
public abstract class ScpPathCommandDetailsSupport
extends AbstractScpCommandDetails
implements NamedResource
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longprivate Stringprivate Set<PosixFilePermission> static final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class org.apache.sshd.scp.common.helpers.AbstractScpCommandDetails
commandFields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedScpPathCommandDetailsSupport(char command) protectedScpPathCommandDetailsSupport(char command, String header) -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected longlonggetName()static StringinthashCode()static Set<PosixFilePermission> voidsetLength(long length) voidvoidsetPermissions(Set<PosixFilePermission> permissions) toHeader()toString()Methods inherited from class org.apache.sshd.scp.common.helpers.AbstractScpCommandDetails
getCommand
-
Field Details
-
S_IRUSR
public static final int S_IRUSR- See Also:
-
S_IWUSR
public static final int S_IWUSR- See Also:
-
S_IXUSR
public static final int S_IXUSR- See Also:
-
S_IRGRP
public static final int S_IRGRP- See Also:
-
S_IWGRP
public static final int S_IWGRP- See Also:
-
S_IXGRP
public static final int S_IXGRP- See Also:
-
S_IROTH
public static final int S_IROTH- See Also:
-
S_IWOTH
public static final int S_IWOTH- See Also:
-
S_IXOTH
public static final int S_IXOTH- See Also:
-
permissions
-
length
private long length -
name
-
-
Constructor Details
-
ScpPathCommandDetailsSupport
protected ScpPathCommandDetailsSupport(char command) -
ScpPathCommandDetailsSupport
-
-
Method Details
-
getPermissions
-
setPermissions
-
getLength
public long getLength() -
getEffectiveLength
protected long getEffectiveLength() -
setLength
public void setLength(long length) -
getName
- Specified by:
getNamein interfaceNamedResource- Returns:
- The resource name
-
setName
-
toHeader
- Specified by:
toHeaderin classAbstractScpCommandDetails- Returns:
- The equivalent SCP command header represented by these details
-
hashCode
public int hashCode() -
equals
-
toString
-
getOctalPermissions
-
parseOctalPermissions
-