2 * © 2008 INA Service GmbH
4 package net.pterodactylus.util.fcp;
7 * The “TestDDAComplete” message signals that the node has finished checking
8 * your read and write access to a certain directory.
10 * @author David ‘Bombe’ Roden <bombe@freenetproject.org>
13 public class TestDDAComplete extends BaseMessage {
16 * Creates a new “TestDDAComplete” message that wraps the received message.
18 * @param receivedMessage
19 * The received message
21 TestDDAComplete(FcpMessage receivedMessage) {
22 super(receivedMessage);
26 * Returns the directory the authorization is given for.
28 * @return The directory that was tested for read and/or write access
30 public String getDirectory() {
31 return getField("Directory");
35 * Returns whether read access to the directory is allowed.
37 * @return <code>true</code> if the client is allowed to read from that
38 * directory, <code>false</code> otherwise
40 public boolean isReadDirectoryAllowed() {
41 return Boolean.valueOf(getField("ReadDirectoryAllowed"));
45 * Returns whether write access to the directory is allowed.
47 * @return <code>true</code> if the client is allowed to write into that
48 * directory, <code>false</code> otherwise
50 public boolean isWriteDirectoryAllowed() {
51 return Boolean.valueOf(getField("WriteDirectoryAllowed"));