|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.fckeditor.response.XmlResponse
public class XmlResponse
Creates an XML response for every GET
request of the Connector
servlet. This class maps directly to the XML layout descibed here.
Field Summary | |
---|---|
static int |
EN_ALREADY_EXISTS
Error number ALREADY EXISTS |
static int |
EN_ERROR
Error number ERROR |
static int |
EN_INVALID_FOLDER_NAME
Error number INVALID FOLDER NAME |
static int |
EN_OK
Error number OK |
static int |
EN_SECURITY_ERROR
Error number SECURITY ERROR |
static int |
EN_UKNOWN
Error number UNKNOWN ERROR |
Constructor Summary | |
---|---|
XmlResponse(CommandHandler command,
ResourceTypeHandler resourceType,
java.lang.String currentFolder,
java.lang.String constructedUrl)
Use this contructor if want to respond a positive message. |
|
XmlResponse(int number)
Use this contructor if want to respond a negative/error message only. |
|
XmlResponse(int number,
java.lang.String text)
Use this contructor if want to respond a negative/error message with custom text. |
Method Summary | |
---|---|
void |
setError(int number)
Sets an error number. |
void |
setError(int number,
java.lang.String text)
Sets an error number with a custom message. |
void |
setFiles(java.io.File dir)
Lists all files in the given dir as XML tags. |
void |
setFolders(java.io.File dir)
Lists all folders in the given dir as XML tags. |
void |
setFoldersAndFiles(java.io.File dir)
Lists all folders and files in the given dir as XML tags. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int EN_OK
public static final int EN_ERROR
public static final int EN_ALREADY_EXISTS
public static final int EN_INVALID_FOLDER_NAME
public static final int EN_SECURITY_ERROR
public static final int EN_UKNOWN
Constructor Detail |
---|
public XmlResponse(CommandHandler command, ResourceTypeHandler resourceType, java.lang.String currentFolder, java.lang.String constructedUrl)
command
- resourceType
- currentFolder
- constructedUrl
- public XmlResponse(int number, java.lang.String text)
number
- text
- public XmlResponse(int number)
number
- Method Detail |
---|
public void setError(int number, java.lang.String text)
number
- text
- public void setError(int number)
number
- public void setFolders(java.io.File dir)
dir
- public void setFiles(java.io.File dir)
dir
- public void setFoldersAndFiles(java.io.File dir)
dir
- public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |