org.mule.transport.http
Class MuleSecureProtocolSocketFactory

java.lang.Object
  extended by org.mule.transport.http.MuleSecureProtocolSocketFactory
All Implemented Interfaces:
ProtocolSocketFactory, SecureProtocolSocketFactory

public class MuleSecureProtocolSocketFactory
extends java.lang.Object
implements SecureProtocolSocketFactory


Constructor Summary
MuleSecureProtocolSocketFactory(javax.net.ssl.SSLSocketFactory factory)
           
 
Method Summary
 java.net.Socket createSocket(java.net.Socket socket, java.lang.String host, int port, boolean autoClose)
           
 java.net.Socket createSocket(java.lang.String host, int port)
           
 java.net.Socket createSocket(java.lang.String host, int port, java.net.InetAddress localAddress, int localPort)
           
 java.net.Socket createSocket(java.lang.String host, int port, java.net.InetAddress localAddress, int localPort, HttpConnectionParams params)
           
protected  java.net.Socket createSocketWithTimeout(java.lang.String host, int port, java.net.InetAddress localAddress, int localPort, int timeout)
          This is a direct version of code in ReflectionSocketFactory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MuleSecureProtocolSocketFactory

public MuleSecureProtocolSocketFactory(javax.net.ssl.SSLSocketFactory factory)
Method Detail

createSocket

public java.net.Socket createSocket(java.net.Socket socket,
                                    java.lang.String host,
                                    int port,
                                    boolean autoClose)
                             throws java.io.IOException,
                                    java.net.UnknownHostException
Specified by:
createSocket in interface SecureProtocolSocketFactory
Throws:
java.io.IOException
java.net.UnknownHostException

createSocket

public java.net.Socket createSocket(java.lang.String host,
                                    int port)
                             throws java.io.IOException,
                                    java.net.UnknownHostException
Specified by:
createSocket in interface ProtocolSocketFactory
Throws:
java.io.IOException
java.net.UnknownHostException

createSocket

public java.net.Socket createSocket(java.lang.String host,
                                    int port,
                                    java.net.InetAddress localAddress,
                                    int localPort)
                             throws java.io.IOException,
                                    java.net.UnknownHostException
Specified by:
createSocket in interface ProtocolSocketFactory
Throws:
java.io.IOException
java.net.UnknownHostException

createSocket

public java.net.Socket createSocket(java.lang.String host,
                                    int port,
                                    java.net.InetAddress localAddress,
                                    int localPort,
                                    HttpConnectionParams params)
                             throws java.io.IOException,
                                    java.net.UnknownHostException,
                                    ConnectTimeoutException
Specified by:
createSocket in interface ProtocolSocketFactory
Throws:
java.io.IOException
java.net.UnknownHostException
ConnectTimeoutException

createSocketWithTimeout

protected java.net.Socket createSocketWithTimeout(java.lang.String host,
                                                  int port,
                                                  java.net.InetAddress localAddress,
                                                  int localPort,
                                                  int timeout)
                                           throws java.io.IOException
This is a direct version of code in ReflectionSocketFactory.

Throws:
java.io.IOException


Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.