/** * Puts a {@link SocksMethod} class into the SOCKS method registry with an instance of * {@link SocksMethod}. * * @param socksMethod The instance of {@link SocksMethod}. */ public static void putMethod(SocksMethod socksMethod) { checkNotNull(socksMethod, "Argument [socksMethod] may not be null"); logger.debug("Register {}[{}]", socksMethod.getMethodName(), socksMethod.getByte()); methods.put((byte) socksMethod.getByte(), socksMethod); }
/** * Puts a {@link SocksMethod} class into the SOCKS method registry with an instance of * {@link SocksMethod}. * * @param socksMethod The instance of {@link SocksMethod}. */ public static void putMethod(SocksMethod socksMethod) { checkNotNull(socksMethod, "Argument [socksMethod] may not be null"); logger.debug("Register {}[{}]", socksMethod.getMethodName(), socksMethod.getByte()); methods.put((byte) socksMethod.getByte(), socksMethod); }
logger.debug("SESSION[{}] Response client:{}", session.getId(), selectedMethod.getMethodName());
logger.debug("SESSION[{}] Response client:{}", session.getId(), selectedMethod.getMethodName());