//# 0 errors, 45 messages
//#
/*
    //#noopconfirmationstrategy.java:1:1: class: net.sourceforge.pebble.confirmation.NoOpConfirmationStrategy
    //#noopconfirmationstrategy.java:1:1: method: net.sourceforge.pebble.confirmation.NoOpConfirmationStrategy.net.sourceforge.pebble.confirmation.NoOpConfirmationStrategy__static_init
 * Copyright (c) 2003-2006, Simon Brown
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 *   - Redistributions of source code must retain the above copyright
 *     notice, this list of conditions and the following disclaimer.
 *
 *   - Redistributions in binary form must reproduce the above copyright
 *     notice, this list of conditions and the following disclaimer in
 *     the documentation and/or other materials provided with the
 *     distribution.
 *
 *   - Neither the name of Pebble nor the names of its contributors may
 *     be used to endorse or promote products derived from this software
 *     without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */
package net.sourceforge.pebble.confirmation;

import net.sourceforge.pebble.domain.Comment;
import net.sourceforge.pebble.domain.Blog;

import javax.servlet.http.HttpServletRequest;

/**
 * No-op implementation that doesn't require confirmation to be performed.
 *
 * @author    Simon Brown
 */
public class NoOpConfirmationStrategy extends AbstractConfirmationStrategy {
    //#noopconfirmationstrategy.java:44: method: void net.sourceforge.pebble.confirmation.NoOpConfirmationStrategy.net.sourceforge.pebble.confirmation.NoOpConfirmationStrategy()
    //#input(void net.sourceforge.pebble.confirmation.NoOpConfirmationStrategy()): this
    //#noopconfirmationstrategy.java:44: end of method: void net.sourceforge.pebble.confirmation.NoOpConfirmationStrategy.net.sourceforge.pebble.confirmation.NoOpConfirmationStrategy()

  /**
   * Called to determine whether confirmation is required.
   *
   * @param comment the Comment being confirmed
   * @return true if the comment should be confirmed, false otherwise
   */
  public boolean confirmationRequired(Comment comment) {
    return false;
    //#noopconfirmationstrategy.java:53: method: bool net.sourceforge.pebble.confirmation.NoOpConfirmationStrategy.confirmationRequired(Comment)
    //#output(bool confirmationRequired(Comment)): return_value
    //#post(bool confirmationRequired(Comment)): return_value == 0
    //#noopconfirmationstrategy.java:53: end of method: bool net.sourceforge.pebble.confirmation.NoOpConfirmationStrategy.confirmationRequired(Comment)
  }

  /**
   * Called to determine whether confirmation is required.
   *
   * @param blog    the owning Blog
   * @return true if the confirmation is required, false otherwise
   */
  public boolean confirmationRequired(Blog blog) {
    return false;
    //#noopconfirmationstrategy.java:63: method: bool net.sourceforge.pebble.confirmation.NoOpConfirmationStrategy.confirmationRequired(Blog)
    //#output(bool confirmationRequired(Blog)): return_value
    //#post(bool confirmationRequired(Blog)): return_value == 0
    //#noopconfirmationstrategy.java:63: end of method: bool net.sourceforge.pebble.confirmation.NoOpConfirmationStrategy.confirmationRequired(Blog)
  }

  /**
   * Called before showing the confirmation page.
   *
   * @param request the HttpServletRequest used in the confirmation
   */
  public void setupConfirmation(HttpServletRequest request) {
  }
    //#noopconfirmationstrategy.java:72: method: void net.sourceforge.pebble.confirmation.NoOpConfirmationStrategy.setupConfirmation(HttpServletRequest)
    //#noopconfirmationstrategy.java:72: end of method: void net.sourceforge.pebble.confirmation.NoOpConfirmationStrategy.setupConfirmation(HttpServletRequest)

  /**
   * Gets the URI of the confirmation page.
   *
   * @return a URI, relative to the web application root.
   */
  public String getUri() {
    return null;
    //#noopconfirmationstrategy.java:80: method: String net.sourceforge.pebble.confirmation.NoOpConfirmationStrategy.getUri()
    //#output(String getUri()): return_value
    //#post(String getUri()): return_value == null
    //#noopconfirmationstrategy.java:80: end of method: String net.sourceforge.pebble.confirmation.NoOpConfirmationStrategy.getUri()
  }

