|
@@ -49,6 +49,9 @@ public abstract class BaseParser implements Parser {
|
49
|
49
|
/** The ping timer fraction for this parser. */
|
50
|
50
|
private int pingTimerFraction;
|
51
|
51
|
|
|
52
|
+ /** The cached name of the server this parser is connected to. */
|
|
53
|
+ private String serverName;
|
|
54
|
+
|
52
|
55
|
/** The callback manager to use for this parser. */
|
53
|
56
|
private final CallbackManager callbackManager;
|
54
|
57
|
|
|
@@ -155,4 +158,19 @@ public abstract class BaseParser implements Parser {
|
155
|
158
|
joinChannels(new ChannelJoinRequest(channel, key));
|
156
|
159
|
}
|
157
|
160
|
|
|
161
|
+ /** {@inheritDoc} */
|
|
162
|
+ @Override
|
|
163
|
+ public String getServerName() {
|
|
164
|
+ return serverName;
|
|
165
|
+ }
|
|
166
|
+
|
|
167
|
+ /**
|
|
168
|
+ * Sets the name of this parser's server.
|
|
169
|
+ *
|
|
170
|
+ * @param serverName The new name for this parser's server
|
|
171
|
+ */
|
|
172
|
+ protected void setServerName(final String serverName) {
|
|
173
|
+ this.serverName = serverName;
|
|
174
|
+ }
|
|
175
|
+
|
158
|
176
|
}
|