1 22 package org.netbeans.lib.cvsclient.request; 23 24 28 public final class DirectoryRequest extends Request { 29 30 33 private final String localDirectory; 34 35 38 private final String repository; 39 40 45 public DirectoryRequest(String localDirectory, String repository) { 46 if (localDirectory == null || repository == null) { 47 throw new IllegalArgumentException ("Both, directory and repository, must not be null!"); 48 } 49 50 this.localDirectory = localDirectory; 51 this.repository = repository; 52 } 53 54 57 public String getLocalDirectory() { 58 return localDirectory; 59 } 60 61 64 public String getRepository() { 65 return repository; 66 } 67 68 72 public String getRequestString() { 73 return "Directory " + localDirectory + "\n" + repository + "\n"; } 75 76 81 public boolean isResponseExpected() { 82 return false; 83 } 84 } 85 | Popular Tags |