com.metamatrix.common.protocol.classpath
Class ClasspathURLConnection

java.lang.Object
  extended by java.net.URLConnection
      extended by com.metamatrix.common.protocol.MMURLConnection
          extended by com.metamatrix.common.protocol.classpath.ClasspathURLConnection

public class ClasspathURLConnection
extends MMURLConnection

Connection object to a resource in a Classpath. can not use the PluginUtill logging beacuse their dependencies

Since:
4.4

Field Summary
static java.lang.String PROTOCOL
           
 
Fields inherited from class com.metamatrix.common.protocol.MMURLConnection
action, ALPHA, DATE, DELETE, FILE_LIST_SORT, LIST, props, READ, REVERSEALPHA, WRITE
 
Fields inherited from class java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
 
Constructor Summary
ClasspathURLConnection(java.net.URL u)
          ctor
 
Method Summary
 void connect()
          Connect to the supplied URL
 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROTOCOL

public static java.lang.String PROTOCOL
Constructor Detail

ClasspathURLConnection

public ClasspathURLConnection(java.net.URL u)
ctor

Parameters:
u - - URL to open the connection to
Method Detail

connect

public void connect()
             throws java.io.IOException
Connect to the supplied URL

Specified by:
connect in class java.net.URLConnection
Throws:
java.io.IOException
See Also:
URLConnection.connect()

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Overrides:
getInputStream in class java.net.URLConnection
Throws:
java.io.IOException
See Also:
URLConnection.getInputStream()


Copyright © 2009. All Rights Reserved.