public abstract class THttpURLConnection extends TURLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
Modifier | Constructor and Description |
---|---|
protected |
THttpURLConnection(TURL url) |
Modifier and Type | Method and Description |
---|---|
abstract void |
disconnect() |
InputStream |
getErrorStream() |
static boolean |
getFollowRedirects() |
long |
getHeaderFieldDate(String field,
long defaultValue) |
boolean |
getInstanceFollowRedirects() |
String |
getRequestMethod() |
int |
getResponseCode() |
String |
getResponseMessage() |
void |
setChunkedStreamingMode(int chunklen) |
void |
setFixedLengthStreamingMode(int contentLength) |
static void |
setFollowRedirects(boolean auto) |
void |
setInstanceFollowRedirects(boolean followRedirects) |
void |
setRequestMethod(String method) |
addRequestProperty, connect, getAllowUserInteraction, getConnectTimeout, getContentEncoding, getContentLength, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getHeaderField, getHeaderField, getHeaderFieldInt, getHeaderFieldKey, getHeaderFields, getIfModifiedSince, getInputStream, getLastModified, getOutputStream, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, setAllowUserInteraction, setConnectTimeout, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString
protected String method
protected int responseCode
protected String responseMessage
protected boolean instanceFollowRedirects
protected int chunkLength
protected int fixedContentLength
public static final int HTTP_ACCEPTED
public static final int HTTP_BAD_GATEWAY
public static final int HTTP_BAD_METHOD
public static final int HTTP_BAD_REQUEST
public static final int HTTP_CLIENT_TIMEOUT
public static final int HTTP_CONFLICT
public static final int HTTP_CREATED
public static final int HTTP_ENTITY_TOO_LARGE
public static final int HTTP_FORBIDDEN
public static final int HTTP_GATEWAY_TIMEOUT
public static final int HTTP_GONE
public static final int HTTP_INTERNAL_ERROR
public static final int HTTP_LENGTH_REQUIRED
public static final int HTTP_MOVED_PERM
public static final int HTTP_MOVED_TEMP
public static final int HTTP_MULT_CHOICE
public static final int HTTP_NO_CONTENT
public static final int HTTP_NOT_ACCEPTABLE
public static final int HTTP_NOT_AUTHORITATIVE
public static final int HTTP_NOT_FOUND
public static final int HTTP_NOT_IMPLEMENTED
public static final int HTTP_NOT_MODIFIED
public static final int HTTP_OK
public static final int HTTP_PARTIAL
public static final int HTTP_PAYMENT_REQUIRED
public static final int HTTP_PRECON_FAILED
public static final int HTTP_PROXY_AUTH
public static final int HTTP_REQ_TOO_LONG
public static final int HTTP_RESET
public static final int HTTP_SEE_OTHER
@Deprecated public static final int HTTP_SERVER_ERROR
public static final int HTTP_USE_PROXY
public static final int HTTP_UNAUTHORIZED
public static final int HTTP_UNSUPPORTED_TYPE
public static final int HTTP_UNAVAILABLE
public static final int HTTP_VERSION
protected THttpURLConnection(TURL url)
public abstract void disconnect()
public InputStream getErrorStream()
public static boolean getFollowRedirects()
public String getRequestMethod()
public int getResponseCode() throws IOException
IOException
public String getResponseMessage() throws IOException
IOException
public static void setFollowRedirects(boolean auto)
public void setRequestMethod(String method) throws TProtocolException
TProtocolException
public boolean getInstanceFollowRedirects()
public void setInstanceFollowRedirects(boolean followRedirects)
public long getHeaderFieldDate(String field, long defaultValue)
getHeaderFieldDate
in class TURLConnection
public void setFixedLengthStreamingMode(int contentLength)
public void setChunkedStreamingMode(int chunklen)
Copyright © 2019. All rights reserved.