Package org.opends.server.api.plugin
Record Class PluginResult.PostConnect
java.lang.Object
java.lang.Record
org.opends.server.api.plugin.PluginResult.PostConnect
- Record Components:
continueProcessing- Whether to continue operation processingcontinuePluginProcessing- Whether to invoke the rest of the pluginserrorMessage- A message explaining why processing should stopdisconnectReason- The generic cause for the disconnectsendDisconnectNotification- Whether to send a disconnect notification to the client
- Enclosing class:
- PluginResult
public static record PluginResult.PostConnect(boolean continueProcessing, boolean continuePluginProcessing, LocalizableMessage errorMessage, DisconnectReason disconnectReason, boolean sendDisconnectNotification)
extends Record
Defines a post connect plugin result for client connection processing consisting of either continue, skip further
plugins, or stop.
-
Constructor Summary
ConstructorsConstructorDescriptionPostConnect(boolean continueProcessing, boolean continuePluginProcessing, LocalizableMessage errorMessage, DisconnectReason disconnectReason, boolean sendDisconnectNotification) Creates an instance of aPostConnectrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic PluginResult.PostConnectDefines a continue processing post connect plugin result.booleanReturns the value of thecontinuePluginProcessingrecord component.booleanReturns the value of thecontinueProcessingrecord component.static PluginResult.PostConnectdisconnectClient(DisconnectReason disconnectReason, boolean sendDisconnectNotification, LocalizableMessage errorMessage) Defines a new stop processing post connect plugin result.Returns the value of thedisconnectReasonrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorMessagerecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thesendDisconnectNotificationrecord component.static PluginResult.PostConnectDefines a skip further plugin processing post connect plugin result.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PostConnect
public PostConnect(boolean continueProcessing, boolean continuePluginProcessing, LocalizableMessage errorMessage, DisconnectReason disconnectReason, boolean sendDisconnectNotification) Creates an instance of aPostConnectrecord class.- Parameters:
continueProcessing- the value for thecontinueProcessingrecord componentcontinuePluginProcessing- the value for thecontinuePluginProcessingrecord componenterrorMessage- the value for theerrorMessagerecord componentdisconnectReason- the value for thedisconnectReasonrecord componentsendDisconnectNotification- the value for thesendDisconnectNotificationrecord component
-
-
Method Details
-
continueConnectProcessing
Defines a continue processing post connect plugin result.- Returns:
- a continue processing post connect plugin result.
-
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- A message explaining why processing should stop for the given entry.- Returns:
- a new stop processing post connect plugin result.
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
continueProcessing
public boolean continueProcessing()Returns the value of thecontinueProcessingrecord component.- Returns:
- the value of the
continueProcessingrecord component
-
continuePluginProcessing
public boolean continuePluginProcessing()Returns the value of thecontinuePluginProcessingrecord component.- Returns:
- the value of the
continuePluginProcessingrecord component
-
errorMessage
Returns the value of theerrorMessagerecord component.- Returns:
- the value of the
errorMessagerecord component
-
disconnectReason
Returns the value of thedisconnectReasonrecord component.- Returns:
- the value of the
disconnectReasonrecord component
-
sendDisconnectNotification
public boolean sendDisconnectNotification()Returns the value of thesendDisconnectNotificationrecord component.- Returns:
- the value of the
sendDisconnectNotificationrecord component
-