Class ProxyUtils
java.lang.Object
org.apache.sshd.contrib.server.session.proxyprotocolv2.utils.ProxyUtils
Proxy Utilities class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
toHexString
(org.apache.sshd.common.util.buffer.Buffer buffer, int markPosition) Create an hexadecimal string representation of the remaining content of a buffer and reset the buffer after reading.
-
Constructor Details
-
ProxyUtils
private ProxyUtils()
-
-
Method Details
-
toHexString
public static String toHexString(org.apache.sshd.common.util.buffer.Buffer buffer, int markPosition) Create an hexadecimal string representation of the remaining content of a buffer and reset the buffer after reading.- Parameters:
buffer
- a buffer to read frommarkPosition
- the position from which to start.- Returns:
- a hexadecimal string representation.
-