1 22 package org.netbeans.lib.cvsclient.response; 23 24 import java.io.*; 25 26 import org.netbeans.lib.cvsclient.util.*; 27 28 34 35 class ValidRequestsResponse implements Response { 36 43 public void process(LoggedDataInputStream dis, ResponseServices services) 44 throws ResponseException { 45 try { 46 String validRequests = dis.readLine(); 47 services.setValidRequests(validRequests); 48 if (validRequests.indexOf("gzip-file-contents") < 0) { 49 services.dontUseGzipFileHandler(); 50 } 51 } 52 catch (EOFException ex) { 53 throw new ResponseException(ex, ResponseException.getLocalMessage("CommandException.EndOfFile", null)); } 55 catch (IOException ex) { 56 throw new ResponseException(ex); 57 } 58 } 59 60 65 public boolean isTerminalResponse() { 66 return false; 67 } 68 } | Popular Tags |