org.littleshoot.commom.xmpp
Class XmppProtocolSocketFactory

java.lang.Object
  extended by org.littleshoot.commom.xmpp.XmppProtocolSocketFactory
All Implemented Interfaces:
org.apache.commons.httpclient.protocol.ProtocolSocketFactory

public class XmppProtocolSocketFactory
extends Object
implements org.apache.commons.httpclient.protocol.ProtocolSocketFactory


Constructor Summary
XmppProtocolSocketFactory(org.lastbamboo.common.p2p.SocketFactory<Socket> socketFactory, DefaultXmppUriFactory defaultXmppUriFactory)
           
 
Method Summary
 Socket createSocket(String host, int port)
           
 Socket createSocket(String host, int port, InetAddress localAddress, int localPort)
           
 Socket createSocket(String host, int port, InetAddress localAddress, int localPort, org.apache.commons.httpclient.params.HttpConnectionParams params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmppProtocolSocketFactory

public XmppProtocolSocketFactory(org.lastbamboo.common.p2p.SocketFactory<Socket> socketFactory,
                                 DefaultXmppUriFactory defaultXmppUriFactory)
Method Detail

createSocket

public Socket createSocket(String host,
                           int port,
                           InetAddress localAddress,
                           int localPort)
                    throws IOException,
                           UnknownHostException
Specified by:
createSocket in interface org.apache.commons.httpclient.protocol.ProtocolSocketFactory
Throws:
IOException
UnknownHostException

createSocket

public Socket createSocket(String host,
                           int port,
                           InetAddress localAddress,
                           int localPort,
                           org.apache.commons.httpclient.params.HttpConnectionParams params)
                    throws IOException,
                           UnknownHostException,
                           org.apache.commons.httpclient.ConnectTimeoutException
Specified by:
createSocket in interface org.apache.commons.httpclient.protocol.ProtocolSocketFactory
Throws:
IOException
UnknownHostException
org.apache.commons.httpclient.ConnectTimeoutException

createSocket

public Socket createSocket(String host,
                           int port)
                    throws IOException,
                           UnknownHostException
Specified by:
createSocket in interface org.apache.commons.httpclient.protocol.ProtocolSocketFactory
Throws:
IOException
UnknownHostException


Copyright © 2014 LittleShoot. All Rights Reserved.