Class Response
java.lang.Object
com.github.jh3nd3rs0n.jargyle.protocolbase.socks5.userpassauthmethod.Response
A response from the server.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final UnsignedByteThe statusUnsignedBytethat indicates success.static final byteThe statusbytevalue that indicates success. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the statusUnsignedByteof thisResponse.Returns theVersionof thisResponse.inthashCode()static ResponsenewInstance(UnsignedByte stat) Returns a newResponsewith the provided statusUnsignedByte.static ResponseReturns a newResponsefrom the providedInputStream.byte[]Returns thebytearray of thisResponse.toString()Returns theStringrepresentation of thisResponse.
-
Field Details
-
STATUS_SUCCESS_BYTE_VALUE
public static final byte STATUS_SUCCESS_BYTE_VALUEThe statusbytevalue that indicates success.- See Also:
-
STATUS_SUCCESS
The statusUnsignedBytethat indicates success.
-
-
Method Details
-
newInstance
Returns a newResponsewith the provided statusUnsignedByte.- Parameters:
stat- the provided statusUnsignedByte- Returns:
- a new
Responsewith the provided statusUnsignedByte
-
newInstanceFrom
Returns a newResponsefrom the providedInputStream. AnEOFExceptionis thrown if the end of the providedInputStreamis reached.- Parameters:
in- the providedInputStream- Returns:
- a new
Response - Throws:
IOException- if the end of the providedInputStreamis reached (EOFException) or if an I/O error occurs
-
equals
-
getStatus
Returns the statusUnsignedByteof thisResponse.- Returns:
- the status
UnsignedByteof thisResponse
-
getVersion
Returns theVersionof thisResponse.- Returns:
- the
Versionof thisResponse
-
hashCode
public int hashCode() -
toByteArray
public byte[] toByteArray()Returns thebytearray of thisResponse.- Returns:
- the
bytearray of thisResponse
-
toString
Returns theStringrepresentation of thisResponse.
-