org.jenkinsci.plugins.uithemes.less
Class URLResource

java.lang.Object
  extended by org.jenkinsci.plugins.uithemes.less.URLResource
All Implemented Interfaces:
org.lesscss.Resource

public class URLResource
extends Object
implements org.lesscss.Resource

Author:
tom.fennelly@gmail.com

Field Summary
static String CORE_LESS_PREFIX
           
static String JENKINS_ENV_ALIAS
           
static String VARIABLES_ALIAS
           
 
Constructor Summary
URLResource(String resPath)
           
URLResource(URL resClasspathURL)
           
 
Method Summary
 org.lesscss.Resource createRelative(String relativeResourcePath)
           
 boolean exists()
           
 boolean exists(Level logLevel)
           
protected static String extractThemeVariableName(String relativeResourcePath)
           
 InputStream getInputStream()
           
 String getName()
           
protected  URL getRelativeResourceURL(String resourcePath)
           
 URI getResConfigURI()
           
static URL getResourceURL(String resPath, URL baseResourceURL)
           
 long lastModified()
           
 URLResource setBaseURL(URL baseURL)
           
 URLResource setCoreVariables(URLResource coreVariables)
           
 URLResource setThemesProcessor(UIThemesProcessor plugin)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CORE_LESS_PREFIX

public static final String CORE_LESS_PREFIX
See Also:
Constant Field Values

JENKINS_ENV_ALIAS

public static final String JENKINS_ENV_ALIAS
See Also:
Constant Field Values

VARIABLES_ALIAS

public static final String VARIABLES_ALIAS
See Also:
Constant Field Values
Constructor Detail

URLResource

public URLResource(URL resClasspathURL)

URLResource

public URLResource(String resPath)
Method Detail

setBaseURL

public URLResource setBaseURL(URL baseURL)

setCoreVariables

public URLResource setCoreVariables(URLResource coreVariables)

setThemesProcessor

public URLResource setThemesProcessor(UIThemesProcessor plugin)

getResConfigURI

public URI getResConfigURI()

exists

public boolean exists()
Specified by:
exists in interface org.lesscss.Resource

exists

public boolean exists(Level logLevel)

lastModified

public long lastModified()
Specified by:
lastModified in interface org.lesscss.Resource

getInputStream

public InputStream getInputStream()
                           throws IOException
Specified by:
getInputStream in interface org.lesscss.Resource
Throws:
IOException

createRelative

public org.lesscss.Resource createRelative(String relativeResourcePath)
                                    throws IOException
Specified by:
createRelative in interface org.lesscss.Resource
Throws:
IOException

extractThemeVariableName

protected static String extractThemeVariableName(String relativeResourcePath)

getName

public String getName()
Specified by:
getName in interface org.lesscss.Resource

toString

public String toString()
Overrides:
toString in class Object

getResourceURL

public static URL getResourceURL(String resPath,
                                 URL baseResourceURL)
                          throws MalformedURLException
Throws:
MalformedURLException

getRelativeResourceURL

protected URL getRelativeResourceURL(String resourcePath)


Copyright © 2004-2015. All Rights Reserved.