public class URL.HttpURLConnection extends URL.URLConnection
Modifier and Type | Method and Description |
---|---|
void |
connect() |
int |
getContentLength() |
String |
getContentType() |
String |
getHeaderField(String s) |
Map<String,List<String>> |
getHeaderFields() |
InputStream |
getInputStream() |
OutputStream |
getOutputStream() |
void |
setRequestMethod(String method) |
getConnectTimeout, getContentLengthLong, getDoInput, getDoOutput, getReadTimeout, getURL, setConnectTimeout, setDoInput, setDoOutput, setReadTimeout, setRequestProperty
public void connect() throws IOException
connect
in class URL.URLConnection
IOException
public void setRequestMethod(String method)
public int getContentLength()
getContentLength
in class URL.URLConnection
public String getContentType()
getContentType
in class URL.URLConnection
public String getHeaderField(String s)
getHeaderField
in class URL.URLConnection
public Map<String,List<String>> getHeaderFields()
getHeaderFields
in class URL.URLConnection
public InputStream getInputStream() throws IOException
getInputStream
in class URL.URLConnection
IOException
public OutputStream getOutputStream() throws IOException
getOutputStream
in class URL.URLConnection
IOException