|
Eclipse Rich Ajax Platform | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IResource
Implementations of this interface represent an existing resource - local or external.
Method Summary | |
---|---|
java.lang.String |
getCharset()
Specifies the charset to use for this resource. |
java.lang.ClassLoader |
getLoader()
Specifies the classloader that has access to the resource that should be loaded. |
java.lang.String |
getLocation()
Returns the location of the resource. |
IResourceManager.RegisterOptions |
getOptions()
Specifies in which way the resource is delivered. |
boolean |
isExternal()
Decides whether the resource is external or not. |
boolean |
isJSLibrary()
Decides whether the resource is a javascript library and thus handled a bit different than other resources. |
Method Detail |
---|
java.lang.ClassLoader getLoader()
ClassLoader getLoader() {
return this.getClass().getClassLoader();
}
java.lang.String getLocation()
isExternal()
java.lang.String getCharset()
IResourceManager.RegisterOptions getOptions()
RegisterOptions#NONE
. If you want RAP to compress the file
use RegisterOptions#COMPRESS
and to version it use
RegisterOptions#VERSION
.
If you want to combine versioning and compression you can return
RegisterOptions#VERSION_AND_COMPRESS
as value.
RegisterOptions
IResourceManager.RegisterOptions
boolean isJSLibrary()
IResourceManager.RegisterOptions
,
isExternal()
,
getOptions()
boolean isExternal()
|
Eclipse Rich Ajax Platform | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) EclipseSource and others 2002, 2012. All rights reserved.