Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module : java.base - Package : java.net
Version documentée : Java SE 17

Classe « HttpURLConnection »

Informations générales

Héritage

java.lang.Object
    java.net.URLConnection
        java.net.HttpURLConnection

Définition

public abstract class HttpURLConnection extends java.net.URLConnection

Description

A venir.

Liste des attributs

Tous les attributs Attributs d'instance Attributs statiques Attributs dépréciés
QualificateursTypeNomDescription
public static int HTTP_ACCEPTED
public static int HTTP_BAD_GATEWAY
public static int HTTP_BAD_METHOD
public static int HTTP_BAD_REQUEST
public static int HTTP_CLIENT_TIMEOUT
public static int HTTP_CONFLICT
public static int HTTP_CREATED
public static int HTTP_ENTITY_TOO_LARGE
public static int HTTP_FORBIDDEN
public static int HTTP_GATEWAY_TIMEOUT
public static int HTTP_GONE
public static int HTTP_INTERNAL_ERROR
public static int HTTP_LENGTH_REQUIRED
public static int HTTP_MOVED_PERM
public static int HTTP_MOVED_TEMP
public static int HTTP_MULT_CHOICE
public static int HTTP_NOT_ACCEPTABLE
public static int HTTP_NOT_AUTHORITATIVE
public static int HTTP_NOT_FOUND
public static int HTTP_NOT_IMPLEMENTED
public static int HTTP_NOT_MODIFIED
public static int HTTP_NO_CONTENT
public static int HTTP_OK
public static int HTTP_PARTIAL
public static int HTTP_PAYMENT_REQUIRED
public static int HTTP_PRECON_FAILED
public static int HTTP_PROXY_AUTH
public static int HTTP_REQ_TOO_LONG
public static int HTTP_RESET
public static int HTTP_SEE_OTHER
public static int HTTP_SERVER_ERROR
public static int HTTP_UNAUTHORIZED
public static int HTTP_UNAVAILABLE
public static int HTTP_UNSUPPORTED_TYPE
public static int HTTP_USE_PROXY
public static int HTTP_VERSION
protected int chunkLength
protected int fixedContentLength
protected long fixedContentLengthLong
protected boolean instanceFollowRedirects
protected String method
protected int responseCode
protected String responseMessage

Liste des constructeurs

Constructeurs Constructeurs dépréciés
ConstructeurDescription
HttpURLConnection( URL u )

Liste des propriétés (getters/setters)

Propriétés Propriétés dépréciées
QualificateursTypeNomR/W
public Authenticator authenticator -/W
public int chunkedStreamingMode -/W
public InputStream errorStream R/-
public int fixedLengthStreamingMode -/W
public static boolean followRedirects R/W
public boolean instanceFollowRedirects R/W
public Permission permission R/-
public String requestMethod R/W
public int responseCode R/-
public String responseMessage R/-

Propriétés héritées de la classe java.net.URLConnection

allowUserInteraction, connectTimeout, content, contentEncoding, contentHandlerFactory, contentLength, contentLengthLong, contentType, date, defaultAllowUserInteraction, defaultUseCaches, doInput, doOutput, expiration, fileNameMap, headerFields, ifModifiedSince, inputStream, lastModified, outputStream, permission, readTimeout, requestProperties, uRL, useCaches

Propriétés héritées de la classe java.lang.Object

class

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes concrètes Méthodes abstraites Méthodes dépréciées
QualificateursType de retourPrototype de la méthodeDescription
public abstract void disconnect()
public InputStream getErrorStream()
public static boolean getFollowRedirects()
public String getHeaderField( int n )
public long getHeaderFieldDate( String name, long Default )
public String getHeaderFieldKey( int n )
public boolean getInstanceFollowRedirects()
public Permission getPermission()
public String getRequestMethod()
public int getResponseCode()
public String getResponseMessage()
public void setAuthenticator( Authenticator auth )
public void setChunkedStreamingMode( int chunklen )
public void setFixedLengthStreamingMode( int contentLength )
public void setFixedLengthStreamingMode( long contentLength )
public static void setFollowRedirects( boolean set )
public void setInstanceFollowRedirects( boolean followRedirects )
public void setRequestMethod( String method )
public abstract boolean usingProxy()

Méthodes héritées de la classe java.net.URLConnection

addRequestProperty, connect, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentLengthLong, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, getHeaderFields, getIfModifiedSince, getInputStream, getLastModified, getOutputStream, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString

Méthodes héritées de la classe java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait