8c4ae441cd813d2ac0ba6983986dada7a7736547
[arachne.git] / src / net / pterodactylus / arachne / core / Page.java
1 /*
2  * © 2009 David ‘Bombe’ Roden
3  */
4 package net.pterodactylus.arachne.core;
5
6 /**
7  * Container for a page. A page consists of a {@link Site} and a path within the
8  * site.
9  *
10  * @author David ‘Bombe’ Roden <bombe@pterodactylus.net>
11  */
12 public class Page {
13
14         /** The site of the page. */
15         private final Site site;
16
17         /** The path of the page. */
18         private final String path;
19
20         /**
21          * Creates a new page.
22          *
23          * @param site
24          *            The site of the page
25          * @param path
26          *            The path of the page
27          */
28         public Page(Site site, String path) {
29                 this.site = site;
30                 this.path = path;
31         }
32
33         /**
34          * Returns the site of the page.
35          *
36          * @return The page’s site
37          */
38         public Site getSite() {
39                 return site;
40         }
41
42         /**
43          * Returns the path of the page within the site.
44          *
45          * @return The page’s path
46          */
47         public String getPath() {
48                 return path;
49         }
50
51 }