/**
* Sets the secure flag on the URl as required
*
* @throws JspException
*/
protected void handleSecureFlag() throws JspException {
BaseURL url = getUrl();
if (secure != null && !secure.equalsIgnoreCase("true") && !secure.equalsIgnoreCase("false")) {
StringBuilder txt = new StringBuilder(128);
txt.append("Invalid secure option: ").append(secure);
txt.append(", valid options: true, false");
throw new JspException(txt.toString());
}
if(url == null){
throw new IllegalStateException("internal error: url not set");
}
if (var != null) {
pageContext.removeAttribute(var, PageContext.PAGE_SCOPE);
}
if (secure != null) {
try {
url.setSecure(isSecure());
} catch (PortletSecurityException e) {
// ignore exception as Pluto doesn't support setSecure
// throw new JspException(e);
}
}
}
BaseURLTag.java 文件源码
java
阅读 18
收藏 0
点赞 0
评论 0
项目:portals-pluto
作者:
评论列表
文章目录