* the key
* @return the i endpoint
*/
public IEndpoint createEndpoint(String key) {
if (ConnectionType.NETTY_HTTP.getValue().equalsIgnoreCase(key)) {
return new NettyHttpEndpoint();
} else if (ConnectionType.NETTY_TCP.getValue().equalsIgnoreCase(key)) {
return new NettyTcpEndpoint();
} else if (ConnectionType.NETTY_WEB.getValue().equalsIgnoreCase(key)) {
return new NettyWebEndpoint();
} else if (ConnectionType.NETTY_PROXY_HTTP.getValue().equalsIgnoreCase(key)) {