Deprecate getName() methods of the codec classes in SOCKS codec package
Motivation: We do not provide such methods that provide the default name of the handlers. It had to be noticed and removed during the review phase, but we failed to do so. Modifications: Deprecate getName() static methods in the SOCKS codec classes Result: Getting closer to other codecs in API design.
This commit is contained in:
parent
2ff4e458c1
commit
4ce1274497
@ -28,6 +28,10 @@ import org.jboss.netty.util.CharsetUtil;
|
||||
public class SocksAuthRequestDecoder extends ReplayingDecoder<SocksAuthRequestDecoder.State> {
|
||||
private static final String name = "SOCKS_AUTH_REQUEST_DECODER";
|
||||
|
||||
/**
|
||||
* @deprecated Will be removed at the next minor version bump.
|
||||
*/
|
||||
@Deprecated
|
||||
public static String getName() {
|
||||
return name;
|
||||
}
|
||||
|
@ -27,6 +27,10 @@ import org.jboss.netty.handler.codec.replay.ReplayingDecoder;
|
||||
public class SocksAuthResponseDecoder extends ReplayingDecoder<SocksAuthResponseDecoder.State> {
|
||||
private static final String name = "SOCKS_AUTH_RESPONSE_DECODER";
|
||||
|
||||
/**
|
||||
* @deprecated Will be removed at the next minor version bump.
|
||||
*/
|
||||
@Deprecated
|
||||
public static String getName() {
|
||||
return name;
|
||||
}
|
||||
|
@ -28,6 +28,10 @@ import org.jboss.netty.util.CharsetUtil;
|
||||
public class SocksCmdRequestDecoder extends ReplayingDecoder<SocksCmdRequestDecoder.State> {
|
||||
private static final String name = "SOCKS_CMD_REQUEST_DECODER";
|
||||
|
||||
/**
|
||||
* @deprecated Will be removed at the next minor version bump.
|
||||
*/
|
||||
@Deprecated
|
||||
public static String getName() {
|
||||
return name;
|
||||
}
|
||||
|
@ -28,6 +28,10 @@ import org.jboss.netty.util.CharsetUtil;
|
||||
public class SocksCmdResponseDecoder extends ReplayingDecoder<SocksCmdResponseDecoder.State> {
|
||||
private static final String name = "SOCKS_CMD_RESPONSE_DECODER";
|
||||
|
||||
/**
|
||||
* @deprecated Will be removed at the next minor version bump.
|
||||
*/
|
||||
@Deprecated
|
||||
public static String getName() {
|
||||
return name;
|
||||
}
|
||||
|
@ -30,6 +30,10 @@ import java.util.List;
|
||||
public class SocksInitRequestDecoder extends ReplayingDecoder<SocksInitRequestDecoder.State> {
|
||||
private static final String name = "SOCKS_INIT_REQUEST_DECODER";
|
||||
|
||||
/**
|
||||
* @deprecated Will be removed at the next minor version bump.
|
||||
*/
|
||||
@Deprecated
|
||||
public static String getName() {
|
||||
return name;
|
||||
}
|
||||
|
@ -27,6 +27,10 @@ import org.jboss.netty.handler.codec.replay.ReplayingDecoder;
|
||||
public class SocksInitResponseDecoder extends ReplayingDecoder<SocksInitResponseDecoder.State> {
|
||||
private static final String name = "SOCKS_INIT_RESPONSE_DECODER";
|
||||
|
||||
/**
|
||||
* @deprecated Will be removed at the next minor version bump.
|
||||
*/
|
||||
@Deprecated
|
||||
public static String getName() {
|
||||
return name;
|
||||
}
|
||||
|
@ -33,6 +33,10 @@ public class SocksMessageEncoder extends OneToOneEncoder {
|
||||
private static final String name = "SOCKS_MESSAGE_ENCODER";
|
||||
private static final int DEFAULT_ENCODER_BUFFER_SIZE = 1024;
|
||||
|
||||
/**
|
||||
* @deprecated Will be removed at the next minor version bump.
|
||||
*/
|
||||
@Deprecated
|
||||
public static String getName() {
|
||||
return name;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user