public class StrutsBackgroundProcess extends Object implements BackgroundProcess, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
done |
protected Exception |
exception |
protected ActionInvocation |
invocation |
protected String |
result |
| Constructor and Description |
|---|
StrutsBackgroundProcess(ActionInvocation invocation,
String threadName,
int threadPriority)
Constructs a background process
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterInvocation()
Called after the background thread determines the result code
from the ActionInvocation, but before the background thread is
marked as done.
|
protected void |
beforeInvocation()
Called before the background thread determines the result code
from the ActionInvocation.
|
Object |
getAction()
Retrieves the action.
|
Exception |
getException()
Gets the exception if any was thrown during the execution of the background process.
|
ActionInvocation |
getInvocation()
Retrieves the action invocation.
|
String |
getResult()
Gets the result of the background process.
|
boolean |
isDone()
Returns the status of the background process.
|
BackgroundProcess |
prepare() |
void |
run() |
String |
toString() |
protected transient ActionInvocation invocation
protected transient Exception exception
protected String result
protected boolean done
public StrutsBackgroundProcess(ActionInvocation invocation, String threadName, int threadPriority)
invocation - The action invocationthreadName - The name of background threadthreadPriority - The priority of background threadpublic BackgroundProcess prepare()
prepare in interface BackgroundProcessprotected void beforeInvocation()
throws Exception
Exception - any exception thrown will be thrown, in turn, by the ExecuteAndWaitInterceptorprotected void afterInvocation()
throws Exception
Exception - any exception thrown will be thrown, in turn, by the ExecuteAndWaitInterceptorpublic Object getAction()
getAction in interface BackgroundProcesspublic ActionInvocation getInvocation()
getInvocation in interface BackgroundProcesspublic String getResult()
getResult in interface BackgroundProcesspublic Exception getException()
getException in interface BackgroundProcesspublic boolean isDone()
isDone in interface BackgroundProcessCopyright © 2000–2025 Apache Software Foundation. All rights reserved.