config-servlet/src/main/java/org/ocpsoft/rewrite/servlet/config/Request.java
public static Request setAttribute(final String name, final Object value)
   {
      return new Request() {
         @Override
         public void performHttp(HttpServletRewrite event, EvaluationContext context)
         {
            event.getRequest().setAttribute(name, value);
         }

         @Override
         public String toString()
         {
            return "Request.setAttribute(\"" + name + "\", \"" + value + "\")";
         }
      };
   }
public static Request setAttribute(final String name, final Object value)
   {
      return new Request() {
         @Override
         public void performHttp(HttpServletRewrite event, EvaluationContext context)
         {
            event.getRequest().setAttribute(name, value);
         }

         @Override
         public String toString()
         {
            return "Request.setAttribute(\"" + name + "\", \"" + value + "\")";
         }
      };
   }
public static Request setAttribute ( final String name , final Object value ) { return new Request ( ) { @ Override public void performHttp ( HttpServletRewrite event , EvaluationContext context ) { event . getRequest ( ) . setAttribute ( name , value ) ; } @ Override public String toString ( ) { return "Request.setAttribute(\"" + name + "\", \"" + value + "\")" ; } } ; }
Creates an {@link HttpOperation} that calls {@link HttpServletRequest#setAttribute(String, Object)} on the current
request.

@param name The name of the request attribute
@param value The value to set
Creates an { @link HttpOperation } that calls { @link HttpServletRequest#setAttribute ( String Object ) } on the current request .