Package lupos.endpoint.server.format

Examples of lupos.endpoint.server.format.JSONFormatter


            Math.min(message.length(), MAX_DEBUG_LENGTH))));
    /*
     * get the JSON formatter, because we know, subgraphs are serialized in
     * JSON
     */
    final Formatter formatter = new JSONFormatter();

    /*
     * try to parse the message
     */
    P2PMessage msg = null;
View Full Code Here


  public static void registerStandardFormatter(){
    Endpoint.registerFormatter(new XMLFormatter());
    Endpoint.registerFormatter(new XMLFormatter(true));
    Endpoint.registerFormatter(new PlainFormatter());
    Endpoint.registerFormatter(new JSONFormatter());
    Endpoint.registerFormatter(new JSONFormatter(true));
    Endpoint.registerFormatter(new CSVFormatter());
    Endpoint.registerFormatter(new TSVFormatter());
    Endpoint.registerFormatter(new HTMLFormatter(false));
    Endpoint.registerFormatter(new HTMLFormatter(true));
    Endpoint.registerFormatter(new HTMLFormatter(false, true));
View Full Code Here

   * @return a tuple with the mime type of the serialized query result as well as the serialized query result in JSON format
   * @throws JSONException
   * @throws IOException
   */
  public static Tuple<String, String> evaluateSubgraphAndReturnSerializedJSONResult(final String subgraphSerializedAsJSONString, final Dataset dataset, final IOperatorCreator operatorCreator) throws JSONException, IOException {
    return LocalExecutor.evaluateSubgraphAndReturnSerializedResult(subgraphSerializedAsJSONString, dataset, operatorCreator, new JSONFormatter());
  }
View Full Code Here

TOP

Related Classes of lupos.endpoint.server.format.JSONFormatter

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.