* The persistent Get request to wrap
*/
GetRequest(PersistentGet persistentGet) {
- super(persistentGet.getIdentifier(), persistentGet.getClientToken(), persistentGet.isGlobal());
+ super(persistentGet.getIdentifier(), persistentGet.getURI(), persistentGet.getClientToken(), persistentGet.isGlobal());
}
}
* The FCP message to wrap
*/
PutRequest(PersistentPut persistentPut) {
- super(persistentPut.getIdentifier(), persistentPut.getClientToken(), persistentPut.isGlobal());
+ super(persistentPut.getIdentifier(), persistentPut.getURI(), persistentPut.getClientToken(), persistentPut.isGlobal());
}
}
/** The identifier of the request. */
private final String identifier;
+ /** The URI of the request. */
+ private final String uri;
+
/** The client token of the request. */
private final String clientToken;
*
* @param identifier
* The identifier of the request
+ * @param uri
+ * The URI of the request
* @param clientToken
* The client token of the request
* @param global
* <code>true</code> if the request is on the global queue,
* <code>false</code> otherwise
*/
- protected Request(String identifier, String clientToken, boolean global) {
+ protected Request(String identifier, String uri, String clientToken, boolean global) {
this.identifier = identifier;
+ this.uri = uri;
this.clientToken = clientToken;
this.global = global;
}
}
/**
+ * Returns the URI of the request.
+ *
+ * @return The request’s URI
+ */
+ public String getUri() {
+ return uri;
+ }
+
+ /**
* Returns the client token of the request.
*
* @return The request’s client token