Examples of XMPPError


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

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

    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

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

          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

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

                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

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

            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

Examples of org.jivesoftware.smack.packet.XMPPError

        // we don't want to accept the file so we need to send the IQ error message
        // to the Initiator
        IQ errorPacket = receive.getSI().createConfirmationMessage();
        errorPacket.setType(IQ.Type.ERROR);

        errorPacket.setError(new XMPPError(403,"forbidden"));
        sendPacket( errorPacket );
        dispose();
    }
View Full Code Here

Examples of org.jivesoftware.smack.packet.XMPPError

    }

    public void reject() throws XMPPException {
        StreamInitiation si = this.si.createConfirmationMessage(manager.getPreferredType());
        si.setType(IQ.Type.ERROR);
        si.setError(new XMPPError(503, "File Rejected"));
        manager.getConnection().sendPacket(si);
    }
View Full Code Here

Examples of org.jivesoftware.smack.packet.XMPPError

        Message result = new Message();

        if (muleMessage.getExceptionPayload() != null)
        {
            result.setError(
                new XMPPError(XMPPError.Condition.service_unavailable,
                    muleMessage.getExceptionPayload().getMessage()));
        }

        for (String propertyName : muleMessage.getOutboundPropertyNames())
        {
View Full Code Here

Examples of org.jivesoftware.smack.packet.XMPPError

        }
    }
   
    protected boolean roomDoesNotExist(XMPPException exception)
    {
        XMPPError error = exception.getXMPPError();
        if ((error.getCode() == 404) &&
            error.getCondition().equals(XMPPError.Condition.recipient_unavailable.toString()))
        {
            return true;
        }
        return false;
    }
View Full Code Here

Examples of org.jivesoftware.smack.packet.XMPPError

        VCard result = null;
        try {
            result = (VCard) collector.nextResult(SmackConfiguration.getPacketReplyTimeout());

            if (result == null) {
                throw new XMPPException(new XMPPError(408, "Timeout getting VCard information"));
            }
            if (result.getError() != null) {
                throw new XMPPException(result.getError());
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.