uk.ac.soton.itinnovation.grid.comms.client
Class ITInnovSocketFactory

java.lang.Object
  extended by org.apache.axis.components.net.DefaultSocketFactory
      extended by org.apache.axis.components.net.JSSESocketFactory
          extended by uk.ac.soton.itinnovation.grid.comms.client.ITInnovSocketFactory
All Implemented Interfaces:
SecureSocketFactory, SocketFactory

public class ITInnovSocketFactory
extends JSSESocketFactory

Custom SSL socket handler. This sets the correct keystore without using system properties. When using tomcat, system properties affect other webapps in the JVM and are shown on the Axis Happiness page.


Field Summary
 
Fields inherited from class org.apache.axis.components.net.JSSESocketFactory
sslFactory
 
Fields inherited from class org.apache.axis.components.net.DefaultSocketFactory
attributes, CONNECT_TIMEOUT, log
 
Constructor Summary
ITInnovSocketFactory(Hashtable attributes)
           
 
Method Summary
 Socket create(String host, int port, StringBuffer otherHeaders, BooleanHolder useFullURL)
           
static org.apache.commons.httpclient.protocol.Protocol getProtocol()
          Return an httpclient Protocol that uses https with the Transport's keystore.
 
Methods inherited from class org.apache.axis.components.net.JSSESocketFactory
initFactory
 
Methods inherited from class org.apache.axis.components.net.DefaultSocketFactory
isHostInNonProxyList, match
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ITInnovSocketFactory

public ITInnovSocketFactory(Hashtable attributes)
Method Detail

create

public Socket create(String host,
                     int port,
                     StringBuffer otherHeaders,
                     BooleanHolder useFullURL)
              throws Exception
Specified by:
create in interface SocketFactory
Overrides:
create in class JSSESocketFactory
Throws:
Exception

getProtocol

public static org.apache.commons.httpclient.protocol.Protocol getProtocol()
Return an httpclient Protocol that uses https with the Transport's keystore.



Copyright © 2001-2007 University of Southampton IT Innovation Centre. All Rights Reserved.