Changeset 2151 for FCKeditor.Java/trunk/java-core/src/main/java/net/fckeditor/response/XmlResponse.java
- Timestamp:
- 2008-07-03 00:03:15 (6 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor.Java/trunk/java-core/src/main/java/net/fckeditor/response/XmlResponse.java
r1699 r2151 44 44 45 45 /** 46 * static error objects won't probably provided due to performance reasons of47 * Document instance creation48 * 49 * TODO document me!50 * @ author mosipov51 * 46 * Creates an XML response for every <code>GET</code> request of the Connector 47 * servlet. This class maps directly to the XML layout descibed <a 48 * href="http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Server_Side_Integration#The_Commands">here</a>. 49 * 50 * @version $Id$ 51 * 52 52 */ 53 53 public class XmlResponse { … … 77 77 78 78 /** 79 * Use this contructor if want to respond a positive message. 79 80 * 80 81 * @param command … … 109 110 110 111 /** 111 * TODO document me! 112 * 113 * Use this contructor if want to respond a negative/error message with 114 * custom text. 115 * 112 116 * @param number 113 117 * @param text … … 128 132 } 129 133 130 /*** 131 * TODO document me! 134 /** 135 * Use this contructor if want to respond a negative/error message only. 136 * 132 137 * @param number 133 138 */ … … 136 141 } 137 142 143 /** 144 * Sets an error number with a custom message. 145 * 146 * @param number 147 * @param text 148 */ 138 149 public void setError(int number, String text) { 139 150 … … 149 160 } 150 161 162 /** 163 * Sets an error number. 164 * 165 * @param number 166 */ 151 167 public void setError(int number) { 152 168 setError(number, null); 153 169 } 154 170 171 /** 172 * Lists all folders in the given dir as XML tags. 173 * @param dir 174 */ 155 175 public void setFolders(File dir) { 156 176 … … 171 191 } 172 192 193 /** 194 * Lists all files in the given dir as XML tags. 195 * 196 * @param dir 197 */ 173 198 public void setFiles(File dir) { 174 199 … … 195 220 } 196 221 222 /** 223 * Lists all folders and files in the given dir as XML tags. 224 * 225 * @param dir 226 */ 197 227 public void setFoldersAndFiles(File dir) { 198 228 setFolders(dir);