Tabnine Logo
Jelly.setUrl
Code IndexAdd Tabnine to your IDE (free)

How to use
setUrl
method
in
org.apache.commons.jelly.Jelly

Best Java code snippets using org.apache.commons.jelly.Jelly.setUrl (Showing top 14 results out of 315)

origin: org.jenkins-ci/commons-jelly

/** 
 * Sets the script URL to use as an absolute URL or a relative filename
 */
public void setScript(String script) throws MalformedURLException {
  setUrl(resolveURL(script));
}
 
origin: commons-jelly/commons-jelly

/** 
 * Sets the script URL to use as an absolute URL or a relative filename
 */
public void setScript(String script) throws MalformedURLException {
  setUrl(resolveURL(script));
}

origin: org.hudsonci.stapler/commons-jelly

/** 
 * Sets the script URL to use as an absolute URL or a relative filename
 */
public void setScript(String script) throws MalformedURLException {
  setUrl(resolveURL(script));
}
 
origin: org.jvnet.hudson/commons-jelly

/** 
 * Sets the script URL to use as an absolute URL or a relative filename
 */
public void setScript(String script) throws MalformedURLException {
  setUrl(resolveURL(script));
}
 
origin: commons-jelly/commons-jelly

protected void setUpScript(String scriptname) throws Exception {
  URL url = this.getClass().getResource(scriptname);
  if(null == url) {
    throw new Exception(
      "Could not find Jelly script: " + scriptname
      + " in package of class: " + getClass().getName()
    );
  }
  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: org.jvnet.hudson/commons-jelly

protected void setUpScript(String scriptname) throws Exception {
  URL url = this.getClass().getResource(scriptname);
  if(null == url) {
    throw new Exception(
      "Could not find Jelly script: " + scriptname
      + " in package of class: " + getClass().getName()
    );
  }
  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: org.hudsonci.stapler/commons-jelly

protected void setUpScript(String scriptname) throws Exception {
  URL url = this.getClass().getResource(scriptname);
  if(null == url) {
    throw new Exception(
      "Could not find Jelly script: " + scriptname
      + " in package of class: " + getClass().getName()
    );
  }
  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: org.jenkins-ci/commons-jelly

protected void setUpScript(String scriptname) throws Exception {
  URL url = this.getClass().getResource(scriptname);
  if(null == url) {
    throw new Exception(
      "Could not find Jelly script: " + scriptname
      + " in package of class: " + getClass().getName()
    );
  }
  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

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() 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.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(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

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);
}
org.apache.commons.jellyJellysetUrl

Javadoc

Sets the script URL to use

Popular methods of Jelly

  • <init>
  • compileScript
    Compiles the script
  • setScript
    Sets the script URL to use as an absolute URL or a relative filename
  • 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

  • Updating database using SQL prepared statement
  • getExternalFilesDir (Context)
  • getSharedPreferences (Context)
  • setContentView (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • String (java.lang)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • JPanel (javax.swing)
  • Top plugins for Android Studio
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