|
|||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| ServerContext.java | 0% | 0% | 0% | 0% |
|
||||||||||||||
| 1 | /* | |
| 2 | * ServerContext.java | |
| 3 | * | |
| 4 | * Created on 26. Januar 2004, 11:34 | |
| 5 | */ | |
| 6 | ||
| 7 | package org.jconfig.server; | |
| 8 | ||
| 9 | import java.io.File; | |
| 10 | /** | |
| 11 | * | |
| 12 | * @author mecky | |
| 13 | */ | |
| 14 | public class ServerContext { | |
| 15 | ||
| 16 | private String documentRoot; | |
| 17 | ||
| 18 | 0 | public ServerContext() { |
| 19 | } | |
| 20 | ||
| 21 | /** Getter for property documentRoot. | |
| 22 | * @return Value of property documentRoot. | |
| 23 | * | |
| 24 | */ | |
| 25 | 0 | public String getDocumentRoot() { |
| 26 | 0 | return documentRoot; |
| 27 | } | |
| 28 | ||
| 29 | /** Setter for property documentRoot. | |
| 30 | * @param documentRoot New value of property documentRoot. | |
| 31 | * | |
| 32 | */ | |
| 33 | 0 | public void setDocumentRoot(String documentRoot) { |
| 34 | 0 | if ( !documentRoot.endsWith(File.separator) ) { |
| 35 | 0 | documentRoot += File.separator; |
| 36 | } | |
| 37 | 0 | this.documentRoot = documentRoot; |
| 38 | } | |
| 39 | ||
| 40 | } |
|
||||||||||