Package org.eclnt.jsfserver.elements
Class ComponentDump
java.lang.Object
org.eclnt.jsfserver.elements.ComponentDump
- All Implemented Interfaces:
Serializable
Class holds a dump of attributes for each component. The dump
is used to store the request data of a previous request in
order not to send unchanged attributed to the client processing.
In addition some other aspects are stored with the dump - because it is the central object that is stored inside the http session context.
In addition some other aspects are stored with the dump - because it is the central object that is stored inside the http session context.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEncodedComponent(String id, UIComponent component) voidaddNewXMLNode(String name) voidaddNewXMLNode(String name, boolean isNewNode) voidaddNewXMLNodeAttribute(String name, String value) voidaddNewXMLNodeText(String text) voidaddPreparedXML(String xml) booleancheckIfControlAttributeWasChangedDuringDecode(String id, String attribute) booleanvoidvoidReturns all content replaces of the whole stack.getDecodedValue(String id, String attribute) longEach request gets assigned a sequence id.booleanTrue if the request was skipped bySkipRenderMgrmanagement.booleanvoidvoidpushIncludePage(String page, String contentReplaceWithDrillDown, String contentReplace, String clientName) voidregisterChangeInControlDuringDecode(String id, String attribute, String value) voidsetRequestSequenceId(long requestId) voidsetRequestWasSkipped(boolean requestWasSkipped) updateIncludedReference(String reference) Transfers a relative reference into an absolute.voidvoidvoidwriteXMLNodeToWriter(Writer writer)
-
Field Details
-
ATTR_CURRENT
- See Also:
-
ATTR_PREVIOUS
- See Also:
-
-
Constructor Details
-
ComponentDump
public ComponentDump()
-
-
Method Details
-
currentRequestIsAutoTriggered
public void currentRequestIsAutoTriggered() -
isAutoTriggered
public boolean isAutoTriggered() -
registerChangeInControlDuringDecode
-
checkIfControlWasChangedDuringDecode
-
checkIfControlAttributeWasChangedDuringDecode
-
getDecodedValue
-
getRequestSequenceId
public long getRequestSequenceId()Each request gets assigned a sequence id. This id is used in the delta management: components keep the sequenceId of the last rendering. In case a component finds that the previous dump is not the one it did render for, then if re-renders its full state without delta manaegment. -
setRequestSequenceId
public void setRequestSequenceId(long requestId) -
getRequestWasSkipped
public boolean getRequestWasSkipped()True if the request was skipped bySkipRenderMgrmanagement. -
setRequestWasSkipped
public void setRequestWasSkipped(boolean requestWasSkipped) -
pushIncludePage
-
getCurrentPageRoot
-
getCurrentPage
-
getCurrentContentReplaceWithDrillDown
Returns all content replaces of the whole stack. -
getCurrentContentReplace
- Returns:
- content replace that is valid for the current page only (no drill down content replaces are considered!).
-
popIncludePage
public void popIncludePage() -
updateIncludedReference
Transfers a relative reference into an absolute. Called by all components that pass references to the client. -
getCurrentXMLNode
-
addNewXMLNode
-
addPreparedXML
-
addNewXMLNode
-
addNewXMLNodeAttribute
-
addNewXMLNodeText
-
closeXMLNode
public void closeXMLNode() -
getCurrentTopXMLNode
-
writeXMLNodeToWriter
- Throws:
IOException
-
writeXMLNodeChangedMarker
public void writeXMLNodeChangedMarker() -
writeSubXMLNodesChangedMarker
public void writeSubXMLNodesChangedMarker() -
getCurrentClientNamePrefix
-
addEncodedComponent
-