/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2007 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: WebCLIHelper.java,v 1.16 2009/11/04 23:36:45 veiming Exp $
*
*/
/*
* Portions Copyrighted 2011 ForgeRock AS
* Portions Copyrighted 2012 Open Source Solution Technology Corporation
*/
/**
* Helper class for web based CLI JSP.
*/
public class WebCLIHelper {
public WebCLIHelper(
) throws CLIException {
outputWriter = new BufferOutputWriter();
}
throws CLIException {
} else {
"error-message-http-post-required");
throw new CLIException(
}
}
} else {
html = getUsageHTML();
}
return html;
}
) throws CLIException {
if (!cmd.webEnabled()) {
return "";
}
) {
} else {
}
}
}
}
}
}
for (int i = 0; i < sz; i++) {
}
}
"web-interface-goto-main-page") +
"</a><br /><br />";
}
throws CLIException {
if (idx != -1) {
}
return strHelp;
}
throws CLIException
{
(Object[])paramCmdName))
.append("<br />");
"web-interface-cmd-name-not-found"),
}
.append("<br /><br />");
.append("?cmd=")
.append("&submit=\" method=\"post\" ")
.append("onSubmit=\"selectListBoxes(this)\">");
}
}
.append("<input type=\"submit\" value=\"")
.append("\"/> ")
.append("<input type=\"reset\" value=\"")
.append("\"/></td></tr>");
}
public void genUI(
boolean mandatory,
) {
) {
}
if (mandatory) {
}
.append("\"></textarea>");
.append("\" value=\"true\" />");
.append("\" />");
} else {
.append("\" />");
}
} else {
.append("<select name=\"")
.append("\" size=\"10\" style=\"width:200\" ")
.append("width=\"200\" multiple=\"true\">")
.append("<td><input type=\"button\" value=\"")
.append("\"")
.append(" onClick=\"removeSelFromList('")
.append("'); return false;\" />")
.append("</td></tr><tr><td colspan=2>")
.append("<input type=\"text\" name=\"")
.append("lblb")
.append("\" size=\"30\"/> ")
.append("<input type=\"button\" value=\"")
.append("\"")
.append(" onClick=\"addOption('")
.append("'); return false;\" />")
.append("</td></tr></table>");
.append("listboxes[listboxes.length] ='")
.append("';")
.append("</script>");
}
.append("</td></tr>");
}
}
}
}
}
}