Class URL.HttpURLConnection
java.lang.Object
com.codename1.io.URL.URLConnection
com.codename1.io.URL.HttpURLConnection
- Enclosing class:
URL
-
Method Summary
Modifier and TypeMethodDescriptionvoidconnect()intjava.io.InputStreamjava.io.OutputStreamvoidsetRequestMethod(String method) Methods inherited from class URL.URLConnection
getConnectTimeout, getContentLengthLong, getDoInput, getDoOutput, getReadTimeout, getURL, setConnectTimeout, setDoInput, setDoOutput, setReadTimeout, setRequestPropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
connect
public void connect() throws java.io.IOException- Specified by:
connectin classURL.URLConnection- Throws:
java.io.IOException
-
setRequestMethod
-
getContentLength
public int getContentLength()- Specified by:
getContentLengthin classURL.URLConnection
-
getContentType
- Specified by:
getContentTypein classURL.URLConnection
-
getHeaderField
- Specified by:
getHeaderFieldin classURL.URLConnection
-
getHeaderFields
- Specified by:
getHeaderFieldsin classURL.URLConnection
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOException- Specified by:
getInputStreamin classURL.URLConnection- Throws:
java.io.IOException
-
getOutputStream
public java.io.OutputStream getOutputStream() throws java.io.IOException- Specified by:
getOutputStreamin classURL.URLConnection- Throws:
java.io.IOException
-