opensearch.jsp revision 59b6a8c0cc6ef741a7180504b3c371e67c2aa338
919N/ASee LICENSE.txt included in this distribution for the specific
919N/Afile and include the License file at LICENSE.txt.
911N/Ainclude file="pageconfig.jspf"
911N/Ainclude file="projects.jspf"
32N/A /* ---------------------- opensearch.jsp start --------------------- */
1339N/A cfg = PageConfig.get(request);
32N/A String scheme=request.getScheme();
int port = request.getServerPort();
if ((port != 80 && scheme.equals("http")) ||
(port != 443 && scheme.equals("https"))) {
url.append(':').append(port);
port = url.length(); // mark
url.setLength(port); // rewind
Set<String> projects = cfg.getRequestedProjects();
text.append(name).append(',');
Util.appendQuery(url, "project", name);
if (text.length() != 0) {
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>OpenGrok <%= text.toString() %></ShortName>
<Description>Search in OpenGrok <%= text.toString() %></Description>
<Image height="16" width="16" type="image/png"><%= img %></Image>
<%-- <Url type="application/x-suggestions+json" template="suggestionURL"/>--%>
/* ---------------------- opensearch.jsp end --------------------- */