|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.fckeditor.handlers.CommandHandler
public class CommandHandler
Handler for GET
and POST
commands.
Field Summary | |
---|---|
static CommandHandler |
CREATE_FOLDER
|
static CommandHandler |
FILE_UPLOAD
|
static CommandHandler |
GET_FOLDERS
|
static CommandHandler |
GET_FOLDERS_AND_FILES
|
static CommandHandler |
QUICK_UPLOAD
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
static CommandHandler |
getCommand(java.lang.String name)
A wrapper for valueOf(String) . |
java.lang.String |
getName()
Getter for the name. |
int |
hashCode()
|
static boolean |
isValidForGet(java.lang.String name)
Checks if a specfied string represents a valid GET
command. |
static boolean |
isValidForPost(java.lang.String name)
Checks if a specfied string represents a valid POST
command. |
java.lang.String |
toString()
|
static CommandHandler |
valueOf(java.lang.String name)
Getter for an CommandHandler of a specified string. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final CommandHandler GET_FOLDERS
public static final CommandHandler GET_FOLDERS_AND_FILES
public static final CommandHandler CREATE_FOLDER
public static final CommandHandler FILE_UPLOAD
public static final CommandHandler QUICK_UPLOAD
Method Detail |
---|
public java.lang.String getName()
public static CommandHandler valueOf(java.lang.String name) throws java.lang.IllegalArgumentException
CommandHandler
of a specified string.
name
- A command to retrieve
CommandHandler
object holding the value represented by
the string argument.
java.lang.IllegalArgumentException
- If 'name' is null
, empty, or does not exist.public static boolean isValidForGet(java.lang.String name)
GET
command.
name
- A command string to check
true
if the string representation is valid else
false
.public static boolean isValidForPost(java.lang.String name)
POST
command.
name
- A command string to check
true
if the string representation is valid else
false
.public static CommandHandler getCommand(java.lang.String name)
valueOf(String)
. It returns null instead of
throwing an exception.
name
- A command string to check
CommandHandler
object holding the value represented by
the string argument, or null
.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
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 |