本文整理汇总了Java中com.ibm.xsp.extlib.util.ExtLibUtil.getResourceURL方法的典型用法代码示例。如果您正苦于以下问题:Java ExtLibUtil.getResourceURL方法的具体用法?Java ExtLibUtil.getResourceURL怎么用?Java ExtLibUtil.getResourceURL使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.ibm.xsp.extlib.util.ExtLibUtil
的用法示例。
在下文中一共展示了ExtLibUtil.getResourceURL方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getResourceURL
import com.ibm.xsp.extlib.util.ExtLibUtil; //导入方法依赖的package包/类
@Override
public URL getResourceURL(final HttpServletRequest request, final String name) {
if(name.startsWith(AceLibrary.LIBRARY_RESOURCE_NAMESPACE)) {
String path = ExtlibResourceProvider.BUNDLE_RES_PATH_EXTLIB + name;
return ExtLibUtil.getResourceURL(Activator.instance.getBundle(), path);
}
return null;
}
示例2: loadDojoResource
import com.ibm.xsp.extlib.util.ExtLibUtil; //导入方法依赖的package包/类
protected DojoResource loadDojoResource(String name, DojoLibrary dojoLibrary) {
if(name.startsWith("dwa.")) { // $NON-NLS-1$
String dojoName = name;
String path = ExtlibResourceProvider.DWA_RES_PATH+StringUtil.replace(dojoName, '.', '/')+".js"; // $NON-NLS-1$
URL u = ExtLibUtil.getResourceURL(DominoPluginActivator.instance.getBundle(), path);
if(u!=null) {
return new UrlDojoResource(dojoLibrary,name,u);
}
}
// Look for resources...
if( name.startsWith("!dwa.")) { // $NON-NLS-1$
return new DWADojoLocaleResource(dojoLibrary,name,ExtlibResourceProvider.DWA_RES_PATH);
}
return null;
}
示例3: loadCSSResource
import com.ibm.xsp.extlib.util.ExtLibUtil; //导入方法依赖的package包/类
public CSSResource loadCSSResource(String name, DojoLibrary dojoLibrary) {
if(name.startsWith("/.ibmxspres/.dwa/")) { // $NON-NLS-1$
String path = ExtlibResourceProvider.DWA_RES_PATH+"dwa/"+name.substring(17); // $NON-NLS-1$
URL u = ExtLibUtil.getResourceURL(DominoPluginActivator.instance.getBundle(), path);
if(u!=null) {
return new DWACSSResource(dojoLibrary,name,u);
}
}
return null;
}
示例4: loadDojoResource
import com.ibm.xsp.extlib.util.ExtLibUtil; //导入方法依赖的package包/类
protected DojoResource loadDojoResource(String name, DojoLibrary dojoLibrary, ExtLibLoaderExtension ext) {
String path = ExtlibResourceProvider.BUNDLE_RES_PATH+StringUtil.replace(name, '.', '/')+".js"; //$NON-NLS-1$
URL u = ExtLibUtil.getResourceURL(ext.getOSGiBundle(), path);
if(u!=null) {
return new ExtLibDojoResource(dojoLibrary,name,u);
}
return null;
}
示例5: loadCSSResource
import com.ibm.xsp.extlib.util.ExtLibUtil; //导入方法依赖的package包/类
protected CSSResource loadCSSResource(String name, DojoLibrary dojoLibrary, ExtLibLoaderExtension ext) {
String path = ExtlibResourceProvider.BUNDLE_RES_PATH_EXTLIB+name.substring(20);
URL u = ExtLibUtil.getResourceURL(ext.getOSGiBundle(), path);
if(u!=null) {
return new ExtLibCSSResource(dojoLibrary,name,u);
}
return null;
}
示例6: getResourceURL
import com.ibm.xsp.extlib.util.ExtLibUtil; //导入方法依赖的package包/类
@Override
public URL getResourceURL(HttpServletRequest request, String name) {
if (name.startsWith("responsive")) { //$NON-NLS-1$
String path = ExtlibResourceProvider.BUNDLE_RES_PATH_EXTLIB + name;
return ExtLibUtil.getResourceURL(Activator.instance.getBundle(), path);
}
return null;
}
示例7: getResourceURL
import com.ibm.xsp.extlib.util.ExtLibUtil; //导入方法依赖的package包/类
@Override
public URL getResourceURL(HttpServletRequest request, String name) {
String path = ExtlibResourceProvider.BUNDLE_RES_PATH_EXTLIB+name;
return ExtLibUtil.getResourceURL(ControlsPluginActivator.instance.getBundle(), path);
}
示例8: getResourceURL
import com.ibm.xsp.extlib.util.ExtLibUtil; //导入方法依赖的package包/类
@Override
protected URL getResourceURL(String baseUrl, String name) throws IOException {
String path = baseUrl+StringUtil.replace(name, '.', '/')+".js"; // $NON-NLS-1$
URL url = ExtLibUtil.getResourceURL(DominoPluginActivator.instance.getBundle(), path);
return url;
}
示例9: getResourceURL
import com.ibm.xsp.extlib.util.ExtLibUtil; //导入方法依赖的package包/类
@Override
public URL getResourceURL(HttpServletRequest request, String name) {
String path = ExtlibResourceProvider.BUNDLE_RES_PATH_EXTLIB+name;
return ExtLibUtil.getResourceURL(OneUIPluginActivator.instance.getBundle(), path);
}
示例10: getResourceURL
import com.ibm.xsp.extlib.util.ExtLibUtil; //导入方法依赖的package包/类
@Override
public URL getResourceURL(HttpServletRequest request, String name) {
String path = ExtlibResourceProvider.BUNDLE_RES_PATH_EXTLIB+name;
return ExtLibUtil.getResourceURL(MobilePluginActivator.instance.getBundle(), path);
}