Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package pl.matisoft.soy.render;
  
  
Created with IntelliJ IDEA. User: mszczap Date: 12.07.13 Time: 09:28 An objects that wraps parameters needed to render a template
 
 public class RenderRequest {
 
     private final Optional<SoyTofucompiledTemplates;
 
     private final String templateName;
 
     private final HttpServletRequest request;
 
     private final HttpServletResponse response;
 
     private final Object model;
 
     private final SoyView soyView;
 
     private final Optional<SoyMapDataglobalRuntimeModel;
     private final Optional<SoyMsgBundlesoyMsgBundle;
 
     private RenderRequest(final Builder builder) {
         this. = builder.compiledTemplates;
         this. = builder.templateName;
         this. = builder.request;
         this. = builder.response;
         this. = builder.model;
         this. = builder.globalRuntimeModel;
         this. = builder.soyMsgBundle;
         this. = builder.soyView;
     }
 
     public SoyView getSoyView() {
         return ;
     }
 
     public Object getModel() {
         return ;
     }
 
         return ;
     }
 
     public Optional<SoyMsgBundlegetSoyMsgBundle() {
         return ;
     }
 
     public Optional<SoyTofugetCompiledTemplates() {
         return ;
     }
 
     public String getTemplateName() {
         return ;
     }
 
     public HttpServletRequest getRequest() {
         return ;
     }
 
     public HttpServletResponse getResponse() {
         return ;
     }
 
     public static class Builder {
 
         private Optional<SoyTofucompiledTemplates;
         private String templateName;
         private HttpServletRequest request;
         private HttpServletResponse response;
         private Object model;
         private SoyView soyView;
         private Optional<SoyMapDataglobalRuntimeModel = Optional.absent();
         private Optional<SoyMsgBundlesoyMsgBundle = Optional.absent();
 
         public Builder soyView(final SoyView soyView) {
             this. = soyView;
 
             return this;
         }
 
         public Builder compiledTemplates(final Optional<SoyTofucompiledTemplates) {
             this. = compiledTemplates;
             return this;
        }
        public Builder templateName(final String templateName) {
            this. = templateName;
            return this;
        }
        public Builder response(final HttpServletResponse response) {
            this. = response;
            return this;
        }
        public Builder request(final HttpServletRequest request) {
            this. = request;
            return this;
        }
        public Builder model(final Object model) {
            this. = model;
            return this;
        }
        public Builder globalRuntimeModel(final Optional<SoyMapDataglobalRuntimeModel) {
            this. = globalRuntimeModel;
            return this;
        }
        public Builder soyMsgBundle(final Optional<SoyMsgBundlesoyMsgBundle) {
            this. = soyMsgBundle;
            return this;
        }
        public RenderRequest build() {
            return new RenderRequest(this);
        }
    }
New to GrepCode? Check out our FAQ X