dsto.dfc.net.streams.object
Class ObjectURLConnection

java.lang.Object
  extended by java.net.URLConnection
      extended by dsto.dfc.net.streams.object.ObjectURLConnection

public class ObjectURLConnection
extends URLConnection

The URLConnection implementation used by Handler.

Version:
$Revision$

Field Summary
 
Fields inherited from class java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
 
Constructor Summary
ObjectURLConnection(URL url)
           
 
Method Summary
 void connect()
          'Connect' by trying to instantiate the path of the URL as a Java class.
 Object getContent()
           
 
Methods inherited from class java.net.URLConnection
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContentEncoding, getContentLength, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFields, getIfModifiedSince, getInputStream, getLastModified, getOutputStream, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectURLConnection

public ObjectURLConnection(URL url)
Method Detail

connect

public void connect()
             throws IOException
'Connect' by trying to instantiate the path of the URL as a Java class.

Specified by:
connect in class URLConnection
Throws:
IOException

getContent

public Object getContent()
                  throws IOException
Overrides:
getContent in class URLConnection
Throws:
IOException


Copyright © 2008 Commonwealth of Australia