1 22 package org.netbeans.lib.cvsclient.request; 23 24 import java.io.*; 25 26 import org.netbeans.lib.cvsclient.file.*; 27 28 32 public class ModifiedRequest extends Request { 33 36 private FileDetails fileDetails; 37 38 42 public ModifiedRequest(File file, boolean isBinary) { 43 fileDetails = new FileDetails(file, isBinary); 44 } 45 46 52 public String getRequestString() throws UnconfiguredRequestException { 53 if (fileDetails == null) { 54 throw new UnconfiguredRequestException("FileDetails is null in " + 55 "ModifiedRequest"); 56 } 57 final FileMode mode = new FileMode(fileDetails.getFile()); 58 return "Modified " + fileDetails.getFile().getName() + "\n" + mode.toString() + "\n"; } 61 62 67 public boolean isResponseExpected() { 68 return false; 69 } 70 71 78 public FileDetails getFileForTransmission() { 79 return fileDetails; 80 } 81 } 82 | Popular Tags |