1355c5005fb2583b83765d9c938701e5bcb0dbc2
[jSite2.git] / src / net / pterodactylus / util / fcp / URIGenerated.java
1 /**
2  * © 2008 INA Service GmbH
3  */
4 package net.pterodactylus.util.fcp;
5
6 /**
7  * The “URIGenerated” message signals the client that an URI was generated for a
8  * {@link ClientPut} (or {@link ClientPutDiskDir} or {@link ClientPutComplexDir})
9  * request.
10  * 
11  * @author David ‘Bombe’ Roden <bombe@freenetproject.org>
12  * @version $Id$
13  */
14 public class URIGenerated extends BaseMessage {
15
16         /**
17          * Creates a new “URIGenerated” message that wraps the received message.
18          * 
19          * @param receivedMessage
20          *            The received message
21          */
22         URIGenerated(FcpMessage receivedMessage) {
23                 super(receivedMessage);
24         }
25
26         /**
27          * Returns the identifier of the request that generated an URI.
28          * 
29          * @return The identifier of the request
30          */
31         public String getIdentifier() {
32                 return getField("Identifier");
33         }
34
35         /**
36          * Returns the URI that was generated by the request.
37          * 
38          * @return The URI that was generated by the request
39          */
40         public String getURI() {
41                 return getField("URI");
42         }
43
44 }