Prefix.java revision 1220
1187N/A * The contents of this file are subject to the terms of the 1187N/A * Common Development and Distribution License (the "License"). 1187N/A * You may not use this file except in compliance with the License. 1187N/A * language governing permissions and limitations under the License. 1187N/A * When distributing Covered Code, include this CDDL HEADER in each 1187N/A * If applicable, add the following below this CDDL HEADER, with the 1187N/A * fields enclosed by brackets "[]" replaced with your own identifying 1187N/A * information: Portions Copyright [yyyy] [name of copyright owner] 1187N/A * Copyright (c) 2011 Jens Elkner. 1281N/A * URL Prefixes usually tied to a certain servlet. 1187N/A /** a show cross reference, i.e. add Line and Navigation toggle button in 1187N/A /** show more lines. If a search result set for a file matches more lines 1187N/A * than a given limit (default: 10), only the first <i>limit</i> lines gets 1281N/A * shown as an "[all ...]" link, which can be used to show all matching 1281N/A * lines. The servlet path of this link starts with this prefix. */ 1187N/A /** diff to previous version (link prefix) */ 1281N/A /** show the history for a file (link prefix) */ 1281N/A /** RSS XML Feed of latest changes (link prefix) */ 1281N/A /** Download file (link prefix) */ 1281N/A /** full blown search from main page or top bar (link prefix) */ 1281N/A /** search from cross reference, can lead to direct match (which opens 1187N/A * directly) or to a matches Summary page */ 1187N/A /** opensearch description page */ 1187N/A * Get the string used as prefix. 1281N/A // should be sufficient for now 1281N/A * Get the prefix of the given path. 1281N/A * @param servletPath path to check 1281N/A * @return {@link Prefix#UNKNOWN} if <var>path</var> is {@code null} or has 1281N/A * no or unknown prefix, the corresponding prefix otherwise.