com.caucho.xmpp
Class Stanza

java.lang.Object
  extended by com.caucho.xmpp.Stanza
Direct Known Subclasses:
BindStanza, EmptyStanza, IqStanza, SessionStanza, StreamStanza, SuccessStanza

public class Stanza
extends java.lang.Object

XMPP protocol


Constructor Summary
Stanza()
           
Stanza(java.lang.String id, java.lang.String type, java.lang.String from, java.lang.String to)
           
Stanza(XMLStreamReader in)
           
 
Method Summary
 java.lang.String getFrom()
           
 java.lang.String getId()
           
 java.lang.String getTo()
           
protected  void print(WriteStream out, java.lang.String from, java.lang.String to)
           
 void setFrom(java.lang.String from)
           
 void setId(java.lang.String id)
           
 void setTo(java.lang.String to)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Stanza

public Stanza()

Stanza

public Stanza(java.lang.String id,
              java.lang.String type,
              java.lang.String from,
              java.lang.String to)

Stanza

public Stanza(XMLStreamReader in)
       throws java.io.IOException,
              XMLStreamException
Throws:
java.io.IOException
XMLStreamException
Method Detail

getId

public java.lang.String getId()

setId

public void setId(java.lang.String id)

getTo

public java.lang.String getTo()

setTo

public void setTo(java.lang.String to)

getFrom

public java.lang.String getFrom()

setFrom

public void setFrom(java.lang.String from)

print

protected void print(WriteStream out,
                     java.lang.String from,
                     java.lang.String to)
              throws java.io.IOException
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object