mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 20:12:07 +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);
|
||||
try {
|
||||
if ("No".equals(ssl)) {
|
||||
conn = new XMPPConnection(host, Integer.parseInt(port));
|
||||
conn = new XMPPConnection(host);
|
||||
}
|
||||
else {
|
||||
conn = new SSLXMPPConnection(host, Integer.parseInt(port));
|
||||
conn = new XMPPConnection(host);
|
||||
}
|
||||
conn.connect();
|
||||
// Add listener for messages (offline messages will be listen here)
|
||||
|
||||
// Set the roster subscription mode to use
|
||||
|
@ -126,8 +127,9 @@
|
|||
Information</b> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> <table width=100% border=0>
|
||||
<form action="login.jsp" method="post">
|
||||
<td><form action="login.jsp" method="post">
|
||||
<table width=100% border=0>
|
||||
|
||||
<tr>
|
||||
<td class=text id=black height=16>Host:</td>
|
||||
<td><input type="text" name="host" size="30" maxlength="50" value="<%= (host!=null)?host:"" %>"></td>
|
||||
|
@ -177,8 +179,8 @@
|
|||
<tr align="center">
|
||||
<td colspan="2"> <input type="submit" value="Login"> </td>
|
||||
</tr>
|
||||
</form>
|
||||
</table></td>
|
||||
|
||||
</table></form></td>
|
||||
</tr>
|
||||
</table></td>
|
||||
<td width="20%"> </td>
|
||||
|
|
Loading…
Reference in a new issue