|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javawebparts.ajaxparts.taglib.config.AjaxEvent
This class holds configuration information on each event for an Ajax-enabled element that has been defined as implementing Ajax functionality.
Field Summary | |
private java.lang.String |
async
Flag to determine if this request to be asynchronous or not. |
private java.util.HashMap |
errorHandlers
Collection of error handlers for this event. |
private java.lang.String |
form
The form this event operates on, if any. |
private boolean |
frozen
Flag to determine if the configuration frozen. |
private static org.apache.commons.logging.Log |
log
Log instance. |
private java.lang.String |
method
The HTTP method the request handler for this event will use. |
private java.lang.String |
postProc
The postprocessor this event will use. |
private java.lang.String |
preProc
The preprocessor this event will use. |
private AjaxRequestHandler |
requestHandler
The request handler defined for an event. |
private java.util.ArrayList |
responseHandlers
The list of response handlers defined for an event. |
private java.lang.String |
type
The type of an event. |
Constructor Summary | |
AjaxEvent()
|
Method Summary | |
void |
addErrorHandler(AjaxErrorHandler errorHandler)
Puts an error handler in the collection. |
void |
addResponseHandler(AjaxResponseHandler inResponseHandler)
Adds an AjaxResponseHandler instance that will serve as one of the response handlers for this event. |
void |
freeze()
Freezes the configuration of this object. |
java.lang.String |
getAsync()
Returns whether the request is asynchronous or not. |
AjaxErrorHandler |
getErrorHandler(java.lang.String inCode)
Gets an error handler from the collection. |
java.util.HashMap |
getErrorHandlers()
Gets the collection of error handlers for this event. |
java.lang.String |
getForm()
Returns the form this event operates on. |
java.lang.String |
getMethod()
Returns the HTTP method this event's request handler will use. |
java.lang.String |
getPostProc()
Accessor for postProc. |
java.lang.String |
getPreProc()
Accessor for preProc. |
AjaxRequestHandler |
getRequestHandler()
Returns the AjaxRequestHandler instance that serves as the request handler for this event. |
java.util.ArrayList |
getResponseHandlers()
Returns the list of AjaxRequestHandler instances that serves as the response handlers for this event. |
java.lang.String |
getType()
Returns the type of the event. |
boolean |
isFrozen()
Returns true if this onject's config is frozen, false otherwise. |
void |
setAsync(java.lang.String inAsync)
Sets whether this request is asynchronous or not. |
void |
setForm(java.lang.String inForm)
Sets the form this event operates on. |
void |
setMethod(java.lang.String inMethod)
Sets the HTTP method this event's request handler will use. |
void |
setPostProc(java.lang.String inPostProc)
Mutator for postProc. |
void |
setPreProc(java.lang.String inPreProc)
Mutator for preProc. |
void |
setRequestHandler(AjaxRequestHandler inRequestHandler)
Sets the AjaxRequestHandler instance that will serve as the request handler for this event. |
void |
setType(java.lang.String inType)
Sets the type of the event. |
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 AjaxRequestHandler requestHandler
private java.util.ArrayList responseHandlers
private java.lang.String form
private java.lang.String method
private java.lang.String async
private java.util.HashMap errorHandlers
private java.lang.String preProc
private java.lang.String postProc
private boolean frozen
Constructor Detail |
public AjaxEvent()
Method Detail |
public void setPreProc(java.lang.String inPreProc)
inPreProc
- New value for preProc.public java.lang.String getPreProc()
public void setPostProc(java.lang.String inPostProc)
inPostProc
- New value for postProc.public java.lang.String getPostProc()
public void setForm(java.lang.String inForm)
inForm
- The form this event operates on.public java.lang.String getForm()
public void setMethod(java.lang.String inMethod)
inMethod
- The HTTP method this event's request handler will use.public java.lang.String getMethod()
public void setType(java.lang.String inType)
inType
- The type of the eventpublic java.lang.String getType()
public void setAsync(java.lang.String inAsync)
inAsync
- True if request is asynchronous, false if not.public java.lang.String getAsync()
public void setRequestHandler(AjaxRequestHandler inRequestHandler)
inRequestHandler
- AjaxRequestHandler instancepublic AjaxRequestHandler getRequestHandler()
public void addResponseHandler(AjaxResponseHandler inResponseHandler)
inResponseHandler
- AjaxResponseHandler instancepublic java.util.ArrayList getResponseHandlers()
public void addErrorHandler(AjaxErrorHandler errorHandler)
errorHandler
- The error handler to put in the collection.public AjaxErrorHandler getErrorHandler(java.lang.String inCode)
inCode
- The HTTP response code of the error handler to retrieve.
public java.util.HashMap getErrorHandlers()
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 |