|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.net.URLConnection
wt.wrmf.transport.httptransport.ReconnectedHttpURLCon
Supported API: false
Extendable: false
Nested Class Summary | |
private class |
ReconnectedHttpURLCon.ReconnectedIS
|
private class |
ReconnectedHttpURLCon.ReconnectedOS
|
Field Summary | |
private int |
attempts
|
private EnumeratorVector |
backISEnum
|
private static String |
basePath
|
private long |
bytesDownloaded
|
private static String |
CLASSNAME
|
private URLConnection |
con
|
private String |
fullUrl
|
private int |
postBytesRead
|
private InputStream |
postIS
|
private long |
postISLength
|
private static String |
RESOURCE
|
private static int |
sleepTime
|
private static int |
totalAttempts
|
private boolean |
useGET
|
private boolean |
useGZIP
|
private static boolean |
VERBOSE
|
private static String |
versionID
|
Fields inherited from class java.net.URLConnection |
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches |
Constructor Summary | |
|
ReconnectedHttpURLCon(URL url)
Default case is: GET without GZIP Supported API: false |
|
ReconnectedHttpURLCon(URL url,
boolean useGZIP)
Default case is use GET method. |
private |
ReconnectedHttpURLCon(URL url,
boolean useGZIP,
InputStream is,
long length)
|
|
ReconnectedHttpURLCon(URL url,
InputStream is,
long length)
Use POST method; the accepted input stream may or may not be gzipped. |
Method Summary | |
void |
connect()
|
static void |
fileDownload(HTTPRequest request,
HTTPResponse response)
|
private String |
findKeyValue(String key)
|
InputStream |
getInputStream()
Supported API: false |
OutputStream |
getOutputStream()
Supported API: false |
int |
getResponseCode()
Supported API: false |
private static void |
headerHandle(InputStream is,
long rmtBytesRead,
boolean isForPost)
|
private void |
pullResume()
|
private void |
pushResume()
|
private void |
pushResume0()
|
void |
pushStream()
Supported API: false |
private void |
writePostISToFile(String tempFileName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private URLConnection con
private boolean useGET
private boolean useGZIP
private static final String versionID
private static boolean VERBOSE
private String fullUrl
private long bytesDownloaded
private EnumeratorVector backISEnum
private InputStream postIS
private long postISLength
private static String basePath
private int attempts
private static int totalAttempts
private static int sleepTime
private int postBytesRead
Constructor Detail |
public ReconnectedHttpURLCon(URL url) throws IOException
url
-
IOException
public ReconnectedHttpURLCon(URL url, boolean useGZIP) throws IOException
url
- useGZIP
-
IOException
public ReconnectedHttpURLCon(URL url, InputStream is, long length) throws IOException
url
- is
- length
-
IOException
private ReconnectedHttpURLCon(URL url, boolean useGZIP, InputStream is, long length) throws IOException
Method Detail |
public InputStream getInputStream() throws IOException
IOException
public OutputStream getOutputStream() throws IOException
IOException
public int getResponseCode() throws IOException
IOException
public void pushStream() throws IOException
IOException
public void connect() throws IOException
IOException
private void pullResume() throws IOException
IOException
private void pushResume0() throws IOException
IOException
private void pushResume() throws IOException
IOException
private void writePostISToFile(String tempFileName) throws IOException
IOException
public static void fileDownload(HTTPRequest request, HTTPResponse response) throws IOException
IOException
private static void headerHandle(InputStream is, long rmtBytesRead, boolean isForPost) throws IOException
IOException
private String findKeyValue(String key)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |