提交 0ae072b8 编写于 作者: J jurgen

Proxy selector

Former-commit-id: 46f66d71
上级 4d3fb899
/*
* Copyright (C) 2010-2013 Serge Rieder
* serge@jkiss.org
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
package org.jkiss.dbeaver.model.net;
import java.io.IOException;
import java.net.Proxy;
import java.net.ProxySelector;
import java.net.SocketAddress;
import java.net.URI;
import java.util.List;
/**
* Global proxy selector
*/
public class DBWProxySelector extends ProxySelector {
private final ProxySelector parent;
public DBWProxySelector(ProxySelector parent) {
this.parent = parent;
}
@Override
public List<Proxy> select(URI uri) {
return parent.select(uri);
}
@Override
public void connectFailed(URI uri, SocketAddress sa, IOException ioe) {
parent.connectFailed(uri, sa, ioe);
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册