Package nu.fw.jeti.jabber.elements

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


    interrupt();
  }
 
  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


    public String getMessage() {
        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

          backend.send(new InfoQuery(iq.getFrom(),"result",iq.getID(),null));
          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

                sendJingleParts(iq, (Jingle) sessionResponse,
                        (Jingle) descriptionResponse, (Jingle) transportResponse);
            }
            catch (JingleException e) {
                // Send an error message, if present
                XMPPError error = e.getError();
                if (error != null) {
                    sendFormattedError(iq, error);
                }

                // Notify the session end and close everything...
View Full Code Here

            int errCode, String errStr) {

        //InfoQuery iqError = createIQ(ID, to, from, "error");

        //XMPPError error = new XMPPError(new XMPPError.Condition(errStr));
      XMPPError error = new XMPPError(errStr, errCode);
              //InfoQuery iqError = new InfoQuery(to,ID,error);
       
        System.out.println("Created Error Packet:" + error);

        return new Jingle(ID,to,error);
View Full Code Here

TOP

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

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.