A URLConnectionImpl is an abstract class that holds a URL and its connection state, and input and/or output streams
![]() | ~URLConnectionImpl () Destructor |
![]() | getURL () const Returns the url |
![]() | setDoInput (bool doInp) Sets the connection to doIn |
![]() | getDoInput () const Returns an indication if this connection can be used for input |
![]() | setDoOutput (bool doOutp) Sets the connection to doOutp |
![]() | getDoOutput () const Returns an indication if this connection can be used for output |
![]() | isConnected () const Determines if there is a connection or not |
![]() | connect () Establishs a connection by calling the subclass doOpen method |
![]() | close () Closes the connection by calling doClose in the subclass |
![]() | getInputStream () Returns the input stream |
![]() | getOutputStream () Returns the output stream |
![]() | getContent () Returns the content of the input stream by calling the subclass method doGetContent that know how to read for this type of protocol |
![]() | paramString () const Returns a string representation for URLConnectionImpl which is used for debugging purposes |
![]() | URLConnectionImpl (const URL& url) Create this object |
![]() | doOpen () To open the connection |
![]() | doGetContent (InputStream &is) To get the content from the input stream |
![]() | doClose () Closes the connection |
![]() | doGetInputStream () Returns the input stream Must be implemented by the subclasses |
![]() | doGetOutputStream () Returns the output stream |
A URLConnectionImpl is an abstract class that holds a URL and its connection state, and input and/or output streams. The open, close, getInputSream, getOutputStream and getContent calls are implmented by the protocol-specific ConnectionImpls which are implemented in the same files as the protocol-specific URLHandlerImpls.
const URL& getURL() const
void setDoInput(bool doInp)
bool getDoInput() const
void setDoOutput(bool doOutp)
bool getDoOutput() const
bool isConnected() const
void connect()
Error if an illegal operation if neither DoInput or DoOutput
has been set
setConnected(bool); void close()
setConnected(bool) InputStream& getInputStream()
Error if the getInputStream is not set for input
OutputStream& getOutputStream()
Error if the getOutputStream is not set for output
string getContent()
virtual string paramString() const
URLConnectionImpl(const URL& url)
virtual void doOpen()
virtual string doGetContent(InputStream &is)
virtual void doClose()
virtual InputStream doGetInputStream()
virtual OutputStream doGetOutputStream()
alphabetic index hierarchy of classes
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de