812N/ASee LICENSE.txt included in this distribution for the specific
812N/Afile and include the License file at LICENSE.txt.
1186N/Ainclude file="pageconfig.jspf"
1186N/Ainclude file="projects.jspf"
1281N/A /* ---------------------- opensearch.jsp start --------------------- */
1281N/A cfg = PageConfig.get(request);
1302N/A String ForwardedHost = request.getHeader("X-Forwarded-Host");
1302N/A String scheme = request.getScheme();
1281N/A int port = request.getServerPort();
1302N/A url.append(scheme).append("://");
1302N/A url.append(ForwardedHost);
1302N/A if ((port != 80 && scheme.equals("http")) ||
1302N/A (port != 443 && scheme.equals("https"))) {
1302N/A url.append(':').append(port);
1281N/A Set<String> projects = cfg.getRequestedProjects();
1281N/A text.append(name).append(',');
1281N/A Util.appendQuery(url, "project", name);
1281N/A if (text.length() != 0) {
812N/A<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
1281N/A <ShortName>OpenGrok <%= text.toString() %></ShortName>
1281N/A <Description>Search in OpenGrok <%= text.toString() %></Description>
1186N/A<%-- <Url type="application/x-suggestions+json" template="suggestionURL"/>--%>
1186N/A/* ---------------------- opensearch.jsp end --------------------- */