org.netbeans.lib.cvsclient.request
Class GzipStreamRequest

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

public class GzipStreamRequest
extends Request

This class implements the Gzip-Stream request that is used to indicate that all further communication with the server is to be gzipped.


Constructor Summary
GzipStreamRequest()
          Creates new GzipStreamRequest with gzip level 6
GzipStreamRequest(int level)
          Creates new GzipStreamRequest
 
Method Summary
 java.lang.String getRequestString()
          Get the request String that will be passed to the server
 boolean isResponseExpected()
          Is a response expected from the server?
 boolean modifiesInputStream()
          Does this request modify the input stream?
 void modifyInputStream(Connection connection)
          Modify streams on the connection if necessary
 void modifyOutputStream(Connection connection)
          Modify streams on the connection if necessary
 
Methods inherited from class org.netbeans.lib.cvsclient.request.Request
getFileForTransmission
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GzipStreamRequest

public GzipStreamRequest()
Creates new GzipStreamRequest with gzip level 6


GzipStreamRequest

public GzipStreamRequest(int level)
Creates new GzipStreamRequest

Parameters:
level - the level of zipping to use (between 1 and 9)
Method Detail

getRequestString

public java.lang.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

modifyOutputStream

public void modifyOutputStream(Connection connection)
                        throws java.io.IOException
Modify streams on the connection if necessary

Overrides:
modifyOutputStream in class Request
Throws:
java.io.IOException

modifyInputStream

public void modifyInputStream(Connection connection)
                       throws java.io.IOException
Modify streams on the connection if necessary

Overrides:
modifyInputStream in class Request
Throws:
java.io.IOException

modifiesInputStream

public boolean modifiesInputStream()
Does this request modify the input stream?

Overrides:
modifiesInputStream in class Request
Returns:
true if it does, false otherwise

 

Built on October 26 2010.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.