public class TSHttpsURLConnection extends java.lang.Object implements TSHttpsURLConnectionInterface
| Constructor and Description |
|---|
TSHttpsURLConnection()
Instantiates the class defined in porting.ts.HttpsURLConnection.class.1
|
TSHttpsURLConnection(java.lang.String sClass)
Instantiates the class defined by sClass
|
| Modifier and Type | Method and Description |
|---|---|
void |
disconnect()
Disconnect 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 Connection
|
void |
setDoOutput(boolean doOutput)
Sets the value of the doOutput field for this Connection
|
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 for this Connection
If the UseCaches flag on the connection is true, the connection
is allowed to use whatever caches it can.
|
public TSHttpsURLConnection()
public TSHttpsURLConnection(java.lang.String sClass)
sClass - - this class is used to instantiate
implementation specific HttpsURLConnection classpublic void setDoInput(boolean doInput)
setDoInput in interface TSHttpsURLConnectionInterfacedoInput - - the new value (the default is false)public void setDoOutput(boolean doOutput)
setDoOutput in interface TSHttpsURLConnectionInterfacedoOutput - - the new value (the default is false)public void setUseCaches(boolean usecaches)
setUseCaches in interface TSHttpsURLConnectionInterfaceusecaches - - the new value (the default is true)public void setRequestProperty(java.lang.String key,
java.lang.String value)
setRequestProperty in interface TSHttpsURLConnectionInterfacekey - - the keyword by which the request is knownvalue - - the value associated with itpublic java.lang.String getHeaderField(java.lang.String name)
getHeaderField in interface TSHttpsURLConnectionInterfacename - - the name of the header field.public java.lang.String getHeaderField(int num)
getHeaderField in interface TSHttpsURLConnectionInterfacenum - - Integer numpublic void disconnect()
disconnect in interface TSHttpsURLConnectionInterfacepublic java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in interface TSHttpsURLConnectionInterfacejava.io.IOExceptionpublic java.io.OutputStream getOutputStream()
throws java.io.IOException
getOutputStream in interface TSHttpsURLConnectionInterfacejava.io.IOExceptionpublic void init(java.net.URL url)
throws java.io.IOException
init in interface TSHttpsURLConnectionInterfaceurl - url used to open HttpsURLConnectionjava.io.IOException