<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2719.2200" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>You can do it but it is not part of the spec as far
as I am aware, and even if you do do it, it is the same as <presence> so
whats the point? It might even cause problems with some clients that are
expecting no type for available presences.</FONT></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=brown.adrian@btinternet.com
href="mailto:brown.adrian@btinternet.com">Adrian Brown</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=jdev@jabber.org
href="mailto:jdev@jabber.org">jdev@jabber.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, December 03, 2002 3:03
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [JDEV] Jabber Client and
presence ( using JabberBeans)</DIV>
<DIV><BR></DIV>Isn't it a type attribute of <presence> like
unavailable?<BR><BR><BR>On Tuesday, December 3, 2002, at 02:51 pm, Richard
Dobson wrote:<BR><BR>
<BLOCKQUOTE><?fontfamily><?param Arial><?smaller>There is no such type as
"available" thats why it wont add it, the lack of a type means it is an
availability packet.<?/smaller><?/fontfamily><BR> <BR><?fontfamily><?param Arial><?smaller>Richard<?/smaller><?/fontfamily> <BR><BR>-----
Original Message -----<BR><B>From:</B>
<U><?color><?param 1999,1999,FFFF>Adrian Brown<?/color></U><BR><B>To:</B>
<U><?color><?param 1999,1999,FFFF><A
href="mailto:jdev@jabber.org">jdev@jabber.org</A><?/color></U><BR><B>Sent:</B>
Tuesday, December 03, 2002 2:30 PM<BR><B>Subject:</B> [JDEV] Jabber Client
and presence ( using JabberBeans)<BR><BR>I'm trying to send a
<presence> packet to another client (in my effort to avoid rosters -
which are pointless for my client), In constructing<BR>the <presence>
packet to send to a specified address, I've tried adding the type =
'available' but when I look at the debug, this is never sent or received.
But the presence packet is:<BR><BR>REC: <presence
to="adrian2000@jabber.org" from="adrianxp@jabber.org/work"
id="p1"></presence><BR><BR>Anyone have any ideas?<BR><BR><TT><?bigger>pb.reset();<BR><BR>pb.setToAddress(
UserJIDKit.getRemoteJID() );<BR><BR>pb.setType( "available" );// this doesnt
get added to the packet, can't work out why?<BR><BR>pb.setIdentifier( "p1"
);<BR><BR>try {<BR><BR>cb.send( pb.build() );<BR><BR>System.out.println(
"Subscribing" );<BR><BR>}<BR><BR>catch( InstantiationException e )
{<BR><BR>System.out.println( "Could not subscribe"
);<BR><BR>}<BR><BR>}<BR><BR>Thanks!<?/bigger></TT><BR><BR></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>