List of usage examples for io.netty.handler.codec.http HttpVersion toString
@Override
public String toString()
From source file:com.titilink.camel.rest.common.AdapterRestletUtil.java
License:LGPL
protected static String getProtocolVersion(HttpVersion protocol) { String result = null;/*from ww w . ja v a 2 s .c om*/ final String protocolVersion = protocol.toString(); final int index = protocolVersion.indexOf('/'); if (index != -1) { result = protocolVersion.substring(index + 1); } return result; }