View Javadoc

1   /*
2    * $Id: Mapping.java 454251 2006-10-09 02:10:57Z husted $
3    *
4    * Copyright 2006 The Apache Software Foundation.
5    *
6    * Licensed under the Apache License, Version 2.0 (the "License");
7    * you may not use this file except in compliance with the License.
8    * You may obtain a copy of the License at
9    *
10   *      http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing, software
13   * distributed under the License is distributed on an "AS IS" BASIS,
14   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   * See the License for the specific language governing permissions and
16   * limitations under the License.
17   */
18  package org.apache.struts2.quickstart;
19  
20  /***
21   * Used for mapping configuration for the QuickStart application.
22   *
23   */
24  public class Mapping {
25      String path;
26      String dir;
27  
28      public Mapping(String path, String dir) {
29          this.path = path;
30          this.dir = dir;
31      }
32  
33      public Mapping() {
34      }
35  
36      public String getPath() {
37          return path;
38      }
39  
40      public void setPath(String path) {
41          this.path = path;
42      }
43  
44      public String getDir() {
45          return dir;
46      }
47  
48      public void setDir(String dir) {
49          this.dir = dir;
50      }
51  }