KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > de > jwi > servletutil > RealPath


1 package de.jwi.servletutil;
2
3 /*
4  * jFM - Java Web File Manager
5  *
6  * Copyright (C) 2004 Juergen Weber
7  *
8  * This file is part of jFM.
9  *
10  * jFM is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * jFM is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with jFM; if not, write to the Free Software
22  * Foundation, Inc., 59 Temple Place, Suite 330, Boston
23  */

24
25
26
27
28 /**
29  * @author Jürgen Weber
30  * Source file created on 05.04.2004
31  *
32  * This is just a DTO.
33  */

34 public class RealPath
35 {
36     private boolean isHttpPath;
37     private String JavaDoc realPath;
38     private String JavaDoc context;
39     
40     public static final boolean ISHTTPPATH = true;
41
42     public static final boolean ISFILEPATH = false;
43
44     
45     public String JavaDoc getContext()
46     {
47         return context;
48     }
49     public boolean isHttpPath()
50     {
51         return isHttpPath;
52     }
53     public String JavaDoc getRealPath()
54     {
55         return realPath;
56     }
57     
58     public RealPath(boolean isHttpPath, String JavaDoc realPath, String JavaDoc context)
59     {
60         this.isHttpPath = isHttpPath;
61         this.realPath = realPath;
62         this.context = context;
63     }
64    
65     
66 }
67
Popular Tags