de.humatic.dsj.src
Class HTTPConnector

java.lang.Object
  extended by de.humatic.dsj.src.HTTPConnector

public abstract class HTTPConnector
extends java.lang.Object

HTTPConnector is a (simple) equivalent to java's SocketFactory for HttpURLConnections. dsj's default implementation will just call url.openConnection() to create connections for NetworkSource subclasses, but you can extend this baseclass and override the abstract createConnection method to provide source classes that use HttpURLConnections with connections tunnelled via proxy servers etc.
No higher level proxy support has been implemented, because proxy related api in the java.net classes changed a lot between jdk 1.4 (that dsj is to remain compatible with) and later versions.


Constructor Summary
HTTPConnector()
           
 
Method Summary
abstract  java.net.HttpURLConnection createConnection(java.net.URL forURL)
          This method will be called by sources to create HttpURLConnections
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTTPConnector

public HTTPConnector()
Method Detail

createConnection

public abstract java.net.HttpURLConnection createConnection(java.net.URL forURL)
                                                     throws java.lang.Exception
This method will be called by sources to create HttpURLConnections

Throws:
java.lang.Exception