Package java.net
Class HttpURLConnection
java.lang.Object
java.net.URLConnection
java.net.HttpURLConnection
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
protected boolean
protected String
protected int
protected String
Fields inherited from class java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
static boolean
boolean
int
static void
setFollowRedirects
(boolean var0) void
setInstanceFollowRedirects
(boolean var0) void
setRequestMethod
(String var0) abstract boolean
Methods inherited from class java.net.URLConnection
addRequestProperty, connect, getAllowUserInteraction, getContent, getContent, getContentEncoding, getContentLength, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFields, getIfModifiedSince, getInputStream, getLastModified, getOutputStream, getPermission, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setRequestProperty, setUseCaches
-
Field Details
-
HTTP_ACCEPTED
public static final int HTTP_ACCEPTED- See Also:
-
HTTP_BAD_GATEWAY
public static final int HTTP_BAD_GATEWAY- See Also:
-
HTTP_BAD_METHOD
public static final int HTTP_BAD_METHOD- See Also:
-
HTTP_BAD_REQUEST
public static final int HTTP_BAD_REQUEST- See Also:
-
HTTP_CLIENT_TIMEOUT
public static final int HTTP_CLIENT_TIMEOUT- See Also:
-
HTTP_CONFLICT
public static final int HTTP_CONFLICT- See Also:
-
HTTP_CREATED
public static final int HTTP_CREATED- See Also:
-
HTTP_ENTITY_TOO_LARGE
public static final int HTTP_ENTITY_TOO_LARGE- See Also:
-
HTTP_FORBIDDEN
public static final int HTTP_FORBIDDEN- See Also:
-
HTTP_GATEWAY_TIMEOUT
public static final int HTTP_GATEWAY_TIMEOUT- See Also:
-
HTTP_GONE
public static final int HTTP_GONE- See Also:
-
HTTP_INTERNAL_ERROR
public static final int HTTP_INTERNAL_ERROR- See Also:
-
HTTP_LENGTH_REQUIRED
public static final int HTTP_LENGTH_REQUIRED- See Also:
-
HTTP_MOVED_PERM
public static final int HTTP_MOVED_PERM- See Also:
-
HTTP_MOVED_TEMP
public static final int HTTP_MOVED_TEMP- See Also:
-
HTTP_MULT_CHOICE
public static final int HTTP_MULT_CHOICE- See Also:
-
HTTP_NOT_ACCEPTABLE
public static final int HTTP_NOT_ACCEPTABLE- See Also:
-
HTTP_NOT_AUTHORITATIVE
public static final int HTTP_NOT_AUTHORITATIVE- See Also:
-
HTTP_NOT_FOUND
public static final int HTTP_NOT_FOUND- See Also:
-
HTTP_NOT_IMPLEMENTED
public static final int HTTP_NOT_IMPLEMENTED- See Also:
-
HTTP_NOT_MODIFIED
public static final int HTTP_NOT_MODIFIED- See Also:
-
HTTP_NO_CONTENT
public static final int HTTP_NO_CONTENT- See Also:
-
HTTP_OK
public static final int HTTP_OK- See Also:
-
HTTP_PARTIAL
public static final int HTTP_PARTIAL- See Also:
-
HTTP_PAYMENT_REQUIRED
public static final int HTTP_PAYMENT_REQUIRED- See Also:
-
HTTP_PRECON_FAILED
public static final int HTTP_PRECON_FAILED- See Also:
-
HTTP_PROXY_AUTH
public static final int HTTP_PROXY_AUTH- See Also:
-
HTTP_REQ_TOO_LONG
public static final int HTTP_REQ_TOO_LONG- See Also:
-
HTTP_RESET
public static final int HTTP_RESET- See Also:
-
HTTP_SEE_OTHER
public static final int HTTP_SEE_OTHER- See Also:
-
HTTP_UNAUTHORIZED
public static final int HTTP_UNAUTHORIZED- See Also:
-
HTTP_UNAVAILABLE
public static final int HTTP_UNAVAILABLE- See Also:
-
HTTP_UNSUPPORTED_TYPE
public static final int HTTP_UNSUPPORTED_TYPE- See Also:
-
HTTP_USE_PROXY
public static final int HTTP_USE_PROXY- See Also:
-
HTTP_VERSION
public static final int HTTP_VERSION- See Also:
-
instanceFollowRedirects
protected boolean instanceFollowRedirects -
method
-
responseCode
protected int responseCode -
responseMessage
-
-
Constructor Details
-
HttpURLConnection
-
-
Method Details
-
disconnect
public abstract void disconnect() -
getErrorStream
-
getFollowRedirects
public static boolean getFollowRedirects() -
getInstanceFollowRedirects
public boolean getInstanceFollowRedirects() -
getRequestMethod
-
getResponseCode
- Throws:
IOException
-
getResponseMessage
- Throws:
IOException
-
setFollowRedirects
public static void setFollowRedirects(boolean var0) -
setInstanceFollowRedirects
public void setInstanceFollowRedirects(boolean var0) -
setRequestMethod
- Throws:
ProtocolException
-
usingProxy
public abstract boolean usingProxy()
-