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:
Trustin Lee 2014-06-24 16:40:44 +09:00
parent 64b8b52e2c
commit 795a78cc89
9 changed files with 9 additions and 9 deletions

View File

@ -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));

View File

@ -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());
}

View File

@ -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);

View File

@ -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);

View File

@ -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) {

View File

@ -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());
}

View File

@ -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);
}

View File

@ -31,7 +31,7 @@ public final class UnknownSocksRequest extends SocksRequest {
}
@Override
public void encodeAsByteBuf(ByteBuf byteBuf) {
void encodeAsByteBuf(ByteBuf byteBuf) {
// NOOP
}
}

View File

@ -31,7 +31,7 @@ public final class UnknownSocksResponse extends SocksResponse {
}
@Override
public void encodeAsByteBuf(ByteBuf byteBuf) {
void encodeAsByteBuf(ByteBuf byteBuf) {
// NOOP
}
}