org.hfbk.util.HTTPUtils Class Reference

List of all members.

Static Public Member Functions

static BufferedReader connect (URL url, boolean silent) throws IOException
static BufferedReader connectAsMozilla (URL url, boolean silent) throws IOException
static String fetch (String url, boolean silent)
static String fetchUntil (String url, Pattern pattern, boolean silent)
static String decode (String encoded)
static String encode (String encode)
static void SubmitPicture (String exsistingFileName, String ScriptSource)

Static Package Functions

static void download (URL url, File target) throws IOException

Detailed Description

HTTP protocol related utils.

Definition at line 29 of file

Member Function Documentation

static BufferedReader org.hfbk.util.HTTPUtils.connect ( URL  url,
boolean  silent 
) throws IOException [static]

connect to an URL, opening the web page.

a BufferedReader to read the page from

Definition at line 36 of file

static BufferedReader org.hfbk.util.HTTPUtils.connectAsMozilla ( URL  url,
boolean  silent 
) throws IOException [static]

connect to an URL predicting an older mozilla version sad we need this. some pages doesn't like non-browser services.

Definition at line 55 of file

static void ( URL  url,
File  target 
) throws IOException [static, package]

Definition at line 75 of file

static String org.hfbk.util.HTTPUtils.fetch ( String  url,
boolean  silent 
) [static]

fetches whole content from an URL (predicting mozilla)

silent don't log operation to stdout

Definition at line 100 of file

static String org.hfbk.util.HTTPUtils.fetchUntil ( String  url,
Pattern  pattern,
boolean  silent 
) [static]

fetches content from an URL until the given pattern matches to the last fetched line.

pattern Pattern to stop fetch.
silent don't log operation to stdout
content till pattern matches, inclusive.

Definition at line 127 of file

static String org.hfbk.util.HTTPUtils.decode ( String  encoded  )  [static]

convenient replacement for URLDecoder.decode

Definition at line 155 of file

static String org.hfbk.util.HTTPUtils.encode ( String  encode  )  [static]

convenient replacement for URLEncoder.encode

Definition at line 166 of file

static void org.hfbk.util.HTTPUtils.SubmitPicture ( String  exsistingFileName,
String  ScriptSource 
) [static]

Definition at line 174 of file

The documentation for this class was generated from the following file:
Generated on Tue Apr 7 17:57:46 2009 for visclient by  doxygen 1.5.1