@API(src=PUBLIC,
type=EXTENDABLE)
public class URLStreamHandlerWithContextUtil
extends java.lang.Object
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 - 2016. All rights reserved.