Package org.onesocialweb.openfire.exception

Examples of org.onesocialweb.openfire.exception.MissingParameterException


    // TODO

    // Process the parameters
    String fileId = request.getParameter("fileId");
    if (fileId == null || fileId.isEmpty()) {
      throw new MissingParameterException("fileId");
    }

    // Get the file entry
    FileEntry fileEntry = UploadManager.getInstance().getFile(fileId);
    if (fileEntry == null) {
View Full Code Here


    String jid = request.getParameter("jid");
    String signature = request.getParameter("signature");

    // Validate
    if (jid == null) {
      throw new MissingParameterException("jid");
    }
    if (signature == null) {
      throw new MissingParameterException("signature");
    }

    // Validate the session
    try {
      if (SessionValidator.getInstance().validateSession(jid, signature)) {
View Full Code Here

TOP

Related Classes of org.onesocialweb.openfire.exception.MissingParameterException

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.