org.netbeans.lib.cvsclient.request
Class GzipFileContentsRequest

java.lang.Object
  extended by org.netbeans.lib.cvsclient.request.Request
      extended by org.netbeans.lib.cvsclient.request.GzipFileContentsRequest

public class GzipFileContentsRequest
extends Request

Sends the request that instructs the server to gzip all file transfers

Author:
Robert Greig

Constructor Summary
GzipFileContentsRequest()
          Creates new GzipFileContentsRequest.
GzipFileContentsRequest(int compressionLevel)
          Creates new GzipFileContentsRequest.
 
Method Summary
 String getRequestString()
          Get the request String that will be passed to the server
 boolean isResponseExpected()
          Is a response expected from the server?
 
Methods inherited from class org.netbeans.lib.cvsclient.request.Request
getFileForTransmission, modifiesInputStream, modifyInputStream, modifyOutputStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GzipFileContentsRequest

public GzipFileContentsRequest()
Creates new GzipFileContentsRequest. Compression level '6' is used by default.


GzipFileContentsRequest

public GzipFileContentsRequest(int compressionLevel)
Creates new GzipFileContentsRequest.

Parameters:
compressionLevel - The desired compression level.
Method Detail

getRequestString

public String getRequestString()
                        throws UnconfiguredRequestException
Get the request String that will be passed to the server

Specified by:
getRequestString in class Request
Returns:
the request String
Throws:
UnconfiguredRequestException - if the request has not been properly configured

isResponseExpected

public boolean isResponseExpected()
Is a response expected from the server?

Specified by:
isResponseExpected in class Request
Returns:
true if a response is expected, false if no response if expected


Copyright © 2011. All Rights Reserved.