1281N/A<%--
1186N/A$Id$
1186N/A
0N/ACDDL HEADER START
0N/A
0N/AThe contents of this file are subject to the terms of the
1281N/ACommon Development and Distribution License (the "License").
0N/AYou may not use this file except in compliance with the License.
0N/A
0N/ASee LICENSE.txt included in this distribution for the specific
0N/Alanguage governing permissions and limitations under the License.
0N/A
0N/AWhen distributing Covered Code, include this CDDL HEADER in each
0N/Afile and include the License file at LICENSE.txt.
0N/AIf applicable, add the following below this CDDL HEADER, with the
0N/Afields enclosed by brackets "[]" replaced with your own identifying
0N/Ainformation: Portions Copyright [yyyy] [name of copyright owner]
0N/A
0N/ACDDL HEADER END
0N/A
1105N/ACopyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
1186N/APortions Copyright 2011 Jens Elkner.
1105N/A
1186N/A--%><%--
1143N/A
1186N/AAfter include you are here: /body/div#page/div#content/
1281N/A
1478N/A--%><%@ page session="false" errorPage="error.jsp"%><%
1186N/A/* ---------------------- mast.jsp start --------------------- */
1186N/A{
1281N/A cfg = PageConfig.get(request);
1281N/A String redir = cfg.canProcess();
1281N/A if (redir == null || redir.length() > 0) {
1281N/A if (redir == null) {
1281N/A response.sendError(HttpServletResponse.SC_NOT_FOUND);
1281N/A } else {
1281N/A response.sendRedirect(redir);
1281N/A }
1281N/A return;
1281N/A }
1330N/A long flast = cfg.getLastModified()/1000 * 1000;
1470N/A long lmdate = cfg.getConfig().getLastModified();
1330N/A if (lmdate > flast) {
1330N/A flast = lmdate;
1330N/A }
1281N/A if (request.getDateHeader("If-Modified-Since") >= flast) {
1281N/A response.setStatus(HttpServletResponse.SC_NOT_MODIFIED);
1281N/A return;
1281N/A }
1281N/A response.setDateHeader("Last-Modified", flast);
1186N/A
1281N/A // Use UTF-8 if no encoding is specified in the request
1281N/A if (request.getCharacterEncoding() == null) {
1281N/A request.setCharacterEncoding("UTF-8");
1281N/A }
1186N/A
1281N/A // set the default page title
1281N/A String path = cfg.getPath();
1469N/A cfg.setTitle("Cross Reference: " + Util.htmlize(path));
1186N/A
1281N/A String context = request.getContextPath();
1470N/A cfg.getConfig().setUrlPrefix(context + Prefix.SEARCH_R + "?");
1281N/A
1281N/A String uriEncodedPath = cfg.getUriEncodedPath();
1281N/A String rev = cfg.getRequestedRevision();
1355N/A
1355N/A StringBuilder js = new StringBuilder(256);
1355N/A js.append("O.linkHome='").append(context).append("/';")
1355N/A .append("O.linkXref='").append(context).append(Prefix.XREF_P)
1355N/A .append(uriEncodedPath).append("';");
1355N/A if (rev.length() > 0) {
1355N/A js.append("O.rev='").append(rev).append("';");
1355N/A }
1355N/A if (cfg.hasHistory()) {
1355N/A js.append("O.linkHistory='").append(context).append(Prefix.HIST_L)
1355N/A .append(uriEncodedPath).append("';");
1355N/A }
1355N/A if (!cfg.isDir()) {
1355N/A js.append("O.linkDownload='").append(context).append(Prefix.RAW_P)
1355N/A .append(uriEncodedPath).append("';");
1355N/A }
1355N/A if (cfg.annotate()) {
1355N/A js.append("O.annotated=true;");
1355N/A }
1355N/A if (cfg.hasAnnotations()) {
1355N/A js.append("O.hasAnnotations=true;");
1355N/A }
1355N/A if (cfg.isDir()) {
1355N/A js.append("O.isDir=true;");
1355N/A }
1355N/A if (cfg.getPrefix() == Prefix.XREF_P) {
1355N/A js.append("O.isXref=true;");
1355N/A }
1473N/A String hash = cfg.getDocumentHash();
1355N/A if (hash != null) {
1355N/A js.append("window.location.hash='").append(hash).append("';");
1355N/A }
1355N/A js.append("O.domReady.push(O.domReadyMast); O.pageReady.push(O.pageReadyMast);");
1186N/A%><%@
1186N/A
1186N/Ainclude file="httpheader.jspf"
1186N/A
1364N/A%><body class="yui3-skin-sam">
1186N/A<script type="text/javascript">/* <![CDATA[ */
1384N/A<%= js %>
1186N/A/* ]]> */</script>
1186N/A<div id="page">
1281N/A <div id="whole_header">
1281N/A <form action="<%= context + Prefix.SEARCH_P %>">
1281N/A<div id="header"><%@
1186N/A
1186N/Ainclude file="pageheader.jspf"
80N/A
1186N/A%>
1281N/A <div id="pagetitle"><span id="filename"
1469N/A >Cross Reference: <%= Util.htmlize(cfg.getCrossFilename()) %></span><%
1281N/A String dtag = cfg.getDefineTagsIndex();
1281N/A if (dtag.length() > 0) {
1469N/A %><br/><%= Util.htmlize(dtag) %><%
1281N/A }
1281N/A %></div>
1186N/A</div>
1186N/A<div id="Masthead">
1390N/A <a href="<%= context + Prefix.XREF_P %>/">xref</a>: <%= Util
1354N/A .breadcrumbPath(context + Prefix.XREF_P, path,'/', "", true, cfg.isDir())
1390N/A%>
1186N/A</div>
1186N/A<div id="bar">
1281N/A <ul>
1469N/A <li><a><span id="home"></span>Home</a></li>
1469N/A <li><a><span id="history"></span>History</a></li>
1469N/A <li><a title="Show or hide line annotation (revisions, authors)"
1355N/A ><span id="annotate"></span>Annotate</a></li>
1469N/A <li><a title="Show or hide line numbers"
1355N/A ><span id="line"></span>Line#</a></li>
1469N/A <li><a title="Show or hide symbol list"
1355N/A ><span id="defbox"></span>Navigate</a></li>
1469N/A <li><a><span id="download"></span>Download</a></li>
1390N/A <li><input type="text" id="search" name="q" />
1390N/A <button type="submit" class="submit">Search</button></li><%
1281N/A Project proj = cfg.getProject();
1281N/A String[] vals = cfg.getSearchOnlyIn();
1281N/A %><li><input type="checkbox" name="path" value="<%= vals[0]
1469N/A %>" title="<%= vals[0] %>" <%= vals[1] %>/> only in <b>./</b></li>
1281N/A </ul><%
1281N/A if (proj != null) {
1281N/A %>
1281N/A <input type="hidden" name="project" value="<%=proj.getDescription()%>" /><%
1281N/A }
1186N/A%>
1186N/A</div>
1281N/A </form>
1281N/A </div>
1186N/A<div id="content">
1186N/A<%
1130N/A}
1186N/A/* ---------------------- mast.jsp end --------------------- */
1186N/A%>