Package org.opends.server.api.plugin
Class PluginResult.PostConnect
- java.lang.Object
 - 
- org.opends.server.api.plugin.PluginResult.PostConnect
 
 
- 
- Enclosing class:
 - PluginResult
 
public static final class PluginResult.PostConnect extends Object
Defines a post connect plugin result for client connection processing consisting of either continue, skip further plugins, or stop. 
- 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PluginResult.PostConnectcontinueConnectProcessing()Defines a continue processing post connect plugin result.booleancontinuePluginProcessing()Whether to invoke the rest of the plugins.booleancontinueProcessing()Whether to continue operation processing.static PluginResult.PostConnectdisconnectClient(DisconnectReason disconnectReason, boolean sendDisconnectNotification, LocalizableMessage errorMessage)Defines a new stop processing post connect plugin result.DisconnectReasongetDisconnectReason()The disconnect reason that provides the generic cause for the disconnect.LocalizableMessagegetErrorMessage()Retrieves the error message ifcontinueProcessing()returnedfalse.booleansendDisconnectNotification()Indicates whether to try to provide notification to the client that the connection will be closed.static PluginResult.PostConnectskipFurtherPluginProcessing()Defines a skip further plugin processing post connect plugin result. 
 - 
 
- 
- 
Method Detail
- 
continueConnectProcessing
public static PluginResult.PostConnect continueConnectProcessing()
Defines a continue processing post connect plugin result.- Returns:
 - a continue processing post connect plugin result.
 
 
- 
skipFurtherPluginProcessing
public static PluginResult.PostConnect skipFurtherPluginProcessing()
Defines a skip further plugin processing post connect plugin result.- Returns:
 - a skip further plugin processing post connect plugin result.
 
 
- 
disconnectClient
public static PluginResult.PostConnect disconnectClient(DisconnectReason disconnectReason, boolean sendDisconnectNotification, LocalizableMessage errorMessage)
Defines a new stop processing post connect plugin result.- Parameters:
 disconnectReason- The generic cause for the disconnect.sendDisconnectNotification- Whether to send a disconnect notification to the client.errorMessage- An message explaining why processing should stop for the given entry.- Returns:
 - a new stop processing post connect plugin result.
 
 
- 
continueProcessing
public boolean continueProcessing()
Whether to continue operation processing.- Returns:
 trueif processing should continue orfalseotherwise.
 
- 
continuePluginProcessing
public boolean continuePluginProcessing()
Whether to invoke the rest of the plugins.- Returns:
 trueif the rest of the plugins should be invoked forfalseto skip the rest of the plugins.
 
- 
getErrorMessage
public LocalizableMessage getErrorMessage()
Retrieves the error message ifcontinueProcessing()returnedfalse.- Returns:
 - An error message explaining why processing should stop or 
nullif none is provided. 
 
- 
getDisconnectReason
public DisconnectReason getDisconnectReason()
The disconnect reason that provides the generic cause for the disconnect.- Returns:
 - the generic cause for the disconnect.
 
 
- 
sendDisconnectNotification
public boolean sendDisconnectNotification()
Indicates whether to try to provide notification to the client that the connection will be closed.- Returns:
 trueif notification should be provided orfalseotherwise.
 
 - 
 
 -