org.gcube.data.tml.uri.tm
Class CMSURLConnection

java.lang.Object
  extended by java.net.URLConnection
      extended by org.gcube.data.tml.uri.tm.CMSURLConnection

public class CMSURLConnection
extends URLConnection

Invoked by the platform with a URL of the right protocol.

Author:
Fabio Simeoni

Field Summary
 
Fields inherited from class java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
 
Constructor Summary
CMSURLConnection(URL url)
          Constructs a new instance for a given cms URL.
 
Method Summary
 void connect()
          
 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CMSURLConnection

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

Parameters:
url - the URL.
Method Detail

connect

public void connect()
             throws IOException

Specified by:
connect in class URLConnection
Throws:
IOException

getInputStream

public InputStream getInputStream()
                           throws IOException

Overrides:
getInputStream in class URLConnection
Throws:
IOException


Copyright © 2012. All Rights Reserved.