public class GZConnectionRequest extends ConnectionRequest
PRIORITY_CRITICAL, PRIORITY_HIGH, PRIORITY_LOW, PRIORITY_NORMAL, PRIORITY_REDUNDANT
Constructor and Description |
---|
GZConnectionRequest() |
Modifier and Type | Method and Description |
---|---|
protected void |
readHeaders(Object connection)
Allows reading the headers from the connection by calling the getHeader() method.
|
protected void |
readResponse(InputStream input)
Overridden to convert the input stream you should now override readUnzipedResponse()
|
protected void |
readUnzipedResponse(InputStream input)
This method can be overridden instead of readResponse
|
addArgument, addArgument, addArgument, addArgumentNoEncoding, addRequestHeader, addResponseCodeListener, addResponseListener, buildRequestBody, cookieReceived, cookieSent, createRequestURL, equals, fireResponseListener, getContentLength, getContentType, getCookieHeader, getDefaultUserAgent, getDestinationFile, getDestinationStorage, getDisposeOnCompletion, getHeader, getHeaderFieldNames, getHeaders, getHttpMethod, getPriority, getResponseCode, getResponseContentType, getResponseData, getResposeCode, getShowOnInit, getSilentRetryCount, getTimeout, getUrl, getUserAgent, getYield, handleErrorResponseCode, handleException, handleIOException, handleRuntimeException, hashCode, hasResponseListeners, initConnection, initCookieHeader, ioStreamUpdate, isCookiesEnabled, isCookiesEnabledDefault, isDefaultFollowRedirects, isDuplicateSupported, isFailSilently, isFollowRedirects, isKilled, isPausable, isPaused, isPost, isReadRequest, isReadResponseForErrors, isRedirecting, isWriteRequest, kill, onRedirect, pause, postResponse, readErrorCodeHeaders, removeAllArguments, removeArgument, removeResponseCodeListener, removeResponseListener, resume, retry, setContentType, setCookieHeader, setCookiesEnabled, setCookiesEnabledDefault, setDefaultFollowRedirects, setDefaultUserAgent, setDestinationFile, setDestinationStorage, setDisposeOnCompletion, setDuplicateSupported, setFailSilently, setFollowRedirects, setHttpMethod, setKilled, setPaused, setPost, setPriority, setReadRequest, setReadResponseForErrors, setShowOnInit, setSilentRetryCount, setTimeout, setUrl, setUseNativeCookieStore, setUserAgent, setWriteRequest, shouldAutoCloseResponse, shouldConvertPostToGetOnRedirect, shouldStop, shouldWriteUTFAsGetBytes, validate
protected void readHeaders(Object connection) throws IOException
ConnectionRequest
readHeaders
in class ConnectionRequest
connection
- used when invoking getHeaderIOException
- thrown on failureprotected final void readResponse(InputStream input) throws IOException
readResponse
in class ConnectionRequest
input
- the input stream containing the responseIOException
- when a read input occursprotected void readUnzipedResponse(InputStream input) throws IOException
input
- an input stream that is guaranteed to be deflatedIOException