|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.tacos.ajax.impl.AjaxWebRequestImpl
Implementation of AjaxWebRequest
.
Field Summary | |
protected boolean |
directUpdate
Whether or not is directly updating components |
protected ResponseBuilder |
responseBuilder
Component update invoker |
protected String |
type
Type of request |
protected List |
updateBlocks
Update blocks |
protected List |
updateComponents
Update components |
protected String |
version
Version of client library request |
Fields inherited from interface net.sf.tacos.ajax.AjaxWebRequest |
AJAX_REQUEST_TYPE, PROTOTYPE_VERSION_HEADER, REQUEST_TYPE_HEADER |
Constructor Summary | |
AjaxWebRequestImpl()
Default constructor |
Method Summary | |
boolean |
containsComponentId(String id)
Checks if this request contains the specified component id. |
ResponseBuilder |
getResponseBuilder()
The class responsible for invoking and rendering the responses received from components. |
String |
getType()
The type of ajax request made, which should be AjaxWebRequest.AJAX_REQUEST_TYPE in all cases for now. |
List |
getUpdateBlocks()
Optional list of html block id's that were specified in the AjaxDirectLink request.
Example: |
List |
getUpdateComponents()
List of unique component id's that will have their contents refreshed on this request. |
String |
getVersion()
The version of the ajax client library that was used to invoke the ajax cycle. |
boolean |
isDirectUpdate()
Whether or not this request expects components to be updated directly, without requiring that the entire page be rendered. |
boolean |
isValidRequest()
For instances where an ajax request link was setup, but the client invocation of that link could not create a valid ajax request for one reason or another. If this is true the response will be rendered back to the client in text/html mode as a normal request. |
void |
setDirectUpdate(boolean directUpdate)
Sets whether or not this request should directly update components. |
void |
setResponseBuilder(ResponseBuilder responseBuilder)
Sets the response builder. |
void |
setType(String type)
Sets the type of ajax request. |
void |
setVersion(String version)
Sets the request version. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected String type
protected String version
protected List updateComponents
protected List updateBlocks
protected boolean directUpdate
protected ResponseBuilder responseBuilder
Constructor Detail |
public AjaxWebRequestImpl()
Method Detail |
public String getType()
AjaxWebRequest.AJAX_REQUEST_TYPE
in all cases for now.
getType
in interface AjaxWebRequest
AjaxWebRequest.REQUEST_TYPE_HEADER
.public void setType(String type)
setType
in interface AjaxWebRequest
type
- public String getVersion()
getVersion
in interface AjaxWebRequest
AjaxWebRequest.PROTOTYPE_VERSION_HEADER
header.public void setVersion(String version)
setVersion
in interface AjaxWebRequest
version
- public boolean isValidRequest()
isValidRequest
in interface AjaxWebRequest
public List getUpdateBlocks()
AjaxDirectLink
request.
Example:
getUpdateBlocks
in interface AjaxWebRequest
public List getUpdateComponents()
getUpdateComponents
in interface AjaxWebRequest
public boolean isDirectUpdate()
isDirectUpdate
in interface AjaxWebRequest
public void setDirectUpdate(boolean directUpdate)
setDirectUpdate
in interface AjaxWebRequest
directUpdate
- public ResponseBuilder getResponseBuilder()
getResponseBuilder
in interface AjaxWebRequest
public void setResponseBuilder(ResponseBuilder responseBuilder)
setResponseBuilder
in interface AjaxWebRequest
public boolean containsComponentId(String id)
containsComponentId
in interface AjaxWebRequest
id
- Id returned by invoking IComponent#getId()
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |