abstracttrackbackaction.java

### File Source: abstracttrackbackaction.java

         1  package net.sourceforge.pebble.web.action;
         2
         3  import net.sourceforge.pebble.domain.BlogEntry;
         4
         5  import org.apache.commons.logging.Log;
         6  import org.apache.commons.logging.LogFactory;
         7
         8  /**
         9   * Superclass for TrackBack link generation actions.
        10   *
        11   * @author    Simon Brown
        12   */
             /*
        P/P   *  Method: void net.sourceforge.pebble.web.action.AbstractTrackBackAction()
              */
        13  public abstract class AbstractTrackBackAction extends Action {
        14
        15    public static final String BLOG_ENTRY_ID = "trackBack.blogEntryId";
        16
        17    /** the log used by this class */
               /*
        P/P     *  Method: net.sourceforge.pebble.web.action.AbstractTrackBackAction__static_init
                *
                *  Postconditions:
                *    init'ed(log)
                */
        18    private static Log log = LogFactory.getLog(AbstractTrackBackAction.class);
        19
        20    protected void generateTrackBackLink(BlogEntry blogEntry) {
                 /*
        P/P       *  Method: void generateTrackBackLink(BlogEntry)
                  *
                  *  Preconditions:
                  *    blogEntry != null
                  *    this.model != null
                  *    this.model.data != null
                  */
        21      getModel().put("trackBackLinkExpires", "true");
        22      getModel().put("trackBackLink", blogEntry.getTrackBackLink());
        23    }
        24
        25  }

SofCheck Inspector Build Version : 2.22510

abstracttrackbackaction.java | 2010-Jun-25 19:40:34
abstracttrackbackaction.class | 2010-Jul-19 20:23:38