Examples of initObject()


Examples of net.sf.toxicity.http.VariableManagerHelper.initObject()

        log.debug("Preparing jelly context: " + context);
       
        HttpServletRequest request = ToxicityRequestFilter.getCurrentRequest();
        ServletContext servletContext = ToxicityRequestFilter.getCurrentServletContext();
        VariableManagerHelper mgr = new VariableManagerHelper(request, request.getSession(false), servletContext);
        mgr.initObject(context, new VariableManagerHelper.VariableSetter() {
           public void setVariable(Object obj, String attrName, Object attrValue) {
               JellyContext ctx = (JellyContext)obj;
               ctx.setVariable(attrName, attrValue);
           }
        });
View Full Code Here

Examples of net.sf.toxicity.http.VariableManagerHelper.initObject()

            // set transformer parameters
            if(mExportParameters) {
                HttpServletRequest request = ToxicityRequestFilter.getCurrentRequest();
                ServletContext servletContext = ToxicityRequestFilter.getCurrentServletContext();
                VariableManagerHelper mgr = new VariableManagerHelper(request, request.getSession(false), servletContext);
                mgr.initObject(t, new VariableManagerHelper.VariableSetter() {
                   public void setVariable(Object obj, String attrName, Object attrValue) {
                       if(attrValue == null) return;
                       Transformer ctx = (Transformer)obj;
                       ctx.setParameter(attrName, attrValue);
                   }
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.