com.webobjects.woextensions
Class WOLongResponsePage
java.lang.Object
com.webobjects.appserver.WOElement
com.webobjects.appserver.WOComponent
com.webobjects.woextensions.WOLongResponsePage
- All Implemented Interfaces:
- WOActionResults, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions, NSValidation, Serializable, Cloneable, Runnable
public abstract class WOLongResponsePage
- extends WOComponent
- implements Runnable
- See Also:
- Serialized Form
Methods inherited from class com.webobjects.appserver.WOComponent |
application, awake, baseURL, bindingKeys, canAccessFieldsDirectly, canGetValueForBinding, canSetValueForBinding, clone, context, debugString, descriptionForResponse, ensureAwakeInContext, frameworkName, generateResponse, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasBinding, hasSession, isCachingEnabled, isEventLoggingEnabled, isStateless, logString, name, pageWithName, parent, path, pathURL, performParentAction, pullValuesFromParent, pushValuesToParent, reset, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, setVariableValueForName, sleep, synchronizesVariablesWithBindings, takeValueForKey, takeValueForKeyPath, takeValuesFromRequest, template, templateWithHTMLString, templateWithHTMLString, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForBooleanBinding, valueForIntegerBinding, valueForKey, valueForKeyPath, valueForNSArrayBindings, valueForNSDictionaryBindings, valueForNumberBinding, valueForStringBinding, variableValueForName, variableWithName |
WOLongResponsePage
public WOLongResponsePage(WOContext aContext)
status
public Object status()
setStatus
public void setStatus(Object anObject)
setRefreshInterval
public void setRefreshInterval(double interval)
refreshInterval
public double refreshInterval()
result
public Object result()
setResult
public void setResult(Object anObject)
run
public void run()
- Specified by:
run
in interface Runnable
appendToResponse
public void appendToResponse(WOResponse aResponse,
WOContext aContext)
- Description copied from class:
WOComponent
- Forces the component to generate its interface and output it in the response's content. Component objects associated with a response receive this message during the last phase of the component request handling, or when returned by a direct action method. In the append-to-response phase,
application objects (particularly the response page instance itself) generate the HTML content of the page. WOComponent's default implementation of this method invokes the
appendToResponse
method on the root WOElement object of the component template, which in turn invokes
appendToResponse
. Subclasses of WOComponent can override this method to replace or supplement the default behavior with custom logic.
- Overrides:
appendToResponse
in class WOComponent
- Parameters:
aResponse
- the HTTP response that an application returns to a Web server to complete a cycle of the request-response loopaContext
- context of a transaction- See Also:
WOComponent.invokeAction(WORequest aRequest, WOContext aContext)
,
WOComponent.takeValuesFromRequest(WORequest aRequest, WOContext aContext)
pageForException
public WOComponent pageForException(Exception exception)
refreshPageForStatus
public WOComponent refreshPageForStatus(Object aStatus)
pageForResult
public WOComponent pageForResult(Object aResult)
cancelPageForStatus
public WOComponent cancelPageForStatus(Object aStatus)
invokeAction
public WOActionResults invokeAction(WORequest aRequest,
WOContext aContext)
- Description copied from class:
WOComponent
- Tells the component to execute any action specified in the request. It is systematically called during the middle phase of the component request handling. All WOComponent objects associated with a request page invoke this method. In this middle phase, the
invokeAction
method is
propagated through the WOElement objects of the page. The dynamic element on which the user has acted (by, for example, clicking a button) responds by triggering the method in the request component that is bound to the action. WOComponent's default implementation of this method invokes
invokeAction
on the root WOElement object of the component template.
- Overrides:
invokeAction
in class WOComponent
- Parameters:
aRequest
- the requestaContext
- context of the transaction
- Returns:
- a WOActionResults containing the result of the request
- See Also:
WOComponent.appendToResponse(WOResponse aResponse, WOContext aContext)
,
WOComponent.takeValuesFromRequest(WORequest aRequest, WOContext aContext)
isCancelled
public boolean isCancelled()
setCancelled
public void setCancelled(boolean aBool)
refresh
public WOComponent refresh()
cancel
public WOComponent cancel()
performAction
public abstract Object performAction()
Copyright © 2000-2008 Apple Inc.