artefaktur
software engineer &        architecture

 
 
 
 

class URLConnection

Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::net::URLConnection Class Reference

#include <URLConnection.h>

Inheritance diagram for acdk::net::URLConnection:

acdk::lang::Object acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch acdk::net::FileURLConnection acdk::net::ftp::FTPURLConnection acdk::net::HttpURLConnection acdk::net::InetURLConnection acdk::net::HttpURLConnectionImpl acdkx::net::ssl::HTTPSUrlConnection List of all members.

Public Member Functions

 URLConnection (IN(RURL) url)
virtual bool getAllowUserInteraction ()
virtual void setAllowUserInteraction (bool allow)
virtual bool getDoInput ()
virtual void setDoInput (bool input)
virtual bool getDoOutput ()
virtual void setDoOutput (bool output)
virtual bool getUseCaches ()
virtual void setUseCaches (bool use_caches)
virtual jlong getIfModifiedSince ()
virtual void setIfModifiedSince (jlong modified_since)
virtual RString getRequestProperty (IN(RString) key)
virtual void setRequestProperty (IN(RString) key, IN(RString) value)
virtual RURL getURL ()
virtual void connect ()=0
virtual RReader getInputStream ()
virtual RWriter getOutputStream ()
virtual RString getContentEncoding ()
virtual int getContentLength ()
virtual RString getContentType ()
virtual jlong getDate ()
virtual jlong getExpiration ()
virtual jlong getLastModified ()
virtual RString getHeaderFieldKey (int index)
virtual RString getHeaderField (int index)
virtual RString getHeaderField (IN(RString) name)
virtual jlong getHeaderFieldDate (IN(RString) key, jlong def)
virtual int getHeaderFieldInt (IN(RString) key, int def)
virtual acdk::lang::Object getContent ()
virtual RString toString ()
 return a string representation of this object Object::toString() return getName() by default


Static Public Member Functions

void setContentHandlerFactory (IN(RContentHandlerFactory) fac)
bool getDefaultAllowUserInteraction ()
void setDefaultAllowUserInteraction (bool allow)
RString getDefaultRequestProperty (IN(RString) key)
void setDefaultRequestProperty (IN(RString) key, RString value)
RString guessContentTypeFromStream (IN(RReader) is)
RFileNameMap getFileNameMap ()
void setFileNameMap (IN(RFileNameMap) fileNameMap)
bool getDefaultUseCaches ()
void setDefaultUseCaches (bool use)

Static Protected Member Functions

RString guessContentTypeFromName (IN(RString) filename)

Protected Attributes

bool allowUserInteraction
bool connected
bool doInput
bool doOutput
bool useCaches
jlong ifModifiedSince
RURL url

Private Attributes

RHashMap req_props

Static Private Attributes

RFileNameMap fileNameMap
RContentHandlerFactory factory
bool def_allow_user_inter
bool def_use_caches
RHashMap def_req_props

Friends

class _URLConnection_init

Constructor & Destructor Documentation

acdk::net::URLConnection::URLConnection IN(RURL url  ) 
 


Member Function Documentation

virtual void acdk::net::URLConnection::connect  )  [pure virtual]
 

Implemented in acdk::net::FileURLConnection, acdk::net::ftp::FTPURLConnection, acdk::net::HttpURLConnectionImpl, and acdk::net::InetURLConnection.

virtual bool acdk::net::URLConnection::getAllowUserInteraction  )  [inline, virtual]
 

virtual acdk::lang::Object acdk::net::URLConnection::getContent  )  [virtual]
 

virtual RString acdk::net::URLConnection::getContentEncoding  )  [inline, virtual]
 

virtual int acdk::net::URLConnection::getContentLength  )  [inline, virtual]
 

Reimplemented in acdk::net::FileURLConnection.

virtual RString acdk::net::URLConnection::getContentType  )  [virtual]
 

virtual jlong acdk::net::URLConnection::getDate  )  [inline, virtual]
 

bool acdk::net::URLConnection::getDefaultAllowUserInteraction  )  [inline, static]
 

RString acdk::net::URLConnection::getDefaultRequestProperty IN(RString key  )  [inline, static]
 

bool acdk::net::URLConnection::getDefaultUseCaches  )  [inline, static]
 

virtual bool acdk::net::URLConnection::getDoInput  )  [inline, virtual]
 

virtual bool acdk::net::URLConnection::getDoOutput  )  [inline, virtual]
 

virtual jlong acdk::net::URLConnection::getExpiration  )  [inline, virtual]
 

