Tabnine Logo
Jelly.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.commons.jelly.Jelly
constructor

Best Java code snippets using org.apache.commons.jelly.Jelly.<init> (Showing top 15 results out of 315)

origin: org.jvnet.hudson/commons-jelly

public void setUp() throws Exception {
  super.setUp();
  jelly = new Jelly();
  context = new JellyContext();
  xmlOutput = XMLOutput.createDummyXMLOutput();
}
origin: org.jenkins-ci/commons-jelly

public void setUp() throws Exception {
  super.setUp();
  jelly = new Jelly();
  context = new JellyContext();
  xmlOutput = XMLOutput.createDummyXMLOutput();
}
origin: commons-jelly/commons-jelly

public void setUp() throws Exception {
  super.setUp();
  jelly = new Jelly();
  context = new JellyContext();
  xmlOutput = XMLOutput.createDummyXMLOutput();
}
origin: org.hudsonci.stapler/commons-jelly

public void setUp() throws Exception {
  super.setUp();
  jelly = new Jelly();
  context = new JellyContext();
  xmlOutput = XMLOutput.createDummyXMLOutput();
}
origin: commons-jelly/commons-jelly

public void setUp(String scriptName) throws Exception {
  this.context = new JellyContext();
  this.xmlOutput = XMLOutput.createDummyXMLOutput();
  this.jelly = new Jelly();
  String script = scriptName;
  URL url = this.getClass().getResource(script);
  if ( url == null ) {
    throw new Exception(
      "Could not find Jelly script: " + script
      + " in package of class: " + this.getClass().getName()
    );
  }
  this.jelly.setUrl(url);
}
origin: commons-jelly/commons-jelly

public void setUp(String scriptName) throws Exception {
  context = new JellyContext();
  xmlOutput = XMLOutput.createXMLOutput(new StringWriter());
  jelly = new Jelly();
  String script = scriptName;
  URL url = this.getClass().getResource(script);
  if ( url == null ) {
    throw new Exception(
      "Could not find Jelly script: " + script
      + " in package of class: " + this.getClass().getName()
    );
  }
  jelly.setUrl(url);
}
origin: commons-jelly/commons-jelly

public void setUp(String scriptName) throws Exception {
  context = new JellyContext();
  xmlOutput = XMLOutput.createXMLOutput(new StringWriter());
  jelly = new Jelly();
  String script = scriptName;
  URL url = this.getClass().getResource(script);
  if ( url == null ) {
    throw new Exception(
      "Could not find Jelly script: " + script
      + " in package of class: " + this.getClass().getName()
    );
  }
  jelly.setUrl(url);
}
origin: commons-jelly/commons-jelly

public void setUp() throws Exception {
  context = new JellyContext();
  xmlOutput = XMLOutput.createXMLOutput(new StringWriter());
  jelly = new Jelly();
  String script = "nsFilterTest.jelly";
  URL url = this.getClass().getResource(script);
  if ( url == null ) {
    throw new Exception(
      "Could not find Jelly script: " + script
      + " in package of class: " + this.getClass().getName()
    );
  }
  jelly.setUrl(url);
}
origin: commons-jelly/commons-jelly

public void setUp(String scriptName) throws Exception {
  context = new JellyContext();
  xmlOutput = XMLOutput.createDummyXMLOutput();
  jelly = new Jelly();
  String script = scriptName;
  URL url = this.getClass().getResource(script);
  if ( url == null ) {
    throw new Exception(
      "Could not find Jelly script: " + script
      + " in package of class: " + this.getClass().getName()
    );
  }
  jelly.setUrl(url);
}
origin: commons-jelly/commons-jelly

    XMLOutput.createXMLOutput(System.out);
Jelly jelly = new Jelly();
jelly.setScript(scriptFile);
origin: org.jvnet.hudson/commons-jelly

    XMLOutput.createXMLOutput(System.out);
Jelly jelly = new Jelly();
jelly.setScript(scriptFile);
origin: org.hudsonci.stapler/commons-jelly

    XMLOutput.createXMLOutput(System.out);
Jelly jelly = new Jelly();
jelly.setScript(scriptFile);
origin: org.jenkins-ci/commons-jelly

    XMLOutput.createXMLOutput(System.out);
Jelly jelly = new Jelly();
jelly.setScript(scriptFile);
origin: commons-jelly/commons-jelly

public void setUpFromURL(URL url) throws Exception {
  context = new CoreTaglibOnlyContext();
  xmlOutput = XMLOutput.createDummyXMLOutput();
  jelly = new Jelly();
  jelly.setUrl(url);
  String exturl = url.toExternalForm();
  int lastSlash = exturl.lastIndexOf("/");
  String extBase = exturl.substring(0,lastSlash+1);
  URL baseurl = new URL(extBase);
  context.setCurrentURL(baseurl);
}
origin: commons-jelly/commons-jelly

/**
 * CDATA sections should be retained in the output.
 *
 * @throws Exception
 */
public void testCData() throws Exception {
  Jelly jelly = new Jelly();
  jelly.setScript("file:src/test/org/apache/commons/jelly/test/xml/testCData.jelly");
  Script script = jelly.compileScript();
  JellyContext context = new JellyContext();
  script.run(context, XMLOutput.createDummyXMLOutput());
  String output = (String) context.getVariable("foo");
  assertTrue("'foo' is not null", output != null);
  String golden = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
  golden += "<!DOCTYPE foo [\n";
  golden += "  <!ELEMENT foo (#PCDATA)>\n";
  golden += "]><foo></foo>";
  assertEquals("output should contain the CDATA section", golden, output);
}
org.apache.commons.jellyJelly<init>

Popular methods of Jelly

  • compileScript
    Compiles the script
  • setScript
    Sets the script URL to use as an absolute URL or a relative filename
  • setUrl
    Sets the script URL to use
  • getJellyBuildDate
  • getJellyContext
    The context to use
  • getJellyVersion
  • getRootContext
    Gets the root context
  • getUrl
  • loadJellyProperties
    Attempts to load jelly.properties from the current directory, the users home directory or from the c
  • loadProperties
    Loads the properties from the given input stream
  • readBuildTimestampResource
  • resolveURL
  • readBuildTimestampResource,
  • resolveURL,
  • setDefaultNamespaceURI,
  • setValidateXML

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setRequestProperty (URLConnection)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now