net.sourceforge.xwing.jelly
Class XwingContext
java.lang.Object
org.apache.commons.jelly.JellyContext
net.sourceforge.xwing.jelly.XwingContext
- public class XwingContext
- extends JellyContext
Methods inherited from class org.apache.commons.jelly.JellyContext |
compileScript, compileScript, createRelativeURL, createXMLParser, findVariable, getClassLoader, getCurrentURL, getJellyContextURL, getParent, getResourceAsStream, getRootURL, getScope, getTagLibrary, getUseContextClassLoader, getVariable, getVariable, getVariableNames, getVariables, getXMLParser, isCacheTags, isExport, isExportLibraries, isInherit, isTagLibraryRegistered, newJellyContext, newJellyContext, registerTagLibrary, registerTagLibrary, removeVariable, removeVariable, runScript, runScript, runScript, runScript, runScript, runScript, setCacheTags, setClassLoader, setCurrentURL, setExport, setExportLibraries, setInherit, setParent, setRootURL, setUseContextClassLoader, setVariable, setVariable, setVariables |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XwingContext
public XwingContext()
XwingContext
public XwingContext(URL rootURL)
XwingContext
public XwingContext(URL rootURL,
URL currentURL)
XwingContext
public XwingContext(JellyContext parent)
XwingContext
public XwingContext(JellyContext parentJellyContext,
URL currentURL)
XwingContext
public XwingContext(JellyContext parentJellyContext,
URL rootURL,
URL currentURL)
getResource
public URL getResource(String uri)
throws MalformedURLException
- Description copied from class:
JellyContext
- Returns a URL for the given resource from the specified path.
If the uri starts with "/" then the path is taken as relative to
the current context root.
If the uri is a well formed URL then it is used.
If the uri is a file that exists and can be read then it is used.
Otherwise the uri is interpreted as relative to the current context (the
location of the current script).
- Overrides:
getResource
in class JellyContext
- Throws:
MalformedURLException
createChildContext
protected JellyContext createChildContext()
- Description copied from class:
JellyContext
- Factory method to create a new child of this context
- Overrides:
createChildContext
in class JellyContext
Copyright © 2003 The Xwing Project. All Rights Reserved.