@API(src=PUBLIC,
type=EXTENDABLE)
public abstract class URLStreamHandlerWithContext
extends java.net.URLStreamHandler
Modifier | Constructor and Description |
---|---|
protected |
URLStreamHandlerWithContext()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getContextId(UserContext context)
Computes the context id based on the user context.
|
protected java.net.URLConnection |
openConnection(java.net.URL u) |
protected java.net.URLConnection |
openConnection(java.net.URL u,
java.net.Proxy p) |
protected abstract java.net.URLConnection |
openConnectionInContext(java.lang.String contextId,
java.net.URL url,
java.net.Proxy proxy)
This method has the same purpose as openConnection() in a standard URLConnection
except that the context is also passed in.
|
protected URLStreamHandlerWithContext()
protected java.lang.String getContextId(UserContext context)
context
- The UserContext.protected final java.net.URLConnection openConnection(java.net.URL u, java.net.Proxy p) throws java.io.IOException
openConnection
in class java.net.URLStreamHandler
java.io.IOException
URLStreamHandler.openConnection(java.net.URL, java.net.Proxy)
protected final java.net.URLConnection openConnection(java.net.URL u) throws java.io.IOException
openConnection
in class java.net.URLStreamHandler
java.io.IOException
URLStreamHandler.openConnection(java.net.URL)
protected abstract java.net.URLConnection openConnectionInContext(java.lang.String contextId, java.net.URL url, java.net.Proxy proxy) throws java.io.IOException
contextId
- The id of the context.url
- The URL to connect to.proxy
- The proxy to use. May be null.java.io.IOException
- If the connection fails.© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.