org.eclipse.ecf.provider.filetransfer.httpclient.ssl_1.0.0.v20110531-2218

16:43:09.909 INFO  jd.cli.Main - Decompiling org.eclipse.ecf.provider.filetransfer.httpclient.ssl_1.0.0.v20110531-2218.jar
package org.eclipse.ecf.internal.provider.filetransfer.httpclient.ssl;

import java.io.IOException;
import java.net.Socket;
import javax.net.ssl.SSLSocketFactory;
import org.eclipse.ecf.filetransfer.events.socketfactory.INonconnectedSocketFactory;
import org.eclipse.ecf.internal.provider.filetransfer.httpclient.Activator;
import org.eclipse.ecf.internal.provider.filetransfer.httpclient.ISSLSocketFactoryModifier;

public class SSLSocketFactoryModifier
  implements ISSLSocketFactoryModifier, INonconnectedSocketFactory
{
  public void dispose() {}
  
  public SSLSocketFactory getSSLSocketFactory()
    throws IOException
  {
    SSLSocketFactory factory = Activator.getDefault().getSSLSocketFactory();
    if (factory == null) {
      throw new IOException("Cannot get socket factory");
    }
    return factory;
  }
  
  public INonconnectedSocketFactory getNonconnnectedSocketFactory()
  {
    return this;
  }
  
  public Socket createSocket()
    throws IOException
  {
    SSLSocketFactory factory = getSSLSocketFactory();
    return factory.createSocket();
  }
}

/* Location:
 * Qualified Name:     org.eclipse.ecf.internal.provider.filetransfer.httpclient.ssl.SSLSocketFactoryModifier
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
1

Further reading...

For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.

New!JAR listings


Copyright 2006-2017. Infinite Loop Ltd