All Packages  Class Hierarchy  This Package  Previous  Next  Index	Java Books

Class com.openly.SLinkS.Net

java.lang.Object   |   +----com.openly.SLinkS.Net

public class Net
extends java.lang.Object

Variable Index

 o MAXFOLLOWS
Prevents infinite redirect loops.

Constructor Index

 o Net()

Method Index

 o fetch(String)
 o follow(String)
The follow method does not distinguish between 3xx Re-directs.
 o main(String[])

Variables

 o MAXFOLLOWS
 public static final int MAXFOLLOWS
Prevents infinite redirect loops.

Constructors

 o Net
 public Net()

Methods

 o follow
 public static java.lang.String follow(java.lang.String toFollow)
The follow method does not distinguish between 3xx Re-directs. Question Should HTTP-EQUIV directives in HTML meta-tags be followed? The current answer in the implementation is no, which reduces the overhead, and allows the possibility of truncating the redirects.

Parameters:
toFollow - the URL to follow. It is returned unchanged if there is an error.
Returns:
s the URL of the resource connected to by following redirects. This only works for http protocol as far as I know.
 o fetch
 public static java.lang.String fetch(java.lang.String pageURL)
Parameters:
pageURL - the web page to fetch
Returns:
s text of a web page at pageURL
 o main
 public static void main(java.lang.String args[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index	Java Books