public class GzipStreamRequest extends Request
Constructor and Description |
---|
GzipStreamRequest()
Creates new GzipStreamRequest with gzip level 6
|
GzipStreamRequest(int level)
Creates new GzipStreamRequest
|
Modifier and Type | Method and Description |
---|---|
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
|
getFileForTransmission
public GzipStreamRequest()
public GzipStreamRequest(int level)
level
- the level of zipping to use (between 1 and 9)public java.lang.String getRequestString() throws UnconfiguredRequestException
getRequestString
in class Request
UnconfiguredRequestException
- if the request has not been
properly configuredpublic boolean isResponseExpected()
isResponseExpected
in class Request
public void modifyOutputStream(Connection connection) throws java.io.IOException
modifyOutputStream
in class Request
java.io.IOException
public void modifyInputStream(Connection connection) throws java.io.IOException
modifyInputStream
in class Request
java.io.IOException
public boolean modifiesInputStream()
modifiesInputStream
in class Request
Built on January 12 2013. | Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.