Examples of ServerStatus


Examples of org.openxri.xml.ServerStatus

    if (this.code == null || this.text == null) throw new StageException("Not initialized.");

    // add a <ServerStatus> tag to the XRD

    xrd.setServerStatus(new ServerStatus(this.code, this.text));

    // done

    return(xrd);
  }
View Full Code Here

Examples of org.openxri.xml.ServerStatus

    XRD xrd = new XRD();

    xrd.setQuery(subSegmentName);
    xrd.setStatus(new Status(Status.QUERY_NOT_FOUND, "No descriptor found for this query."));
    xrd.setServerStatus(new ServerStatus(Status.QUERY_NOT_FOUND, "No descriptor found for this query."));

    return(xrd);
  }
View Full Code Here

Examples of org.openxri.xml.ServerStatus

    String text = ex.getMessage();
    if (text == null || text.trim().equals("")) text = "An internal error occurred: " + ex.getClass().getName();

    xrd.setQuery(subSegmentName);
    xrd.setStatus(new Status(Status.TEMPORARY_FAIL, text));
    xrd.setServerStatus(new ServerStatus(Status.TEMPORARY_FAIL, text));

    return(xrd);
  }
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.