org.gcube.contentmanagement.contentmanager.stubs.model.protocol.cms
Class CMSURLConnection

java.lang.Object
  extended by java.net.URLConnection
      extended by org.gcube.contentmanagement.contentmanager.stubs.model.protocol.cms.CMSURLConnection

public class CMSURLConnection
extends java.net.URLConnection

This is invoked by the platform with a URL of the right protocol.

Author:
Fabio Simeoni (University of Strathclyde)

Constructor Summary
CMSURLConnection(java.net.URL url)
          Constructs a new instance for a given cms URL.
 
Method Summary
 void connect()
          
 java.io.InputStream getInputStream()
          
 
Methods inherited from class java.net.URLConnection
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFields, getIfModifiedSince, 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CMSURLConnection

public CMSURLConnection(java.net.URL url)
Constructs a new instance for a given cms URL.

Parameters:
url - the URL.
Method Detail

connect

public void connect()
             throws java.io.IOException

Specified by:
connect in class java.net.URLConnection
Throws:
java.io.IOException

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException

Overrides:
getInputStream in class java.net.URLConnection
Throws:
java.io.IOException