Examples of HTMLFormatter


Examples of com.cedarsoftware.ncube.formatters.HtmlFormatter

     * matches one of the passed in headers, will be the axis chosen to be displayed at the top.
     * @return String containing an HTML view of this NCube.
     */
    public String toHtml(String ... headers)
    {
        HtmlFormatter formatter = new HtmlFormatter(this);
        return formatter.format(headers);
    }
View Full Code Here

Examples of com.cedarsoftware.ncube.formatters.HtmlFormatter

     * matches one of the passed in headers, will be the axis chosen to be displayed at the top.
     * @return String containing an HTML view of this NCube.
     */
    public String toHtml(String ... headers)
    {
        return new HtmlFormatter(headers).format(this);
    }
View Full Code Here

Examples of com.cedarsoftware.ncube.formatters.HtmlFormatter

     * matches one of the passed in headers, will be the axis chosen to be displayed at the top.
     * @return String containing an HTML view of this NCube.
     */
    public String toHtml(String ... headers)
    {
        HtmlFormatter formatter = new HtmlFormatter(this);
        return formatter.format(headers);
    }
View Full Code Here

Examples of com.cedarsoftware.ncube.formatters.HtmlFormatter

     * matches one of the passed in headers, will be the axis chosen to be displayed at the top.
     * @return String containing an HTML view of this NCube.
     */
    public String toHtml(String ... headers)
    {
        return new HtmlFormatter(headers).format(this);
    }
View Full Code Here

Examples of com.cedarsoftware.ncube.formatters.HtmlFormatter

     * matches one of the passed in headers, will be the axis chosen to be displayed at the top.
     * @return String containing an HTML view of this NCube.
     */
    public String toHtml(String ... headers)
    {
        return new HtmlFormatter(headers).format(this);
    }
View Full Code Here

Examples of com.cedarsoftware.ncube.formatters.HtmlFormatter

     * matches one of the passed in headers, will be the axis chosen to be displayed at the top.
     * @return String containing an HTML view of this NCube.
     */
    public String toHtml(String ... headers)
    {
        return new HtmlFormatter(headers).format(this);
    }
View Full Code Here

Examples of lupos.endpoint.server.format.HTMLFormatter

    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));
    Endpoint.registerFormatter(new HTMLFormatter(true, true));
    Endpoint.registerFormatter(new QueryTriplesFormatter());
  }
View Full Code Here

Examples of net.sourceforge.align.formatter.HtmlFormatter

      Writer writer = getSingleWriter(commandLine);
      int width = createInt(commandLine, "width", PresentationFormatter.DEFAULT_WIDTH);
      formatter = new PresentationFormatter(writer, width);
    } else if (cls.equals("html")) {
      Writer writer = getSingleWriter(commandLine);
      formatter = new HtmlFormatter(writer);
    } else if (cls.equals("info")) {
      Writer writer = getSingleWriter(commandLine);
      formatter = new InfoFormatter(writer);
    } else {
      throw new UnknownParameterException("class");
View Full Code Here

Examples of org.apache.cassandra.net.http.HTMLFormatter

    }

    private void doGet(HttpRequest httpRequest, HttpWriteResponse httpResponse)
    {
        boolean fServeSummary = true;
        HTMLFormatter formatter = new HTMLFormatter();
        String query = httpRequest.getQuery();
        /*
         * we do not care about the path for most requests except those
         * from the load balancer
         */
        String path = httpRequest.getPath();
        /* for the health checks, just return the string only */
        if(path.contains(LB_HEALTH_CHECK))
        {
          httpResponse.println(handleLBHealthCheck());
            return;
        }

        formatter.startBody(true, getJSFunctions(), true, true);
        formatter.appendLine("<h1><font color=\"white\"> Cluster map </font></h1>");

        StringBuilder sbResult = new StringBuilder();
        do
        {
            if(query.contains(DETAILS))
            {
                fServeSummary = false;
                sbResult.append(handleNodeDetails());
                break;
            }
            else if(query.contains(LOADME))
            {
                sbResult.append(handleLoadMe());
                break;
            }
            else if(query.contains(KILLME))
            {
                sbResult.append(handleKillMe());
                break;
            }
            else if(query.contains(COMPACTME))
            {
                sbResult.append(handleCompactMe());
                break;
            }
        }
        while(false);

        //formatter.appendLine("<br>-------END DEBUG INFO-------<br><br>");

        if(fServeSummary)
        {
            formatter.appendLine(handlePageDisplay(null, null, null));
        }

        formatter.appendLine("<br>");

        if(sbResult.toString() != null)
        {
            formatter.appendLine(sbResult.toString());
        }

        formatter.endBody();
        httpResponse.println(formatter.toString());
    }
View Full Code Here

Examples of org.apache.cassandra.net.http.HTMLFormatter

    */
    private void doPost(HttpRequest httpRequest, HttpWriteResponse httpResponse)
    {
        String query = httpRequest.getQuery();

        HTMLFormatter formatter = new HTMLFormatter();
        formatter.startBody(true, getJSFunctions(), true, true);
        formatter.appendLine("<h1><font color=\"white\"> Cluster map </font></h1>");

        // write a shell for adding some javascript to do in-place updates
        StringBuilder sbResult = new StringBuilder();
        do
        {
            if(query.contains(QUERY))
            {
                sbResult.append(handleQuery(httpRequest));
                break;
            }
            else if(query.contains(INSERT))
            {
                sbResult.append(handleInsert(httpRequest));
                break;
            }
            else if(query.contains(SCRIPT))
            {
                sbResult.append(handleScript(httpRequest));
                break;
            }
        }
        while(false);

        if(sbResult.toString() != null)
        {
            formatter.appendLine(sbResult.toString());
        }

        formatter.endBody();

      httpResponse.println(formatter.toString());
    }
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.