RFileNameMap acdk::net::URLConnection::getFileNameMap  )  [inline, static]
 

virtual RString acdk::net::URLConnection::getHeaderField IN(RString name  )  [virtual]
 

virtual RString acdk::net::URLConnection::getHeaderField int  index  )  [inline, virtual]
 

Reimplemented in acdk::net::HttpURLConnectionImpl.

virtual jlong acdk::net::URLConnection::getHeaderFieldDate IN(RString key,
jlong  def
[virtual]
 

virtual int acdk::net::URLConnection::getHeaderFieldInt IN(RString key,
int  def
[virtual]
 

virtual RString acdk::net::URLConnection::getHeaderFieldKey int  index  )  [inline, virtual]
 

Reimplemented in acdk::net::HttpURLConnectionImpl.

virtual jlong acdk::net::URLConnection::getIfModifiedSince  )  [inline, virtual]
 

virtual RReader acdk::net::URLConnection::getInputStream  )  [inline, virtual]
 

Reimplemented in acdk::net::FileURLConnection, acdk::net::ftp::FTPURLConnection, acdk::net::HttpURLConnectionImpl, and acdk::net::InetURLConnection.

virtual jlong acdk::net::URLConnection::getLastModified  )  [inline, virtual]
 

virtual RWriter acdk::net::URLConnection::getOutputStream  )  [inline, virtual]
 

Reimplemented in acdk::net::FileURLConnection, acdk::net::ftp::FTPURLConnection, and acdk::net::InetURLConnection.

virtual RString acdk::net::URLConnection::getRequestProperty IN(RString key  )  [inline, virtual]
 

virtual RURL acdk::net::URLConnection::getURL  )  [inline, virtual]
 

virtual bool acdk::net::URLConnection::getUseCaches  )  [inline, virtual]
 

RString acdk::net::URLConnection::guessContentTypeFromName IN(RString filename  )  [inline, static, protected]
 

RString acdk::net::URLConnection::guessContentTypeFromStream IN(RReader is  )  [inline, static]
 

virtual void acdk::net::URLConnection::setAllowUserInteraction bool  allow  )  [inline, virtual]
 

void acdk::net::URLConnection::setContentHandlerFactory IN(RContentHandlerFactory fac  )  [static]
 

void acdk::net::URLConnection::setDefaultAllowUserInteraction bool  allow  )  [inline, static]
 

void acdk::net::URLConnection::setDefaultRequestProperty IN(RString key,
RString  value
[inline, static]
 

void acdk::net::URLConnection::setDefaultUseCaches bool  use  )  [inline, static]
 

virtual void acdk::net::URLConnection::setDoInput bool  input  )  [inline, virtual]
 

virtual void acdk::net::URLConnection::setDoOutput bool  output  )  [inline, virtual]
 

void acdk::net::URLConnection::setFileNameMap IN(RFileNameMap fileNameMap  )  [inline, static]
 

virtual void acdk::net::URLConnection::setIfModifiedSince jlong  modified_since  )  [inline, virtual]
 

virtual void acdk::net::URLConnection::setRequestProperty IN(RString key,
IN(RString value
[inline, virtual]
 

virtual void acdk::net::URLConnection::setUseCaches bool  use_caches  )  [inline, virtual]
 

virtual RString acdk::net::URLConnection::toString  )  [virtual]
 

return a string representation of this object Object::toString() return getName() by default

Reimplemented from acdk::lang::Object.


Friends And Related Function Documentation

friend class _URLConnection_init [friend]
 


Member Data Documentation

bool acdk::net::URLConnection::allowUserInteraction [protected]
 

bool acdk::net::URLConnection::connected [protected]
 

bool acdk::net::URLConnection::def_allow_user_inter [static, private]
 

RHashMap acdk::net::URLConnection::def_req_props [static, private]
 

bool acdk::net::URLConnection::def_use_caches [static, private]
 

bool acdk::net::URLConnection::doInput [protected]
 

bool acdk::net::URLConnection::doOutput [protected]
 

RContentHandlerFactory acdk::net::URLConnection::factory [static, private]
 

RFileNameMap acdk::net::URLConnection::fileNameMap [static, private]
 

jlong acdk::net::URLConnection::ifModifiedSince [protected]
 

RHashMap acdk::net::URLConnection::req_props [private]
 

RURL acdk::net::URLConnection::url [protected]
 

bool acdk::net::URLConnection::useCaches [protected]
 

 
Last modified 2005-05-08 18:33 by SYSTEM By Artefaktur, Ing. Bureau Kommer