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 BackgroundProcess
protected 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 BackgroundProcess
public ActionInvocation getInvocation()
getInvocation
in interface BackgroundProcess
public String getResult()
getResult
in interface BackgroundProcess
public Exception getException()
getException
in interface BackgroundProcess
public boolean isDone()
isDone
in interface BackgroundProcess
Copyright © 2000–2024 Apache Software Foundation. All rights reserved.