| | |
| | | |
| | | |
| | | |
| | | /** |
| | | * A pre-operation plugin result instance that indicates all |
| | | * processing was successful. |
| | | */ |
| | | public static final PreOperationPluginResult SUCCESS = |
| | | new PreOperationPluginResult(); |
| | | |
| | | |
| | | |
| | | // Indicates whether any further pre-operation plugins should be |
| | | // invoked for this operation. |
| | | private boolean continuePluginProcessing; |
| | | private final boolean continuePluginProcessing; |
| | | |
| | | // Indicates whether the pre-operation plugin terminated the client |
| | | // connection. |
| | | private boolean connectionTerminated; |
| | | private final boolean connectionTerminated; |
| | | |
| | | // Indicates whether the server should immediately send the response |
| | | // from this plugin to the client with no further processing. |
| | | private boolean sendResponseImmediately; |
| | | private final boolean sendResponseImmediately; |
| | | |
| | | |
| | | |
| | |
| | | * and that the post-operation plugin processing should not be |
| | | * skipped. |
| | | */ |
| | | public PreOperationPluginResult() |
| | | private PreOperationPluginResult() |
| | | { |
| | | assert debugConstructor(CLASS_NAME); |
| | | |
| | | this.connectionTerminated = false; |
| | | this.continuePluginProcessing = true; |
| | | this.sendResponseImmediately = false; |
| | | this(false, true, false); |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | |
| | | /** |
| | | * Specifies whether the post-response plugin terminated the client |
| | | * connection. |
| | | * |
| | | * @param connectionTerminated Specifies whether the post-response |
| | | * plugin terminated the client |
| | | * connection. |
| | | */ |
| | | public void setConnectionTerminated(boolean connectionTerminated) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "setConnectionTerminated", |
| | | String.valueOf(connectionTerminated)); |
| | | |
| | | this.connectionTerminated = connectionTerminated; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Indicates whether any further post-response plugins should be |
| | | * invoked for this operation. |
| | | * |
| | |
| | | |
| | | |
| | | /** |
| | | * Specifies whether any further post-response plugins should be |
| | | * invoked for this operation. |
| | | * |
| | | * @param continuePluginProcessing Specifies whether any further |
| | | * post-response plugins should be |
| | | * invoked for this operation. |
| | | */ |
| | | public void setContinuePluginProcessing( |
| | | boolean continuePluginProcessing) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "setContinuePluginProcessing", |
| | | String.valueOf(continuePluginProcessing)); |
| | | |
| | | this.continuePluginProcessing = continuePluginProcessing; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Indicates whether the server should send the response set by this |
| | | * plugin to the client immediately with no further processing on |
| | | * the operation. |
| | |
| | | |
| | | |
| | | /** |
| | | * Specifies whether the server should send the response set by this |
| | | * plugin to the client immediately with no further processing on |
| | | * the operation. |
| | | * |
| | | * @param sendResponseImmediately Indicates whether the server |
| | | * should send the response set by |
| | | * this plugin to the client |
| | | * immediately with no further |
| | | * processing on the operation. |
| | | */ |
| | | public void setSendResponseImmediately( |
| | | boolean sendResponseImmediately) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "setSendResponseImmediately", |
| | | String.valueOf(sendResponseImmediately)); |
| | | |
| | | this.sendResponseImmediately = sendResponseImmediately; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Retrieves a string representation of this post-response plugin |
| | | * result. |
| | | * |