public class AbortBySendRedirect extends java.lang.Object implements AbortingReason
Constructor and Description |
---|
AbortBySendRedirect(java.lang.String url,
java.lang.String target)
Constructs an aborting reason for send-redirect.
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
Called to process this aborting reason.
|
void |
finish()
Called after all processing is done, and just before deactivating
the execution.
|
AuResponse |
getResponse()
Returns the response representing this aborting reason.
|
boolean |
isAborting()
Returns whether to abort the execution.
|
public AbortBySendRedirect(java.lang.String url, java.lang.String target)
url
- the target URL, never null.target
- the target browser window, or null to use the current one.public boolean isAborting()
AbortingReason
isAborting
in interface AbortingReason
public void execute()
AbortingReason
UiEngine
processes all events,
before generating the responses to the client.
Note: it is always called even if AbortingReason.isAborting()
returns false.
Note: AbortingReason.execute()
is called before generating
the responses to the client, while AbortingReason.getResponse()
is called
when generating the responses.
The calling sequence: AbortingReason.execute()
, AbortingReason.getResponse()
,
and then AbortingReason.finish()
.
execute
in interface AbortingReason
AbortingReason.getResponse()
public AuResponse getResponse()
AbortingReason
UiEngine
generates the responses to
client. Actually, it is called as the last step after
generating all other responses. In other words, the response
returned by this method, if any, will become the last response.
Note: don't modify the components in AbortingReason.getResponse()
, since
it is called after all other responses are generated.
Note: it is always called even if AbortingReason.isAborting()
returns false.
Note: AbortingReason.execute()
is called before generating
the responses to the client, while AbortingReason.getResponse()
is called
when generating the responses.
getResponse
in interface AbortingReason
AbortingReason.execute()
public void finish()
AbortingReason
Note: it is always called even if AbortingReason.isAborting()
returns false.
The calling sequence: AbortingReason.execute()
, AbortingReason.getResponse()
,
and then AbortingReason.finish()
.
finish
in interface AbortingReason
Copyright © 2005-2021 Potix Corporation. All Rights Reserved.