This object contains the set of Payload class definitions for the payload objects delivered when various XIE events are fired.
This payload is delivered when OnAbandonUpdate
events are fired.
Method Summary | ||
public XMLHttpRequest
|
getXhr()
Returns the underlying XHR instance associated with this XIE interaction. |
Method Detail |
public XMLHttpRequest getXhr()
XMLHttpRequest
-
The XHR instance used to execute this XIE interaction
This payload is delivered when OnPrepareContent
and OnInjectContent
events are
fired.
Method Summary | ||
public HTMLElement
|
getControlContainer()
Returns an HTMLElement containing the DOM nodes being updated.
|
|
public string
|
toString()
Returns a string representation of this payload for debugging purposes. |
Method Detail |
public HTMLElement getControlContainer()
HTMLElement
containing the DOM nodes being updated. The container itself and its
parents MUST be considered opaque and MUST NOT be modified by receiving code. Children
of the returned container node may be inspected and modified, but due to the nature of some XIE updates,
the exact structure of those children should not be rigidly relied upon, as some such child nodes may
also be considered opaque, implementation details of WLP. Generic traversal and/or structurally agnostic
DOM operations such as document.getElementById
, document.getElementsByTagName
,
and JavaScript toolkit helpers like CSS-selector-based functions are useful mechanisms for safely and
reliably getting at content nodes in this structure. Other methods of inspection may not return reliable
results in certain Disc execution environments, and should be used with caution, if at all. Modification
of or reliance on the exact nature of the container object itself may result in undefined, unreliable
behavior, with the exception of its fundamental type (HTMLElement
).
See the warnings found in the documentation for the OnPrepareContent
and
OnInjectContent
events for for more information on the potential impact that may come from
modifying the contents of the container node. While useful, such modifications may also be problematic
if not undertaken carefully.HTMLElement
-
An opaque container containing the DOM subtree being updatedpublic string toString()
string
-
A string describing this payload instance
This payload is delivered when OnError
events are fired.
Method Summary | ||
public string
|
getDescription()
Returns the description associated with the causal error, if any. |
|
public Error
|
getError()
If the error condition that spawned the event with which this payload is associated was caused by a JavaScript Error , this method returns the causal error instance.
|
|
public string
|
getMessage()
Returns the message associated with the causal error, if any. |
|
public string
|
toString()
Returns a string representation of this payload for debugging purposes. |
Method Detail |
public string getDescription()
string
-
The error description, if specifiedpublic Error getError()
Error
, this method returns the causal error instance.Error
-
The causal Error instance, if anypublic string getMessage()
string
-
The error message, if specifiedpublic string toString()
string
-
A string describing this payload instanceThis is the base class for all fragment-based XIE event payloads. Only subclasses of this class are delivered by XIE events.
Method Summary | ||
public string
|
getControlContentType()
Returns the content-type of the markup for the control being updated in relation to the event that delivered this payload. |
|
public string
|
getControlLabel()
Returns the label for the control being updated in relation to the event that delivered this payload. |
|
public string
|
getControlMarkup()
Returns the response markup for the control being updated in relation to the event that delivered this payload. |
|
public string
|
getControlType()
Returns the type for the control being updated in relation to the event that delivered this payload. |
|
public string
|
toString()
Returns a string representation of this payload for debugging purposes. |
Method Detail |
public string getControlContentType()
string
-
The content-type of the markup for currently updating controlpublic string getControlLabel()
string
-
The label of the currently updating controlpublic string getControlMarkup()
string
-
The response markup for the currently updating controlpublic string getControlType()
string
-
The type of the currently updating controlpublic string toString()
string
-
A string describing this payload instance
A simple enumeration of the possible values that may be returned from getControlType
Field Summary | |
public static string
|
BOOK
The "book" control type. |
public static string
|
PAGE
The "page" control type. |
public static string
|
PORTLET
The "portlet" control type. |
Field Detail |
public static string BOOK
public static string PAGE
public static string PORTLET
This payload is delivered when OnPrepareMarkup
events are fired.
Method Summary | ||
public void
|
setControlMarkup(markup)
Sets the markup for this control. |
Method Detail |
public void setControlMarkup(markup)
getControlMarkup
. See the warnings specified in the documentation for
bea.wlp.disc.xie.Events.OnPrepareMarkup
relating to the capability introduced by this
method.string markup
- The replacement for this control's existing response markup
This payload allows custom request headers to be set for outbound XIE requests and is delivered when
OnPrepareUpdate
requests are fired.
Method Summary | ||
public void
|
setRequestHeader(name, value)
Sets a custom request header for the outbound XIE interaction request which this payload is associated. |
Method Detail |
public void setRequestHeader(name, value)
string name
- The name of the request headerstring value
- The value of the request header
This payload is delivered when OnRedirectUpdate
events are fired.
Method Summary | ||
public string
|
getRedirectUri()
Returns the URI to which the server has specified the client redirect. |
|
public string
|
toString()
Returns a string representation of this payload for debugging purposes. |
Method Detail |
public string getRedirectUri()
string
-
The redirect URIpublic string toString()
string
-
A string describing this payload instance
This is the base class for all non-error XIE payloads delivered for a given interaction after the server's
response has been received. Instances of exactly this class are delivered when both
OnHandleUpdate
and OnCompleteUpdate
events are fired.
Method Summary |
Method Detail |
This is the base class for all (non-error) payloads delivered by XIE events.
Method Summary | ||
public string
|
getRequestHeader(name)
Returns a request header, by name, for the XIE interaction that spawned this event. |
|
public string
|
getRequestUri()
Returns the request URI for the XIE interaction that spawned this event. |
|
public object
|
getUpdateAttribute(name)
Gets a custom attribute within the scope of the current interaction (aka 'update'). |
|
public void
|
setUpdateAttribute(name, [value])
Sets a custom attribute within the scope of the current interaction (aka 'update'). |
|
public string
|
toString()
Returns a string representation of this payload for debugging purposes. |
Method Detail |
public string getRequestHeader(name)
string name
- The name of the request header to returnstring
-
The value of the named request header, if foundpublic string getRequestUri()
string
-
The appropriate request URIpublic object getUpdateAttribute(name)
string name
- The name of the attribute to returnobject
-
The value of the named attributepublic void setUpdateAttribute(name, [value])
null
value.string name
- The name of the atribute to setobject [value]
- The value of the attribute to set, or null or undefined to clear an existing valuepublic string toString()
string
-
A string describing this payload instance
Oracle Fusion Middleware Disc API Reference for Oracle WebLogic Portal
10g Release 3 (10.3.2)
E14257-01
Copyright © 2010, Oracle. All rights reserved.