confirmtrackbackview.java

来自「pebble-blog 博客源码博客源码博客源码」· Java 代码 · 共 43 行

JAVA
43
字号
package net.sourceforge.pebble.web.view.impl;

import net.sourceforge.pebble.Constants;
import net.sourceforge.pebble.api.confirmation.TrackBackConfirmationStrategy;
import net.sourceforge.pebble.domain.Blog;
import net.sourceforge.pebble.web.view.HtmlView;

/**
 * Represents the confirm TrackBack page.
 *
 * @author    Simon Brown
 */
public class ConfirmTrackBackView extends HtmlView {

  /**
   * Prepares the view for presentation.
   */
  public void prepare() {
    getModel().put("confirmationAction", "confirmTrackBack.action");
  }

  /**
   * Gets the title of this view.
   *
   * @return the title as a String
   */
  public String getTitle() {
    return null;
  }

  /**
   * Gets the URI that this view represents.
   *
   * @return the URI as a String
   */
  public String getUri() {
    Blog blog = (Blog)getModel().get(Constants.BLOG_KEY);
    TrackBackConfirmationStrategy strategy = blog.getTrackBackConfirmationStrategy();
    return strategy.getUri();
  }

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?