Quadcap Embeddable Server

com.quadcap.http.client.HttpFetcher Class Reference

List of all members.

Static Public Member Functions

byte[] fetch (String url) throws Exception
byte[] fetch (String url, List headers) throws Exception
byte[] post (String url, String fileName, List headers) throws Exception
InputStream postStream (String url, String fileName, List headers) throws Exception
InputStream fetchStream (String url) throws Exception
void ripPlayList (InputStream is, List headers) throws Exception
void ripStream (String url, List headers) throws Exception
String getTitle (InputStream in) throws IOException
InputStream fetchStream (String url, List headers) throws IOException
InputStream fetch2 (String url) throws Exception
byte[] readStream (InputStream is) throws IOException
Hashtable buildTable (String fname) throws Exception
void checkTable (String fname, Hashtable t) throws Exception
void addAV (String fname) throws Exception
void check (String name) throws Exception
void main (String args[])
void doit () throws Exception
void doit (String args[]) throws Exception

Static Package Attributes

boolean checkLinks = false
boolean showResponseHeaders = false
byte[] delims = { 0x0d, 0x0a, 0x0d, 0x0a }
String fname = null
int repeat = 2
int delay = 0
Hashtable t
boolean times = false
boolean rip = false
String url = null
int limit = 0

Member Function Documentation

void com.quadcap.http.client.HttpFetcher.addAV String  fname  )  throws Exception [static]
 

Definition at line 351 of file HttpFetcher.java.

References com.quadcap.http.client.HttpFetcher.addAV(), com.quadcap.http.client.HttpFetcher.fname, com.quadcap.http.client.HttpFetcher.t, and com.quadcap.http.client.HttpFetcher.url.

Referenced by com.quadcap.http.client.HttpFetcher.addAV().

Hashtable com.quadcap.http.client.HttpFetcher.buildTable String  fname  )  throws Exception [static]
 

Definition at line 321 of file HttpFetcher.java.

References com.quadcap.http.client.HttpFetcher.buildTable(), com.quadcap.http.client.HttpFetcher.fname, com.quadcap.http.client.HttpFetcher.t, and com.quadcap.http.client.HttpFetcher.url.

Referenced by com.quadcap.http.client.HttpFetcher.buildTable().

void com.quadcap.http.client.HttpFetcher.check String  name  )  throws Exception [static]
 

Definition at line 370 of file HttpFetcher.java.

References com.quadcap.http.client.HttpFetcher.check(), com.quadcap.http.client.LinkChecker.printBadLinks(), and com.quadcap.http.client.LinkChecker.run().

Referenced by com.quadcap.http.client.HttpFetcher.check().

void com.quadcap.http.client.HttpFetcher.checkTable String  fname,
Hashtable  t
throws Exception [static]
 

Definition at line 334 of file HttpFetcher.java.

References com.quadcap.http.client.HttpFetcher.checkTable(), com.quadcap.http.client.HttpFetcher.fname, com.quadcap.http.client.HttpFetcher.t, and com.quadcap.http.client.HttpFetcher.url.

Referenced by com.quadcap.http.client.HttpFetcher.checkTable().

void com.quadcap.http.client.HttpFetcher.doit String  args[]  )  throws Exception [static]
 

Definition at line 409 of file HttpFetcher.java.

References com.quadcap.http.client.HttpFetcher.checkLinks, com.quadcap.http.client.HttpFetcher.delay, com.quadcap.http.client.HttpFetcher.doit(), com.quadcap.http.client.HttpFetcher.fname, com.quadcap.http.client.HttpFetcher.limit, com.quadcap.http.client.HttpFetcher.repeat, com.quadcap.http.client.HttpFetcher.rip, com.quadcap.http.client.HttpFetcher.showResponseHeaders, com.quadcap.http.client.HttpFetcher.t, com.quadcap.http.client.HttpFetcher.times, and com.quadcap.http.client.HttpFetcher.url.

void com.quadcap.http.client.HttpFetcher.doit  )  throws Exception [static]
 

Definition at line 396 of file HttpFetcher.java.

References com.quadcap.http.client.HttpFetcher.delay, com.quadcap.http.client.HttpFetcher.fname, com.quadcap.http.client.HttpFetcher.repeat, com.quadcap.http.client.HttpFetcher.t, com.quadcap.http.client.HttpFetcher.times, and com.quadcap.http.client.HttpFetcher.url.

