Hide SocksMessage.encodeAsByteBuf() from public API
It was an internal use only method which became public by a mistake during the review process.
This commit is contained in:
parent
64b8b52e2c
commit
795a78cc89
@ -73,7 +73,7 @@ public final class SocksAuthRequest extends SocksRequest {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void encodeAsByteBuf(ByteBuf byteBuf) {
|
||||
void encodeAsByteBuf(ByteBuf byteBuf) {
|
||||
byteBuf.writeByte(SUBNEGOTIATION_VERSION.byteValue());
|
||||
byteBuf.writeByte(username.length());
|
||||
byteBuf.writeBytes(username.getBytes(CharsetUtil.US_ASCII));
|
||||
|
@ -45,7 +45,7 @@ public final class SocksAuthResponse extends SocksResponse {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void encodeAsByteBuf(ByteBuf byteBuf) {
|
||||
void encodeAsByteBuf(ByteBuf byteBuf) {
|
||||
byteBuf.writeByte(SUBNEGOTIATION_VERSION.byteValue());
|
||||
byteBuf.writeByte(authStatus.byteValue());
|
||||
}
|
||||
|
@ -109,7 +109,7 @@ public final class SocksCmdRequest extends SocksRequest {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void encodeAsByteBuf(ByteBuf byteBuf) {
|
||||
void encodeAsByteBuf(ByteBuf byteBuf) {
|
||||
byteBuf.writeByte(protocolVersion().byteValue());
|
||||
byteBuf.writeByte(cmdType.byteValue());
|
||||
byteBuf.writeByte(0x00);
|
||||
|
@ -144,7 +144,7 @@ public final class SocksCmdResponse extends SocksResponse {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void encodeAsByteBuf(ByteBuf byteBuf) {
|
||||
void encodeAsByteBuf(ByteBuf byteBuf) {
|
||||
byteBuf.writeByte(protocolVersion().byteValue());
|
||||
byteBuf.writeByte(cmdStatus.byteValue());
|
||||
byteBuf.writeByte(0x00);
|
||||
|
@ -47,7 +47,7 @@ public final class SocksInitRequest extends SocksRequest {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void encodeAsByteBuf(ByteBuf byteBuf) {
|
||||
void encodeAsByteBuf(ByteBuf byteBuf) {
|
||||
byteBuf.writeByte(protocolVersion().byteValue());
|
||||
byteBuf.writeByte(authSchemes.size());
|
||||
for (SocksAuthScheme authScheme : authSchemes) {
|
||||
|
@ -44,7 +44,7 @@ public final class SocksInitResponse extends SocksResponse {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void encodeAsByteBuf(ByteBuf byteBuf) {
|
||||
void encodeAsByteBuf(ByteBuf byteBuf) {
|
||||
byteBuf.writeByte(protocolVersion().byteValue());
|
||||
byteBuf.writeByte(authScheme.byteValue());
|
||||
}
|
||||
|
@ -57,5 +57,5 @@ public abstract class SocksMessage {
|
||||
/**
|
||||
* Encode socks message into its byte representation and write it into byteBuf
|
||||
*/
|
||||
public abstract void encodeAsByteBuf(ByteBuf byteBuf);
|
||||
abstract void encodeAsByteBuf(ByteBuf byteBuf);
|
||||
}
|
||||
|
@ -31,7 +31,7 @@ public final class UnknownSocksRequest extends SocksRequest {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void encodeAsByteBuf(ByteBuf byteBuf) {
|
||||
void encodeAsByteBuf(ByteBuf byteBuf) {
|
||||
// NOOP
|
||||
}
|
||||
}
|
||||
|
@ -31,7 +31,7 @@ public final class UnknownSocksResponse extends SocksResponse {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void encodeAsByteBuf(ByteBuf byteBuf) {
|
||||
void encodeAsByteBuf(ByteBuf byteBuf) {
|
||||
// NOOP
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user