Package com.sun.faban.driver.transport.sunhttp

Examples of com.sun.faban.driver.transport.sunhttp.SocketFactory


     * @param proxy The proxy
     * @return The socket
     */
  public Socket createSocket(Proxy proxy) {
        if (userFactory instanceof SocketFactory) {
            SocketFactory userFactory = (SocketFactory) this.userFactory;
            return new TimedSocketWrapper(userFactory.createSocket(proxy));
        } else if (proxy == Proxy.NO_PROXY) {
            try {
                return createSocket();
            } catch (IOException e) {
                throw new RuntimeException(
                        "Empty create socket returns IOException!" +
                        e.getMessage(), e);
            }
        } else {
            throw new UnsupportedOperationException(
                    userFactory.getClass().getName() +
                    " does not support creating a socket through a proxy." +
                    proxy.type() + ", " + proxy.address());
        }


View Full Code Here

TOP

Related Classes of com.sun.faban.driver.transport.sunhttp.SocketFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.