Referenced by com.quadcap.http.client.HttpFetcher.doit(), and com.quadcap.http.client.HttpFetcher.main().

byte [] com.quadcap.http.client.HttpFetcher.fetch String  url,
List  headers
throws Exception [static]
 

Definition at line 75 of file HttpFetcher.java.

References com.quadcap.http.client.HttpFetcher.fetchStream(), com.quadcap.http.client.HttpFetcher.readStream(), and com.quadcap.http.client.HttpFetcher.url.

byte [] com.quadcap.http.client.HttpFetcher.fetch String  url  )  throws Exception [static]
 

Definition at line 71 of file HttpFetcher.java.

References com.quadcap.http.client.HttpFetcher.fetch(), and com.quadcap.http.client.HttpFetcher.url.

Referenced by com.quadcap.http.client.HttpFetcher.fetch().

InputStream com.quadcap.http.client.HttpFetcher.fetch2 String  url  )  throws Exception [static]
 

Definition at line 291 of file HttpFetcher.java.

References com.quadcap.http.client.HttpFetcher.fetch2(), and com.quadcap.http.client.HttpFetcher.url.

Referenced by com.quadcap.http.client.HttpFetcher.fetch2().

InputStream com.quadcap.http.client.HttpFetcher.fetchStream String  url,
List  headers
throws IOException [static]
 

Definition at line 248 of file HttpFetcher.java.

References com.quadcap.http.client.HttpFetcher.url.

InputStream com.quadcap.http.client.HttpFetcher.fetchStream String  url  )  throws Exception [static]
 

Definition at line 134 of file HttpFetcher.java.

References com.quadcap.http.client.HttpFetcher.fetchStream(), and com.quadcap.http.client.HttpFetcher.url.

Referenced by com.quadcap.http.client.HttpFetcher.fetch(), and com.quadcap.http.client.HttpFetcher.fetchStream().

String com.quadcap.http.client.HttpFetcher.getTitle InputStream  in  )  throws IOException [static]
 

Definition at line 226 of file HttpFetcher.java.

References com.quadcap.http.client.HttpFetcher.getTitle().

Referenced by com.quadcap.http.client.HttpFetcher.getTitle(), and com.quadcap.http.client.HttpFetcher.ripStream().

void com.quadcap.http.client.HttpFetcher.main String  args[]  )  [static]
 

Definition at line 376 of file HttpFetcher.java.

References com.quadcap.http.client.HttpFetcher.doit(), and com.quadcap.http.client.HttpFetcher.main().

Referenced by com.quadcap.http.client.HttpFetcher.main().

byte [] com.quadcap.http.client.HttpFetcher.post String  url,
String  fileName,
List  headers
throws Exception [static]
 

Definition at line 82 of file HttpFetcher.java.

References com.quadcap.http.client.HttpFetcher.post(), com.quadcap.http.client.HttpFetcher.postStream(), com.quadcap.http.client.HttpFetcher.readStream(), and com.quadcap.http.client.HttpFetcher.url.

Referenced by com.quadcap.http.client.HttpFetcher.post().

InputStream com.quadcap.http.client.HttpFetcher.postStream String  url,
String  fileName,
List  headers
throws Exception [static]
 

Definition at line 91 of file HttpFetcher.java.

References com.quadcap.http.client.HttpFetcher.postStream(), and com.quadcap.http.client.HttpFetcher.url.

Referenced by com.quadcap.http.client.HttpFetcher.post(), and com.quadcap.http.client.HttpFetcher.postStream().

byte [] com.quadcap.http.client.HttpFetcher.readStream InputStream  is  )  throws IOException [static]
 

Definition at line 298 of file HttpFetcher.java.

References com.quadcap.http.client.HttpFetcher.delims, com.quadcap.http.client.HttpFetcher.readStream(), and com.quadcap.http.client.HttpFetcher.showResponseHeaders.

Referenced by com.quadcap.http.client.HttpFetcher.fetch(), com.quadcap.http.client.HttpFetcher.post(), and com.quadcap.http.client.HttpFetcher.readStream().

void com.quadcap.http.client.HttpFetcher.ripPlayList InputStream  is,
List  headers
throws Exception [static]
 

Definition at line 138 of file HttpFetcher.java.

