|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| This report was generated with an evaluation server license. Purchase Clover or configure your license. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| TrackBackLinkView | Line # 12 | 3 | 0% | 2 | 5 | 0% |
0.0
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
| No Tests | |||
| 1 | package net.sourceforge.pebble.web.view.impl; | |
| 2 | ||
| 3 | import net.sourceforge.pebble.Constants; | |
| 4 | import net.sourceforge.pebble.domain.BlogEntry; | |
| 5 | import net.sourceforge.pebble.web.view.HtmlView; | |
| 6 | ||
| 7 | /** | |
| 8 | * Represents the page that displays the TrackBack link for a blog entry. | |
| 9 | * | |
| 10 | * @author Simon Brown | |
| 11 | */ | |
| 12 | public class TrackBackLinkView extends HtmlView { | |
| 13 | ||
| 14 | /** | |
| 15 | * Gets the title of this view. | |
| 16 | * | |
| 17 | * @return the title as a String | |
| 18 | */ | |
| 19 | 0 |
public String getTitle() { |
| 20 | 0 | BlogEntry blogEntry = (BlogEntry)getModel().get(Constants.BLOG_ENTRY_KEY); |
| 21 | 0 | return blogEntry.getTitle(); |
| 22 | } | |
| 23 | ||
| 24 | /** | |
| 25 | * Gets the URI that this view represents. | |
| 26 | * | |
| 27 | * @return the URI as a String | |
| 28 | */ | |
| 29 | 0 |
public String getUri() { |
| 30 | 0 | return "/WEB-INF/jsp/trackBackLink.jsp"; |
| 31 | } | |
| 32 | ||
| 33 | } | |
|
||||||||||||