Package nu.fw.jeti.jabber.elements

Examples of nu.fw.jeti.jabber.elements.XMPPErrorTag


    public void startHandling(Attributes attr) {
    }

    public Extension build()
    {
        return new XMPPErrorTag(getName());
    }
View Full Code Here


  public void addExtension(Extension extension)
  {
    if(extension instanceof XMPPErrorTag)
    {
      XMPPErrorTag tag = (XMPPErrorTag)extension;
      if(!"text".equals(tag.getError())) this.extension = tag;
    }
  }
View Full Code Here

//    clearCurrentChars();
//  }

  public Extension build()
  {
    if(!getName().equals("si"))return new XMPPErrorTag(getName(),"http://jabber.org/protocol/si");
    return new IQSi(id,profile,mimeType,form,siprofile);
  }
View Full Code Here

  }
 
  private void sendError()
  {
    XMPPError error = new XMPPError("cancel",404);
    error.addError(new XMPPErrorTag("item-not-found"));
    backend.send(new InfoQuery(iq.getFrom(),iq.getID(),error));
  }
View Full Code Here

        return message;
    }
  
    private static XMPPError createError(String errorMessage) {
       XMPPError error = new XMPPError("cancel",404);
       error.addError(new XMPPErrorTag(errorMessage,NAMESPACE));
       return error;
    }
View Full Code Here

          Log.xmlReceivedError("ibb stream init from unknown");
        }
        else
        {
          XMPPError e = new XMPPError("cancel",501);
          e.addError(new XMPPErrorTag("feature-not-implemented"));
          backend.send(new InfoQuery(iq.getFrom(),iq.getID(),e));
        }
      }
      if(isClose())
      {
View Full Code Here

TOP

Related Classes of nu.fw.jeti.jabber.elements.XMPPErrorTag

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.