|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.net.URLConnection | +--com.objectwave.customClassLoader.cclp.CclpURLConnection
My new URL protocol CCLP is handled by this connection.
Field Summary |
Fields inherited from class java.net.URLConnection |
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches |
Constructor Summary | |
CclpURLConnection(java.net.URL url)
|
Method Summary | |
void |
connect()
When we 'connect' we locate the CustomClassLoader for which we are going to retrieve data. |
java.lang.Object |
getContent()
Get the content...beware, not all objects are serializable. |
java.io.InputStream |
getInputStream()
|
static void |
registerClassLoader(int id,
MultiClassLoader loader)
The host of a CCLP URL is going to be the hashcode of the CustomClassLoader that should process the URL request. |
Methods inherited from class java.net.URLConnection |
addRequestProperty, getAllowUserInteraction, getContent, getContentEncoding, getContentLength, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFields, getIfModifiedSince, getLastModified, getOutputStream, getPermission, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setRequestProperty, setUseCaches, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CclpURLConnection(java.net.URL url)
Method Detail |
public void connect() throws java.io.IOException
connect
in class java.net.URLConnection
java.io.IOException
public java.lang.Object getContent() throws java.io.IOException
getContent
in class java.net.URLConnection
java.io.IOException
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in class java.net.URLConnection
java.io.IOException
public static void registerClassLoader(int id, MultiClassLoader loader)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |