1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-09 17:19:39 +02:00

Refactoring: All connection classes begin with XMPP now

This commit renames classes as follows:
 * TCPConnection --> XMPPTCPConnection
 * BOSHConnection --> XMPPBOSHConnection

There are two reasons for this rename. First, it is there to indicate
that the classes actually _are_ XMPP connections, using different
transport mechanisms. Second, it makes auto-completion in IDEs easier,
the developer can type XMPP<complete> and choose the right backend.
This commit is contained in:
Georg Lukas 2014-04-09 12:16:44 +02:00 committed by Florian Schmaus
parent c86d6e3b61
commit ab70cfec24
31 changed files with 120 additions and 120 deletions

View file

@ -54,7 +54,7 @@
<%@ include file="global.jsp" %>
<%
// If we don't have a valid connection then proceed to login
TCPConnection conn = (XMPPConnection) session.getAttribute("connection");
XMPPTCPConnection 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
TCPConnection conn = (XMPPConnection) session.getAttribute("connection");
XMPPTCPConnection 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) {
TCPConnection.DEBUG_ENABLED = "Yes".equals(debug);
XMPPTCPConnection.DEBUG_ENABLED = "Yes".equals(debug);
try {
if ("No".equals(ssl)) {
conn = new TCPConnection(host);
conn = new XMPPTCPConnection(host);
}
else {
conn = new TCPConnection(host);
conn = new XMPPTCPConnection(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
TCPConnection conn = (XMPPConnection) session.getAttribute("connection");
XMPPTCPConnection 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
TCPConnection conn = (XMPPConnection) session.getAttribute("connection");
XMPPTCPConnection conn = (XMPPConnection) session.getAttribute("connection");
if (conn == null || !conn.isConnected()) {
response.sendRedirect("login.jsp");
return;