@API(src=PUBLIC,
type=EXTENDABLE)
public class URLStreamHandlerWithContextUtil
extends java.lang.Object
Please note that this API is not marked as final and it can change in one of the next versions of the application. If you have suggestions, comments about it, please let us know.
Constructor and Description |
---|
URLStreamHandlerWithContextUtil()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
clearCacheForTC()
Clears the handlers cache.
|
static URLStreamHandlerWithContextUtil |
getInstance() |
void |
setUserContext(UserContext context,
java.net.URL url)
Method called to set the context of an URL.
|
java.lang.String |
toStrippedExternalForm(java.net.URL url)
If the URL contains a context id (set by a URLStreamHandlerWithContext),
this method strips it, otherwise it simply returns the URL.
|
public URLStreamHandlerWithContextUtil()
public static URLStreamHandlerWithContextUtil getInstance()
public void setUserContext(UserContext context, java.net.URL url) throws java.net.MalformedURLException
context
- The context.url
- The URL.java.net.MalformedURLException
public java.lang.String toStrippedExternalForm(java.net.URL url)
url
- The URL with the context id.public void clearCacheForTC()
© Copyright SyncRO Soft SRL 2002 - 2015. All rights reserved.