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 |
---|---|
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 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 IOException
modifyOutputStream
in class Request
IOException
public void modifyInputStream(Connection connection) throws IOException
modifyInputStream
in class Request
IOException
public boolean modifiesInputStream()
modifiesInputStream
in class Request
Copyright © 2016. All rights reserved.