opensearch.jsp revision 1279
58N/ASee LICENSE.txt included in this distribution for the specific
58N/Afile and include the License file at LICENSE.txt.
234N/Ainclude file="pageconfig.jspf"
639N/Ainclude file="projects.jspf"
667N/A /* ---------------------- opensearch.jsp start --------------------- */
58N/A cfg = PageConfig.get(request);
112N/A if (request.getProtocol().toUpperCase().startsWith("HTTPS")) protocol="https://";
58N/A int port = request.getServerPort();
77N/A port = url.length(); // mark
418N/A url.setLength(port); // rewind
773N/A Set<String> projects = cfg.getRequestedProjects();
773N/A text.append(name).append(',');
773N/A Util.appendQuery(url, "project", name);
773N/A if (text.length() != 0) {
58N/A<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
58N/A <ShortName>OpenGrok <%= text.toString() %></ShortName>
58N/A <Description>Search in OpenGrok <%= text.toString() %></Description>
65N/A<%-- <Url type="application/x-suggestions+json" template="suggestionURL"/>--%>
125N/A/* ---------------------- opensearch.jsp end --------------------- */