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 java.net.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(java.net.URL url)
           
 
Method Summary
 void connect()
          Connect method.
 java.io.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(java.net.URL url)
           throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException
Method Detail

connect

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

Specified by:
connect in class java.net.URLConnection

getInputStream

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

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


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