Class ScpAckInfo
java.lang.Object
org.apache.sshd.scp.common.helpers.ScpAckInfo
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLine()
int
static ScpAckInfo
readAck
(InputStream in, boolean canEof) <O extends OutputStream>
Osend
(O out) static <O extends OutputStream>
Ostatic <O extends OutputStream>
Ostatic void
sendOk
(OutputStream out) SendsOK
ACK codestatic <O extends OutputStream>
OsendWarning
(O out, String message) toString()
void
validateCommandStatusCode
(String command, Object location)
-
Field Details
-
OK
public static final int OK- See Also:
-
WARNING
public static final int WARNING- See Also:
-
ERROR
public static final int ERROR- See Also:
-
statusCode
private final int statusCode -
line
-
-
Constructor Details
-
ScpAckInfo
public ScpAckInfo(int statusCode) -
ScpAckInfo
-
-
Method Details
-
getStatusCode
public int getStatusCode() -
getLine
-
send
- Throws:
IOException
-
validateCommandStatusCode
- Throws:
IOException
-
toString
-
readAck
- Throws:
IOException
-
sendOk
SendsOK
ACK code- Parameters:
out
- The targetOutputStream
- Throws:
IOException
- If failed to send the ACK code
-
sendWarning
- Throws:
IOException
-
sendError
- Throws:
IOException
-
sendAck
public static <O extends OutputStream> O sendAck(O out, int level, String message) throws IOException - Throws:
IOException
-