Lines Matching defs:connection

39  * Listens for XML traffic from the BOSH connection manager and parses it into
46 private BOSHConnection connection;
50 * HTTP responses, parse the packets and notifies the connection.
52 * @param connection the corresponding connection for the received packets.
54 public BOSHPacketReader(BOSHConnection connection) {
55 this.connection = connection;
59 * Parse the received packets and notify the corresponding connection.
67 if (connection.sessionID == null) {
68 connection.sessionID = body.getAttribute(BodyQName.create(BOSHConnection.BOSH_URI, "sid"));
70 if (connection.authID == null) {
71 connection.authID = body.getAttribute(BodyQName.create(BOSHConnection.BOSH_URI, "authid"));
84 connection.processPacket(PacketParserUtils.parseMessage(parser));
86 connection.processPacket(PacketParserUtils.parseIQ(parser, connection));
88 connection.processPacket(PacketParserUtils.parsePresence(parser));
93 connection.getSASLAuthentication()
95 connection.processPacket(new Challenge(
98 connection.send(ComposableBody.builder()
105 connection.getServiceName())
107 connection.getSASLAuthentication().authenticated();
108 connection.processPacket(new Success(parser.nextText()));
114 connection.getSASLAuthentication().authenticationFailed();
115 connection.processPacket(failure);
124 if (connection.isConnected()) {
125 connection.notifyConnectionError(e);
149 connection.getSASLAuthentication().setAvailableSASLMethods(
154 connection.getSASLAuthentication().bindingRequired();
157 connection.getSASLAuthentication().sessionsSupported();
159 connection.getAccountManager().setSupportsAccountCreation(