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:
parent
c86d6e3b61
commit
ab70cfec24
31 changed files with 120 additions and 120 deletions
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue