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, setRequestPropertypublic void connect()
throws IOException
connect in class URL.URLConnectionIOExceptionpublic void setRequestMethod(String method)
public int getContentLength()
getContentLength in class URL.URLConnectionpublic String getContentType()
getContentType in class URL.URLConnectionpublic String getHeaderField(String s)
getHeaderField in class URL.URLConnectionpublic Map<String,List<String>> getHeaderFields()
getHeaderFields in class URL.URLConnectionpublic InputStream getInputStream() throws IOException
getInputStream in class URL.URLConnectionIOExceptionpublic OutputStream getOutputStream() throws IOException
getOutputStream in class URL.URLConnectionIOException