  /**
   * Called to determine whether confirmation was successful.
   *
   * @param request   the HttpServletRequest used in the confirmation
   * @return  true if the confirmation was successful, false otherwise
   */
  public boolean isConfirmed(HttpServletRequest request) {
    return true;
    //#noopconfirmationstrategy.java:90: method: bool net.sourceforge.pebble.confirmation.NoOpConfirmationStrategy.isConfirmed(HttpServletRequest)
    //#output(bool isConfirmed(HttpServletRequest)): return_value
    //#post(bool isConfirmed(HttpServletRequest)): return_value == 1
    //#noopconfirmationstrategy.java:90: end of method: bool net.sourceforge.pebble.confirmation.NoOpConfirmationStrategy.isConfirmed(HttpServletRequest)
  }

}    //#output(net.sourceforge.pebble.confirmation.NoOpConfirmationStrategy__static_init): __Descendant_Table[net/sourceforge/pebble/confirmation/NoOpConfirmationStrategy]
    //#output(net.sourceforge.pebble.confirmation.NoOpConfirmationStrategy__static_init): __Dispatch_Table.confirmationRequired(Lnet/sourceforge/pebble/domain/Blog;)Z
    //#output(net.sourceforge.pebble.confirmation.NoOpConfirmationStrategy__static_init): __Dispatch_Table.confirmationRequired(Lnet/sourceforge/pebble/domain/Comment;)Z
    //#output(net.sourceforge.pebble.confirmation.NoOpConfirmationStrategy__static_init): __Dispatch_Table.getUri()Ljava/lang/String;
    //#output(net.sourceforge.pebble.confirmation.NoOpConfirmationStrategy__static_init): __Dispatch_Table.isConfirmed(Ljavax/servlet/http/HttpServletRequest;)Z
    //#output(net.sourceforge.pebble.confirmation.NoOpConfirmationStrategy__static_init): __Dispatch_Table.setupConfirmation(Ljavax/servlet/http/HttpServletRequest;)V
    //#output(net.sourceforge.pebble.confirmation.NoOpConfirmationStrategy__static_init): net/sourceforge/pebble/api/confirmation/CommentConfirmationStrategy.__Descendant_Table[net/sourceforge/pebble/confirmation/NoOpConfirmationStrategy]
    //#output(net.sourceforge.pebble.confirmation.NoOpConfirmationStrategy__static_init): net/sourceforge/pebble/api/confirmation/ConfirmationStrategy.__Descendant_Table[net/sourceforge/pebble/confirmation/NoOpConfirmationStrategy]
    //#output(net.sourceforge.pebble.confirmation.NoOpConfirmationStrategy__static_init): net/sourceforge/pebble/api/confirmation/TrackBackConfirmationStrategy.__Descendant_Table[net/sourceforge/pebble/confirmation/NoOpConfirmationStrategy]
    //#output(net.sourceforge.pebble.confirmation.NoOpConfirmationStrategy__static_init): net/sourceforge/pebble/confirmation/AbstractConfirmationStrategy.__Descendant_Table[net/sourceforge/pebble/confirmation/NoOpConfirmationStrategy]
    //#post(net.sourceforge.pebble.confirmation.NoOpConfirmationStrategy__static_init): __Descendant_Table[net/sourceforge/pebble/confirmation/NoOpConfirmationStrategy] == &__Dispatch_Table
    //#post(net.sourceforge.pebble.confirmation.NoOpConfirmationStrategy__static_init): net/sourceforge/pebble/api/confirmation/CommentConfirmationStrategy.__Descendant_Table[net/sourceforge/pebble/confirmation/NoOpConfirmationStrategy] == &__Dispatch_Table
    //#post(net.sourceforge.pebble.confirmation.NoOpConfirmationStrategy__static_init): net/sourceforge/pebble/api/confirmation/ConfirmationStrategy.__Descendant_Table[net/sourceforge/pebble/confirmation/NoOpConfirmationStrategy] == &__Dispatch_Table
    //#post(net.sourceforge.pebble.confirmation.NoOpConfirmationStrategy__static_init): net/sourceforge/pebble/api/confirmation/TrackBackConfirmationStrategy.__Descendant_Table[net/sourceforge/pebble/confirmation/NoOpConfirmationStrategy] == &__Dispatch_Table
    //#post(net.sourceforge.pebble.confirmation.NoOpConfirmationStrategy__static_init): net/sourceforge/pebble/confirmation/AbstractConfirmationStrategy.__Descendant_Table[net/sourceforge/pebble/confirmation/NoOpConfirmationStrategy] == &__Dispatch_Table
    //#post(net.sourceforge.pebble.confirmation.NoOpConfirmationStrategy__static_init): __Dispatch_Table.confirmationRequired(Lnet/sourceforge/pebble/domain/Blog;)Z == &confirmationRequired
    //#post(net.sourceforge.pebble.confirmation.NoOpConfirmationStrategy__static_init): __Dispatch_Table.confirmationRequired(Lnet/sourceforge/pebble/domain/Comment;)Z == &confirmationRequired
    //#post(net.sourceforge.pebble.confirmation.NoOpConfirmationStrategy__static_init): __Dispatch_Table.getUri()Ljava/lang/String; == &getUri
    //#post(net.sourceforge.pebble.confirmation.NoOpConfirmationStrategy__static_init): __Dispatch_Table.isConfirmed(Ljavax/servlet/http/HttpServletRequest;)Z == &isConfirmed
    //#post(net.sourceforge.pebble.confirmation.NoOpConfirmationStrategy__static_init): __Dispatch_Table.setupConfirmation(Ljavax/servlet/http/HttpServletRequest;)V == &setupConfirmation
    //#noopconfirmationstrategy.java:: end of method: net.sourceforge.pebble.confirmation.NoOpConfirmationStrategy.net.sourceforge.pebble.confirmation.NoOpConfirmationStrategy__static_init
    //#noopconfirmationstrategy.java:: end of class: net.sourceforge.pebble.confirmation.NoOpConfirmationStrategy
