1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2025-12-05 20:51:07 +01:00

s/XMPPConnection/TCPConnection

This commit is contained in:
Florian Schmaus 2014-03-02 15:23:54 +01:00
parent 07649cc758
commit 84a3fd7bd9
25 changed files with 114 additions and 114 deletions

View file

@ -54,7 +54,7 @@
<%@ include file="global.jsp" %>
<%
// If we don't have a valid connection then proceed to login
XMPPConnection conn = (XMPPConnection) session.getAttribute("connection");
TCPConnection conn = (XMPPConnection) session.getAttribute("connection");
if (conn == null || !conn.isConnected()) {
response.sendRedirect("login.jsp");
return;

View file

@ -51,7 +51,7 @@
<%@ include file="global.jsp" %>
<%
// If we already got a connection then proceed to view the roster
XMPPConnection conn = (XMPPConnection) session.getAttribute("connection");
TCPConnection conn = (XMPPConnection) session.getAttribute("connection");
if (conn != null && conn.isConnected()) {
response.sendRedirect("viewRoster.jsp");
return;
@ -69,13 +69,13 @@
// Try to connect to the server
if (error == null && host != null && port != null) {
XMPPConnection.DEBUG_ENABLED = "Yes".equals(debug);
TCPConnection.DEBUG_ENABLED = "Yes".equals(debug);
try {
if ("No".equals(ssl)) {
conn = new XMPPConnection(host);
conn = new TCPConnection(host);
}
else {
conn = new XMPPConnection(host);
conn = new TCPConnection(host);
}
conn.connect();
// Add listener for messages (offline messages will be listen here)

View file

@ -54,7 +54,7 @@
<%@ include file="global.jsp" %>
<%
// If we don't have a valid connection then proceed to login
XMPPConnection conn = (XMPPConnection) session.getAttribute("connection");
TCPConnection conn = (XMPPConnection) session.getAttribute("connection");
if (conn == null || !conn.isConnected()) {
response.sendRedirect("login.jsp");
return;

View file

@ -54,7 +54,7 @@
<%@ include file="global.jsp" %>
<%
// If we don't have a valid connection then proceed to login
XMPPConnection conn = (XMPPConnection) session.getAttribute("connection");
TCPConnection conn = (XMPPConnection) session.getAttribute("connection");
if (conn == null || !conn.isConnected()) {
response.sendRedirect("login.jsp");
return;