net.sourceforge.xwing.jelly
Class XwingContext

java.lang.Object
  extended byorg.apache.commons.jelly.JellyContext
      extended bynet.sourceforge.xwing.jelly.XwingContext

public class XwingContext
extends JellyContext


Field Summary
 
Fields inherited from class org.apache.commons.jelly.JellyContext
classLoader, useContextClassLoader
 
Constructor Summary
XwingContext()
           
XwingContext(JellyContext parent)
           
XwingContext(JellyContext parentJellyContext, URL currentURL)
           
XwingContext(JellyContext parentJellyContext, URL rootURL, URL currentURL)
           
XwingContext(URL rootURL)
           
XwingContext(URL rootURL, URL currentURL)
           
 
Method Summary
protected  JellyContext createChildContext()
          Factory method to create a new child of this context
 URL getResource(String uri)
          Returns a URL for the given resource from the specified path.
 
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
 

Constructor Detail

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)
Method Detail

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.