References com.quadcap.http.client.HttpFetcher.ripPlayList(), and com.quadcap.http.client.HttpFetcher.ripStream().

Referenced by com.quadcap.http.client.HttpFetcher.ripPlayList().

void com.quadcap.http.client.HttpFetcher.ripStream String  url,
List  headers
throws Exception [static]
 

Definition at line 155 of file HttpFetcher.java.

References com.quadcap.http.client.Mp3FrameStream.close(), com.quadcap.http.client.HttpFetcher.getTitle(), com.quadcap.http.client.Mp3FrameStream.init(), com.quadcap.http.client.HttpFetcher.ripStream(), com.quadcap.http.client.HttpFetcher.t, com.quadcap.http.client.HttpFetcher.url, and com.quadcap.http.client.Mp3FrameStream.write().

Referenced by com.quadcap.http.client.HttpFetcher.ripPlayList(), and com.quadcap.http.client.HttpFetcher.ripStream().


Member Data Documentation

boolean com.quadcap.http.client.HttpFetcher.checkLinks = false [static, package]
 

Definition at line 66 of file HttpFetcher.java.

Referenced by com.quadcap.http.client.HttpFetcher.doit().

int com.quadcap.http.client.HttpFetcher.delay = 0 [static, package]
 

Definition at line 389 of file HttpFetcher.java.

Referenced by com.quadcap.http.client.HttpFetcher.doit().

byte [] com.quadcap.http.client.HttpFetcher.delims = { 0x0d, 0x0a, 0x0d, 0x0a } [static, package]
 

Definition at line 69 of file HttpFetcher.java.

Referenced by com.quadcap.http.client.HttpFetcher.readStream().

String com.quadcap.http.client.HttpFetcher.fname = null [static, package]
 

Definition at line 387 of file HttpFetcher.java.

Referenced by com.quadcap.http.client.HttpFetcher.addAV(), com.quadcap.http.client.HttpFetcher.buildTable(), com.quadcap.http.client.HttpFetcher.checkTable(), and com.quadcap.http.client.HttpFetcher.doit().

int com.quadcap.http.client.HttpFetcher.limit = 0 [static, package]
 

Definition at line 394 of file HttpFetcher.java.

Referenced by com.quadcap.http.client.HttpFetcher.doit().

int com.quadcap.http.client.HttpFetcher.repeat = 2 [static, package]
 

Definition at line 388 of file HttpFetcher.java.

Referenced by com.quadcap.http.client.HttpFetcher.doit().

boolean com.quadcap.http.client.HttpFetcher.rip = false [static, package]
 

Definition at line 392 of file HttpFetcher.java.

Referenced by com.quadcap.http.client.HttpFetcher.doit().

boolean com.quadcap.http.client.HttpFetcher.showResponseHeaders = false [static, package]
 

Definition at line 67 of file HttpFetcher.java.

Referenced by com.quadcap.http.client.HttpFetcher.doit(), and com.quadcap.http.client.HttpFetcher.readStream().

Hashtable com.quadcap.http.client.HttpFetcher.t [static, package]
 

Definition at line 390 of file HttpFetcher.java.

Referenced by com.quadcap.http.client.HttpFetcher.addAV(), com.quadcap.http.client.HttpFetcher.buildTable(), com.quadcap.http.client.HttpFetcher.checkTable(), com.quadcap.http.client.HttpFetcher.doit(), and com.quadcap.http.client.HttpFetcher.ripStream().

boolean com.quadcap.http.client.HttpFetcher.times = false [static, package]
 

Definition at line 391 of file HttpFetcher.java.

Referenced by com.quadcap.http.client.HttpFetcher.doit().

String com.quadcap.http.client.HttpFetcher.url = null [static, package]
 

Definition at line 393 of file HttpFetcher.java.

Referenced by com.quadcap.http.client.HttpFetcher.addAV(), com.quadcap.http.client.HttpFetcher.buildTable(), com.quadcap.http.client.HttpFetcher.checkTable(), com.quadcap.http.client.HttpFetcher.doit(), com.quadcap.http.client.HttpFetcher.fetch(), com.quadcap.http.client.HttpFetcher.fetch2(), com.quadcap.http.client.HttpFetcher.fetchStream(), com.quadcap.http.client.HttpFetcher.post(), com.quadcap.http.client.HttpFetcher.postStream(), and com.quadcap.http.client.HttpFetcher.ripStream().