public static OperationBuilder addCookie(final Cookie cookie) {
    """
	Create an {@link Operation} that adds a {@link Cookie} to the {@link HttpServletResponse}
    """
      return new Response() {
         @Override
         public void performHttp(final HttpServletRewrite event, final EvaluationContext context)
         {
            event.getResponse().addCookie(cookie);
         }

         @Override
         public String toString()
         {
            return "Response.addCookie(" + cookie + ")";
         }
      };
   }
public static OperationBuilder addCookie(final Cookie cookie)
   {
      return new Response() {
         @Override
         public void performHttp(final HttpServletRewrite event, final EvaluationContext context)
         {
            event.getResponse().addCookie(cookie);
         }

         @Override
         public String toString()
         {
            return "Response.addCookie(" + cookie + ")";
         }
      };
   }
public static OperationBuilder addCookie ( final Cookie cookie ) { return new Response ( ) { @ Override public void performHttp ( final HttpServletRewrite event , final EvaluationContext context ) { event . getResponse ( ) . addCookie ( cookie ) ; } @ Override public String toString ( ) { return "Response.addCookie(" + cookie + ")" ; } } ; }
Create an {@link Operation} that adds a {@link Cookie} to the {@link HttpServletResponse}
Create an {