mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-12-23 13:07:59 +01:00
Fixed for updated API.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@7394 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
68901d0890
commit
0d2ed0ed96
1 changed files with 8 additions and 6 deletions
|
@ -72,11 +72,12 @@
|
||||||
XMPPConnection.DEBUG_ENABLED = "Yes".equals(debug);
|
XMPPConnection.DEBUG_ENABLED = "Yes".equals(debug);
|
||||||
try {
|
try {
|
||||||
if ("No".equals(ssl)) {
|
if ("No".equals(ssl)) {
|
||||||
conn = new XMPPConnection(host, Integer.parseInt(port));
|
conn = new XMPPConnection(host);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
conn = new SSLXMPPConnection(host, Integer.parseInt(port));
|
conn = new XMPPConnection(host);
|
||||||
}
|
}
|
||||||
|
conn.connect();
|
||||||
// Add listener for messages (offline messages will be listen here)
|
// Add listener for messages (offline messages will be listen here)
|
||||||
|
|
||||||
// Set the roster subscription mode to use
|
// Set the roster subscription mode to use
|
||||||
|
@ -126,8 +127,9 @@
|
||||||
Information</b> </td>
|
Information</b> </td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td> <table width=100% border=0>
|
<td><form action="login.jsp" method="post">
|
||||||
<form action="login.jsp" method="post">
|
<table width=100% border=0>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class=text id=black height=16>Host:</td>
|
<td class=text id=black height=16>Host:</td>
|
||||||
<td><input type="text" name="host" size="30" maxlength="50" value="<%= (host!=null)?host:"" %>"></td>
|
<td><input type="text" name="host" size="30" maxlength="50" value="<%= (host!=null)?host:"" %>"></td>
|
||||||
|
@ -177,8 +179,8 @@
|
||||||
<tr align="center">
|
<tr align="center">
|
||||||
<td colspan="2"> <input type="submit" value="Login"> </td>
|
<td colspan="2"> <input type="submit" value="Login"> </td>
|
||||||
</tr>
|
</tr>
|
||||||
</form>
|
|
||||||
</table></td>
|
</table></form></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table></td>
|
</table></td>
|
||||||
<td width="20%"> </td>
|
<td width="20%"> </td>
|
||||||
|
|
Loading…
Reference in a new issue