public interface TSHttpsURLConnectionInterface
| Modifier and Type | Method and Description |
|---|---|
void |
disconnect()
Disconnects connection
|
java.lang.String |
getHeaderField(int num)
Returns the value for the nth header field.
|
java.lang.String |
getHeaderField(java.lang.String name)
Returns the value of the named header field.
|
java.io.InputStream |
getInputStream()
Returns an input stream that reads from the open connection
|
java.io.OutputStream |
getOutputStream()
Returns an Output stream that writes to the open connection
|
void |
init(java.net.URL url)
Initializes HttpsURLConnection
|
void |
setDoInput(boolean doInput)
Sets the value of the doInput field for this URLConnection to the specified value.
|
void |
setDoOutput(boolean doOutput)
Sets the value of the doOutput field for this URLConnection to the specified value.
|
void |
setRequestProperty(java.lang.String key,
java.lang.String value)
Sets the general request property.
|
void |
setUseCaches(boolean usecaches)
Sets the value of the useCaches field of this URLConnection to the specified value.
|
void setDoInput(boolean doInput)
doInput - a boolean indicating whether the URL connection is used for input or notvoid setDoOutput(boolean doOutput)
doOutput - a boolean indicating whether the URL connection is used for output or notvoid setUseCaches(boolean usecaches)
usecaches - a boolean indicating whether or not to allow cachingvoid setRequestProperty(java.lang.String key,
java.lang.String value)
key - the keyword by which the request is knownvalue - the value associated with itjava.lang.String getHeaderField(java.lang.String name)
name - the name of the header field.java.lang.String getHeaderField(int num)
num - Integer numvoid disconnect()
java.io.InputStream getInputStream()
throws java.io.IOException
java.io.IOExceptionjava.io.OutputStream getOutputStream()
throws java.io.IOException
java.io.IOExceptionvoid init(java.net.URL url) throws java.io.IOException
url - url used to open HttpsURLConnectionjava.io.IOException