|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javawebparts.ajaxparts.taglib.config.AjaxRequestHandler
This class holds configuration information on a request handler defined for a given event of an Ajax-enabled element.
Field Summary | |
private boolean |
frozen
Flag: Is the configuration frozen? |
private java.lang.String |
httpMethod
The HTTP method for a handler. |
private boolean |
jsonp
The jsonp parameter to append to the query string, if any. |
private static org.apache.commons.logging.Log |
log
Log instance. |
private java.lang.String |
parameter
The parameter for a handler. |
private java.lang.String |
target
The target a handler submits its request to if it is a request handler |
private java.lang.String |
type
The type of a handler. |
Constructor Summary | |
AjaxRequestHandler()
|
Method Summary | |
void |
freeze()
Freezes the configuration of this object. |
java.lang.String |
getHttpMethod()
Returns the HTTP method of this event handler. |
boolean |
getJsonp()
Returns the value of the jsonp attribute, or false if not explicitly set. |
java.lang.String |
getParameter()
Returns the handler-specific parameter string for this handler. |
java.lang.String |
getTarget()
Returns the target (URL) of this handler. |
java.lang.String |
getType()
Returns the type of this event handler. |
boolean |
isFrozen()
Returns true if this onject's config is frozen, false otherwise. |
void |
setHttpMethod(java.lang.String inHttpMethod)
Sets the method of this event handler. |
void |
setJsonp(boolean inJsonp)
Sets the jsonp value of this handler. |
void |
setParameter(java.lang.String inParameter)
Sets the handler-specific parameter string for this handler. |
void |
setTarget(java.lang.String inTarget)
Sets the target (URL) of this handler. |
void |
setType(java.lang.String inType)
Sets the type of this event handler. |
java.lang.String |
toString()
Overriden toString method. |
private boolean |
validate()
This method is called when the object is frozen to ensure it is configured in a legal way. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static org.apache.commons.logging.Log log
private java.lang.String type
private java.lang.String target
private java.lang.String parameter
private java.lang.String httpMethod
private boolean frozen
private boolean jsonp
Constructor Detail |
public AjaxRequestHandler()
Method Detail |
public void setHttpMethod(java.lang.String inHttpMethod)
inHttpMethod
- The HTTP method of this event handlerpublic java.lang.String getHttpMethod()
public void setType(java.lang.String inType)
inType
- The type of this event handlerpublic java.lang.String getType()
public void setTarget(java.lang.String inTarget)
inTarget
- The URL this handler submits topublic java.lang.String getTarget()
public void setJsonp(boolean inJsonp)
public boolean getJsonp()
public void setParameter(java.lang.String inParameter)
inParameter
- The parameter string for this handlerpublic java.lang.String getParameter()
public void freeze()
public boolean isFrozen()
private boolean validate()
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 |