net.dpml.transit.registry
Class RegistryURLConnection

java.lang.Object
  extended byjava.net.URLConnection
      extended bynet.dpml.transit.registry.RegistryURLConnection

public class RegistryURLConnection
extends URLConnection

The registry URL protocol connection implementation.

Version:
1.0.1
Author:
Digital Product Meta Library

Field Summary
 
Fields inherited from class java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
 
Method Summary
 void connect()
          Establish a connection.
 Object getContent()
          Return the content for this registry connection.
 Object getContent(Class[] classes)
          Return the content for this registry connection.
 InputStream getInputStream()
          Return an input stream to the resource.
 OutputStream getOutputStream()
          Return an output stream to the resource.
 
Methods inherited from class java.net.URLConnection
addRequestProperty, getAllowUserInteraction, getContentEncoding, getContentLength, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFields, getIfModifiedSince, getLastModified, getPermission, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setRequestProperty, setUseCaches, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

connect

public void connect()
             throws IOException
Establish a connection.

Throws:
IOException - is an error occurs while attempting to establish the connection.

getInputStream

public InputStream getInputStream()
                           throws IOException
Return an input stream to the resource.

Returns:
current implementation returns null
Throws:
IOException - is an error occurs

getOutputStream

public OutputStream getOutputStream()
                             throws IOException
Return an output stream to the resource.

Returns:
current implementation returns null
Throws:
IOException - if any I/O problems occur.

getContent

public Object getContent()
                  throws IOException
Return the content for this registry connection.

Returns:
the registry object
Throws:
IOException - is an error occurs

getContent

public Object getContent(Class[] classes)
                  throws IOException
Return the content for this registry connection.

Parameters:
classes - a sequence of classes against which the implementation will attempt to establish a known match
Returns:
the registry object
Throws:
IOException - is an error occurs