|
JPF 0.10 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is intended to establish correspondence between relative path and absolute URL in context of plug-in or plug-in fragment.
ObjectFactory.createPathResolver()
Method Summary | |
void |
configure(ExtendedProperties config)
Configures this resolver instance. |
java.net.URL |
getRegisteredContext(java.lang.String id)
Returns URL of registered plug-in
element context. |
boolean |
isContextRegistered(java.lang.String id)
|
boolean |
isResourceExists(java.net.URL url)
Deprecated. use IoUtil.isResourceExists(URL)
method instead, this method will be removed before 1.0
release |
void |
registerContext(Identity idt,
java.net.URL url)
Registers "home" URL for given plug-in element. |
java.net.URL |
resolvePath(Identity identity,
java.lang.String path)
Should resolve given path to URL for a given identity. |
void |
unregisterContext(java.lang.String id)
Unregisters plug-in element from this path resolver. |
java.io.File |
url2file(java.net.URL url)
Deprecated. use IoUtil.url2file(URL)
method instead, this method will be removed before 1.0
release |
Method Detail |
public void configure(ExtendedProperties config) throws java.lang.Exception
object factory
implementation.
config
- path resolver configuration data
java.lang.Exception
- if any error has occurredpublic void registerContext(Identity idt, java.net.URL url)
idt
- plug-in elementurl
- "home" URL for a given plug-in elementpublic void unregisterContext(java.lang.String id)
id
- plug-in element identifierpublic java.net.URL getRegisteredContext(java.lang.String id)
registered
plug-in
element context. If context for plug-in element with given ID not
registered, this method should throw an IllegalArgumentException
.
In other words, this method shouldn't return null
.
id
- plug-in element identifier
public boolean isContextRegistered(java.lang.String id)
id
- plug-in element identifier
true
if context for plug-in element with given ID
registeredpublic java.net.URL resolvePath(Identity identity, java.lang.String path)
identity
- plug-in element for which to resolve pathpath
- path to be resolved
public boolean isResourceExists(java.net.URL url)
IoUtil.isResourceExists(URL)
method instead, this method will be removed before 1.0
release
url
- absolute URL which points to a resource to be checked
true
if given URL points to an existing resourcepublic java.io.File url2file(java.net.URL url)
IoUtil.url2file(URL)
method instead, this method will be removed before 1.0
release
File
object.
url
- an URL
null
if URL is not
local
|
JPF 0.10 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |