public abstract class CapabilityNegotiationResponseEventBase extends ServerMessageEventBase implements CapabilityNegotiationResponseEvent
| Modifier | Constructor and Description |
|---|---|
protected |
CapabilityNegotiationResponseEventBase(@NonNull Client client,
@NonNull ServerMessage sourceMessage,
boolean negotiating)
Constructs the event.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEndingNegotiation()
Gets if negotiation should end after this event fires, which can be
changed via this event.
|
boolean |
isNegotiating()
Gets if this event is fired during capability negotiation.
|
void |
setEndingNegotiation(boolean endNegotiation)
Sets if negotiation should end after this event fires.
|
protected @NonNull ToStringer |
toStringer()
Generates a partial
ToStringer for the command. |
getSourcegetClient, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetClientgetTag, getTag, getTagsprotected CapabilityNegotiationResponseEventBase(@NonNull Client client, @NonNull ServerMessage sourceMessage, boolean negotiating)
client - the clientsourceMessage - source messagenegotiating - if we are negotiating right nowpublic final boolean isEndingNegotiation()
CapabilityNegotiationResponseEventisEndingNegotiation in interface CapabilityNegotiationResponseEventCapabilityNegotiationResponseEvent.setEndingNegotiation(boolean)public final boolean isNegotiating()
CapabilityNegotiationResponseEventisNegotiating in interface CapabilityNegotiationResponseEventpublic final void setEndingNegotiation(boolean endNegotiation)
CapabilityNegotiationResponseEventCapabilityNegotiationResponseEvent.isNegotiating() is true,
the connection will not complete.setEndingNegotiation in interface CapabilityNegotiationResponseEventendNegotiation - true if negotiation should end, false if notprotected @NonNull ToStringer toStringer()
ClientEventBaseToStringer for the command.toStringer in class ServerMessageEventBaseCopyright © 2013–2021 Kitteh. All rights reserved.