Examples of render()


Examples of cn.webwheel.template.TemplateRenderer.render()

                            }
                        }
                    }
                }
                if (ctx == null) ctx = Collections.emptyMap();
                renderer.render(sw, ctx);
            } catch (Exception e) {
                except(httpExchange, e);
                return;
            }
View Full Code Here

Examples of com.alibaba.citrus.service.uribroker.uri.GenericURIBroker.render()

        u1 = u1.fork();

        assertEquals(true, u1.isAutoReset());
        assertEquals("http://localhost:8080/", u1.toString());
        assertEquals("http://localhost:8080/?test=webx3", u1.render());

        // u1.toString以后,interceptor不被执行。
        u1.toString(); // http://localhost:8080/
        URIBroker u2 = u1.fork();
View Full Code Here

Examples of com.alibaba.citrus.service.uribroker.uri.URIBroker.render()

        for (String name : service.getNames()) {
            URIBroker uri = service.getURIBroker(name);

            if ("link-request".equals(name)) {
                assertEquals("http://localhost/", uri.render());
            } else {
                assertEquals("http:///", uri.render());
                assertEquals("http://www.alibaba.com:9999/", uri.setServerName("www.alibaba.com").setServerPort(9999)
                                                                .render());
            }
View Full Code Here

Examples of com.alibaba.citrus.turbine.util.ControlTool.render()

        Context context = rundata.getContext();
        ControlTool controlTool = getControlTool(context, template, module, rundata);

        // render control
        rundata.getResponse().getWriter(); // 必须先预备好buffer
        String content = controlTool.render();

        // 设置context,以便后续模块能够读取
        context.put("controlContent", content); // controlContent为control渲染的结果
        context.put("controlTarget", template != null ? template : module);
View Full Code Here

Examples of com.alibaba.fastjson.support.spring.FastJsonJsonView.render()

        Assert.assertEquals(SerializerFeature.SortField, view.getFeatures()[1]);
       
        Map<String, Object> model = new HashMap<String, Object>();
        MockHttpServletRequest request = new MockHttpServletRequest();
        MockHttpServletResponse response = new MockHttpServletResponse();
        view.render(model, request, response);
       
        view.setRenderedAttributes(null);
       
        view.setCharset(Charset.forName("UTF-8"));
        view.render(model, request, response);
View Full Code Here

Examples of com.alibaba.simpleimage.ImageRender.render()

        ImageRender wr = null;
        try {
            output = new FileOutputStream(new File(resultDir, "WRITE_st.jpg"));
            wr = new WriteRender(getImage(), output);

            wr.render();
        } finally {
            if (wr != null) {
                wr.dispose();
            }
            IOUtils.closeQuietly(output);
View Full Code Here

Examples of com.alibaba.simpleimage.render.ReadRender.render()

        long start = 0L, end = 0L, total = 0L;

        img.reset();

        ReadRender rr = new ReadRender(img, false);
        ImageWrapper wi = rr.render();
        BufferedImage bi = wi.getAsBufferedImage();
       
        for (int i = 0; i < times; i++) {     
            start = System.currentTimeMillis();
            PlanarImage zoomOp = scaler.doScale(PlanarImage.wrapRenderedImage(bi), scale);
View Full Code Here

Examples of com.alibaba.simpleimage.render.WriteRender.render()

    }

    protected void write(ImageRender dr) throws SimpleImageException, IOException {
        ImageRender wr = new WriteRender(dr, rpath.getCanonicalPath() + File.separator
                                             + "DRAWTEXT_334.jpg");
        wr.render();
        wr.dispose();
    }

    protected String getFileStr() throws IOException {
        return path.getCanonicalPath() + File.separator + "334.jpg";
View Full Code Here

Examples of com.alibaba.wasp.tmpl.fserver.FSStatusTmpl.render()

    FSStatusTmpl tmpl = new FSStatusTmpl();
    if (req.getParameter("format") != null)
      tmpl.setFormat(req.getParameter("format"));
    if (req.getParameter("filter") != null)
      tmpl.setFilter(req.getParameter("filter"));
    tmpl.render(resp.getWriter(), fs);
  }
}
View Full Code Here

Examples of com.alibaba.wasp.tmpl.master.MasterStatusTmpl.render()

        .setServers(servers).setDeadServers(deadServers);
    if (request.getParameter("filter") != null)
      tmpl.setFilter(request.getParameter("filter"));
    if (request.getParameter("format") != null)
      tmpl.setFormat(request.getParameter("format"));
    tmpl.render(response.getWriter(), master, admin);
  }

  static boolean shouldShowAppendWarning(Configuration conf) {
    try {
      return !FSUtils.isAppendSupported(conf) && FSUtils.isHDFS(conf);
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.