org.apache.servicemix.jbi.deployer.handler
Class Connection

java.lang.Object
  extended by java.net.URLConnection
      extended by org.apache.servicemix.jbi.deployer.handler.Connection

public class Connection
extends URLConnection

A URL connection to handle the JBI to OSGi transformation using a URL.


Field Summary
 
Fields inherited from class java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
 
Constructor Summary
Connection(URL url)
           
 
Method Summary
 void connect()
          Connect method.
 InputStream getInputStream()
          Retrieve an InputStream on the OSGi bundle.
 
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

Connection

public Connection(URL url)
           throws MalformedURLException
Throws:
MalformedURLException
Method Detail

connect

public void connect()
Connect method. Nothing to do in our case.

Specified by:
connect in class URLConnection

getInputStream

public InputStream getInputStream()
                           throws IOException
Retrieve an InputStream on the OSGi bundle.

Overrides:
getInputStream in class URLConnection
Returns:
an InputStream used to read the transformation output.
Throws:
IOException - if an error occurs when transforming the JBI artifact.


Copyright © 2005-2011 The Apache Software Foundation. All Rights Reserved.