|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.fckeditor.handlers.Command
public class Command
File Browser GET
and POST
commands.
The File Browser sends a specific command for each and every request. This
class is intended to reflect these in an Enum-like manner.
The commands are for GET
:
POST
:
Field Summary | |
---|---|
static Command |
CREATE_FOLDER
GET command CreateFolder |
static Command |
FILE_UPLOAD
POST command FileUpload |
static Command |
GET_FOLDERS
GET command GetFolders |
static Command |
GET_FOLDERS_AND_FILES
GET command GetFoldersAndFiles |
static Command |
QUICK_UPLOAD
POST command QuickUpload |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Compares the specified object with this command for equality. |
static Command |
getCommand(String name)
Returns the command constant with the specified name. |
String |
getName()
Returns the name of this command. |
int |
hashCode()
Returns the hash code value for this command. |
static boolean |
isValidForGet(String name)
Returns true if name represents a valid GET
command constant. |
static boolean |
isValidForPost(String name)
Returns true if name represents a valid POST
command constant. |
String |
toString()
Returns a string representation of this command. |
static Command |
valueOf(String name)
Returns the command constant with the specified name. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Command GET_FOLDERS
GetFolders
public static final Command GET_FOLDERS_AND_FILES
GetFoldersAndFiles
public static final Command CREATE_FOLDER
CreateFolder
public static final Command FILE_UPLOAD
FileUpload
public static final Command QUICK_UPLOAD
QuickUpload
Method Detail |
---|
public String getName()
public static Command valueOf(String name)
name
- the name of the constant to return
IllegalArgumentException
- if this class has no constant with the specified name
NullPointerException
- if name
is null or emptypublic static boolean isValidForGet(String name)
true
if name represents a valid GET
command constant.
name
- the command to check
true
if name represents a valid command, else
false
public static boolean isValidForPost(String name)
true
if name represents a valid POST
command constant.
name
- the command to check
true
if name represents a valid command, else
false
public static Command getCommand(String name)
valueOf(String)
it returns a null instead of throwing an
exception if a command constant was not found.
name
- the name of the constant to return
null
public boolean equals(Object obj)
equals
in class Object
obj
- Object to be compared with this command.
true
if the specified object is equal to this
commandpublic int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
getName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |