com.fastchar.extjs.core.heads.FastHeadScriptInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fastchar-extjs Show documentation
Show all versions of fastchar-extjs Show documentation
FastChar-ExtJs is a Java Web framework that uses extjs libraries.
package com.fastchar.extjs.core.heads;
import com.fastchar.utils.FastStringUtils;
public class FastHeadScriptInfo extends FastHeadInfo {
public FastHeadScriptInfo() {
this.setTagName("script");
}
private String src;
public String getSrc() {
return src;
}
public void setSrc(String src) {
this.src = src;
}
public void wrapHttp(String http) {
if (FastStringUtils.isEmpty(src)) {
return;
}
if (src.startsWith("http://") || src.startsWith("https://")) {
return;
}
if (src.startsWith("/")) {
return;
}
put("src", http + src);
}
@Override
public boolean isWriteHtml() {
return false;
}
}