|
JPF 1.5.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PathResolver
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)
|
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. |
Method Detail |
---|
void configure(ExtendedProperties config) throws java.lang.Exception
object factory
implementation.
config
- path resolver configuration data
java.lang.Exception
- if any error has occurredvoid registerContext(Identity idt, java.net.URL url)
idt
- plug-in elementurl
- "home" URL for a given plug-in elementvoid unregisterContext(java.lang.String id)
id
- plug-in element identifierjava.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
boolean isContextRegistered(java.lang.String id)
id
- plug-in element identifier
true
if context for plug-in element with given ID
registeredjava.net.URL resolvePath(Identity identity, java.lang.String path)
identity
- plug-in element for which to resolve pathpath
- path to be resolved
|
JPF 1.5.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |