Package org.jrest4guice.rest.writer.renderer

Examples of org.jrest4guice.rest.writer.renderer.ViewRender


            } catch (Exception e) {
            }
          } else if (ViewRender.class.isAssignableFrom(clazz)) {
            // 注册ViewRender
            try {
              ViewRender render = (ViewRender) clazz
                  .newInstance();
              renderRegister.registViewRender(render
                  .getRenderType(), clazz);
            } catch (Exception e) {
            }
          }
        }
View Full Code Here


          session
              .setAttribute(HtmlResponseWriter.OPTION_KEY,
                  options);
        }
       
        ViewRender viewRender = ViewRenderRegister.getInstance()
            .getViewRender(pageInfo);

        // 如果模板文件存在,则调用相应的渲染器进行结果的渲染
        if (viewRender != null) {
          viewRender.render(out, annotation, httpResult,charset);
        } else {
          writeTextPlain(out, httpResult);
        }
      }
    } catch (Exception e) {
View Full Code Here

TOP

Related Classes of org.jrest4guice.rest.writer.renderer.ViewRender

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.