org.jenkinsci.plugins.uithemes.less
Class URLResource
java.lang.Object
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
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
URLResource
public URLResource(URL resClasspathURL,
UIThemeContribution viaContribution)
URLResource
public URLResource(String resPath,
UIThemeContribution viaContribution)
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.