/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* See LICENSE.txt included in this distribution for the specific
* language governing permissions and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at LICENSE.txt.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2009 - 2011 Jens Elkner.
*/
/**
* A simple container to store the data required to generated a view of diffs
* for a certain versioned file.
* NOTE:
* For HTML revision escaping is usually not needed, but filenames should be.
* For URI's both, filenames and revisions, should be encoded.
*
* @author Jens Elkner
* @version $Revision$
*/
public class DiffData {
/** request URI, that has been used to fetch this data, i.e. something like
* E.g.: /source/diff/opengrok/src/org/opensolaris/opengrok/web/PageConfig.java */
/** the genre of the requested diff */
/** the orignal and new revision container */
/** file part of the URI request parameter 'r1' (decoded).
* E.g. /opengrok/src/org/opensolaris/opengrok/web/PageConfig.java */
/** file part of the URI request parameter 'r2' (decoded).
* E.g. /opengrok/src/org/opensolaris/opengrok/web/PageConfig.java */
/** revision part of the URI request parameter 'r1' (decoded).
* E.g. 1374:a34d0ff8421d */
/** revision part of the URI request parameter 'r2' (decoded).
* E.g. 1402:4bad063b48d3 */
/** the URI encoded request parameter 'r1' ({@link #fp1}@{@link #rev1}).
* E.g. /opengrok/src/org/opensolaris/opengrok/web/PageConfig.java@1374:a34d0ff8421d */
/** the URI encoded request parameter 'r2' ({@link #fp2}@{@link #rev2}).
* E.g. /opengrok/src/org/opensolaris/opengrok/web/PageConfig.java@1402:4bad063b48d3 */
/** the content of the original {@link #rev1} and new {@link #rev2} file.
* Each entry in file[n] represents exactly one line of source. */
/** html encoded error message to show, if diffs are not available */
/** If {@code true} a full diff is desired (request parameter {@code full=1} */
public boolean full;
/** How should the data be displayed (request parameter {@code format} */
}