Package org.jogger.http

Examples of org.jogger.http.Value


public class Messages {

  private RoutingEngine routingEngine;

  public void connections(Request request, Response response) throws JSONException {
    Value to = request.getParameter("recipient");
    Value status = request.getParameter("status");
    Value numRecords = request.getParameter("numRecords");

    Collection<Message> messages = listMessages(Direction.TO_CONNECTIONS, "to", to, status, numRecords);

    boolean htmlResponse = request.getHeader("Accept").contains("text/html");
    if (htmlResponse) {
View Full Code Here


      response.contentType("application/json; charset=UTF-8").print( jsonMessages.toString() );
    }
  }

  public void applications(Request request, Response response) throws JSONException {
    Value from = request.getParameter("recipient");
    Value status = request.getParameter("status");
    Value numRecords = request.getParameter("numRecords");

    Collection<Message> messages = listMessages(Direction.TO_APPLICATIONS, "from", from, status, numRecords);

    boolean htmlResponse = request.getHeader("Accept").contains("text/html");
    if (htmlResponse) {
View Full Code Here

TOP

Related Classes of org.jogger.http.Value

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.