Package com.sun.ts.lib.porting
Class TSHttpsURLConnection
java.lang.Object
com.sun.ts.lib.porting.TSHttpsURLConnection
- All Implemented Interfaces:
- TSHttpsURLConnectionInterface
TSHttpsURLConnection provides the HTTPS specific featurs
- 
Constructor SummaryConstructorsConstructorDescriptionInstantiates the class defined in porting.ts.HttpsURLConnection.class.1TSHttpsURLConnection(String sClass) Instantiates the class defined by sClass
- 
Method SummaryModifier and TypeMethodDescriptionvoidDisconnect connectiongetHeaderField(int num) Returns the value for the nth header field.getHeaderField(String name) Returns the value of the named header field.Returns an input stream that reads from the open connectionReturns an Output stream that writes to the open connectionvoidInitializes HttpsURLConnectionvoidsetDoInput(boolean doInput) Sets the value of the doInput field for this ConnectionvoidsetDoOutput(boolean doOutput) Sets the value of the doOutput field for this ConnectionvoidsetRequestProperty(String key, String value) Sets the general request property.voidsetUseCaches(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.
- 
Constructor Details- 
TSHttpsURLConnectionpublic TSHttpsURLConnection()Instantiates the class defined in porting.ts.HttpsURLConnection.class.1
- 
TSHttpsURLConnectionInstantiates the class defined by sClass- Parameters:
- sClass- - this class is used to instantiate implementation specific HttpsURLConnection class
 
 
- 
- 
Method Details- 
setDoInputpublic void setDoInput(boolean doInput) Sets the value of the doInput field for this Connection- Specified by:
- setDoInputin interface- TSHttpsURLConnectionInterface
- Parameters:
- doInput- - the new value (the default is false)
 
- 
setDoOutputpublic void setDoOutput(boolean doOutput) Sets the value of the doOutput field for this Connection- Specified by:
- setDoOutputin interface- TSHttpsURLConnectionInterface
- Parameters:
- doOutput- - the new value (the default is false)
 
- 
setUseCachespublic 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. If false, caches are to be ignored. The default value is set to true- Specified by:
- setUseCachesin interface- TSHttpsURLConnectionInterface
- Parameters:
- usecaches- - the new value (the default is true)
 
- 
setRequestPropertySets the general request property. If a property with the key already exists, overwrite its value with the new value.- Specified by:
- setRequestPropertyin interface- TSHttpsURLConnectionInterface
- Parameters:
- key- - the keyword by which the request is known
- value- - the value associated with it
 
- 
getHeaderFieldReturns the value of the named header field. If called on a connection that sets the same header multiple times only the last value is returned.- Specified by:
- getHeaderFieldin interface- TSHttpsURLConnectionInterface
- Parameters:
- name- - the name of the header field.
- Returns:
- String - the value of the named header field, or null if there is no such field in the header.
 
- 
getHeaderFieldReturns the value for the nth header field. It returns null if there are fewer than n fields- Specified by:
- getHeaderFieldin interface- TSHttpsURLConnectionInterface
- Parameters:
- num- - Integer num
- Returns:
- String - returns the value of the nth header field
 
- 
disconnectpublic void disconnect()Disconnect connection- Specified by:
- disconnectin interface- TSHttpsURLConnectionInterface
 
- 
getInputStreamReturns an input stream that reads from the open connection- Specified by:
- getInputStreamin interface- TSHttpsURLConnectionInterface
- Returns:
- InputStream - inputStream
- Throws:
- IOException
 
- 
getOutputStreamReturns an Output stream that writes to the open connection- Specified by:
- getOutputStreamin interface- TSHttpsURLConnectionInterface
- Returns:
- OutputStream - outputStream
- Throws:
- IOException
 
- 
initInitializes HttpsURLConnection- Specified by:
- initin interface- TSHttpsURLConnectionInterface
- Parameters:
- url- url used to open HttpsURLConnection
- Throws:
- IOException
 
 
-