Source code: com/xpn/xwiki/web/RollbackForm.java
1 /**
2 * ===================================================================
3 *
4 * Copyright (c) 2003,2004 Ludovic Dubost, All rights reserved.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Lesser General Public License for more details, published at
15 * http://www.gnu.org/copyleft/lesser.html or in lesser.txt in the
16 * root folder of this distribution.
17
18 * Created by
19 * User: Ludovic Dubost
20 * Date: 2 mai 2005
21 * Time: 20:13:41
22 */
23 package com.xpn.xwiki.web;
24
25 public class RollbackForm extends XWikiForm {
26 private String rev;
27 private String language;
28
29 public void readRequest() {
30 XWikiRequest request = getRequest();
31 setRev(request.getParameter("rev"));
32 setLanguage(request.getParameter("language"));
33 }
34
35 public String getRev() {
36 return rev;
37 }
38
39 public void setRev(String rev) {
40 this.rev = rev;
41 }
42
43 public String getLanguage() {
44 return language;
45 }
46
47 public void setLanguage(String language) {
48 this.language = language;
49 }
50 }