public abstract class CapabilityNegotiationResponseEventBase extends ServerMessageEventBase implements CapabilityNegotiationResponseEvent
| Modifier | Constructor and Description |
|---|---|
protected |
CapabilityNegotiationResponseEventBase(Client client,
List<ServerMessage> originalMessages,
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 ToStringer |
toStringer()
Generates a partial
ToStringer for the command. |
getOriginalMessagesgetClient, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetOriginalMessagesgetClientprotected CapabilityNegotiationResponseEventBase(@Nonnull Client client, @Nonnull List<ServerMessage> originalMessages, boolean negotiating)
client - the clientoriginalMessages - original messagesnegotiating - 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 not@Nonnull protected ToStringer toStringer()
ClientEventBaseToStringer for the command.toStringer in class ServerMessageEventBaseCopyright © 2013–2019 Kitteh. All rights reserved.