Package org.wso2.carbon.ui
Class CarbonConnection
- java.lang.Object
-
- java.net.URLConnection
-
- org.wso2.carbon.ui.CarbonConnection
-
public class CarbonConnection extends URLConnection
-
-
Field Summary
-
Fields inherited from class java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCarbonConnection(URL url, org.osgi.framework.BundleContext context)Constructs a URL connection to the specified URL.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconnect()intgetContentLength()StringgetContentType()InputStreamgetInputStream()-
Methods inherited from class java.net.URLConnection
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLengthLong, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, getHeaderFields, getIfModifiedSince, getLastModified, getOutputStream, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString
-
-
-
-
Constructor Detail
-
CarbonConnection
protected CarbonConnection(URL url, org.osgi.framework.BundleContext context) throws Exception
Constructs a URL connection to the specified URL. A connection to the object referenced by the URL is not created.- Parameters:
url- the specified URL.context- BundleContext- Throws:
Exception
-
-
Method Detail
-
connect
public void connect() throws IOException- Specified by:
connectin classURLConnection- Throws:
IOException
-
getInputStream
public InputStream getInputStream() throws IOException
- Overrides:
getInputStreamin classURLConnection- Throws:
IOException
-
getContentType
public String getContentType()
- Overrides:
getContentTypein classURLConnection
-
getContentLength
public int getContentLength()
- Overrides:
getContentLengthin classURLConnection
-
-