faust.sacha.web.util
Class WebGlobal

java.lang.Object
  |
  +--faust.sacha.web.util.WebGlobal

public final class WebGlobal
extends java.lang.Object


Field Summary
static boolean DEBUG
           
static int DEFAULT_PORT
           
static boolean FOLLOW_INSIDE_REDIRECT
           
static boolean FOLLOW_OUTSIDE_REDIRECT
           
static int HTTP_DEFAULT_PORT
           
static java.lang.String HTTP_PASSWORD
           
static java.lang.String HTTP_USER
           
static int HTTPS_DEFAULT_PORT
           
static int MAX_NB_PARA_SITE_SPIDER
           
static int MAX_REQUEST_DOWNLOAD
           
static java.lang.String[] NON_HTTP_PROTOCOLS_LIST
           
static java.lang.String[] POTENTIAL_HTML_FILE_EXT
           
static java.lang.String PROPERTY_FILE_LOCATION
           
static java.lang.String PROPERTY_FILE_NAME
           
static java.lang.String PROPERTY_FOLDER
           
static java.lang.String PROTOCOL_DEFAULT
           
static java.lang.String[] PROTOCOL_LIST
           
static java.lang.String PROXY_HOST
           
static int PROXY_PORT
           
static int REQUEST_METHOD
           
static int REQUEST_METHOD_DELETE
           
static int REQUEST_METHOD_GET
           
static int REQUEST_METHOD_HEAD
           
static int REQUEST_METHOD_POST
           
static int SOCKET_TIMEOUT
           
static int URL_TYPE_FILE
           
static int URL_TYPE_FOLDER
           
static int URL_TYPE_UNKNOWN
           
static java.util.Hashtable URLS_TO_INCLUDE
           
static java.lang.String USER_AGENT
           
 
Constructor Summary
WebGlobal()
           
 
Method Summary
static void DEBUG_DUMP_OPTIONS()
           
static void followInsideRedirect(boolean redirect)
           
static void followOutsideRedirect(boolean redirect)
           
static int getTimeoutNbRetries()
           
static void initProperties()
           
static void main(java.lang.String[] args)
           
static void setDebug(boolean mode)
           
static void setRequestMethod(int requestMethod)
           
static void setTimeoutNbRetries(int nb)
           
static void setUserAgent(java.lang.String userAgent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HTTP_DEFAULT_PORT

public static final int HTTP_DEFAULT_PORT
See Also:
Constant Field Values

HTTPS_DEFAULT_PORT

public static final int HTTPS_DEFAULT_PORT
See Also:
Constant Field Values

PROTOCOL_DEFAULT

public static final java.lang.String PROTOCOL_DEFAULT
See Also:
Constant Field Values

PROTOCOL_LIST

public static final java.lang.String[] PROTOCOL_LIST

NON_HTTP_PROTOCOLS_LIST

public static final java.lang.String[] NON_HTTP_PROTOCOLS_LIST

REQUEST_METHOD_GET

public static final int REQUEST_METHOD_GET
See Also:
Constant Field Values

REQUEST_METHOD_HEAD

public static final int REQUEST_METHOD_HEAD
See Also:
Constant Field Values

REQUEST_METHOD_POST

public static final int REQUEST_METHOD_POST
See Also:
Constant Field Values

REQUEST_METHOD_DELETE

public static final int REQUEST_METHOD_DELETE
See Also:
Constant Field Values

DEFAULT_PORT

public static int DEFAULT_PORT

REQUEST_METHOD

public static int REQUEST_METHOD

URL_TYPE_UNKNOWN

public static final int URL_TYPE_UNKNOWN
See Also:
Constant Field Values

URL_TYPE_FILE

public static final int URL_TYPE_FILE
See Also:
Constant Field Values

URL_TYPE_FOLDER

public static final int URL_TYPE_FOLDER
See Also:
Constant Field Values

DEBUG

public static boolean DEBUG

USER_AGENT

public static java.lang.String USER_AGENT

PROXY_HOST

public static java.lang.String PROXY_HOST

PROXY_PORT

public static int PROXY_PORT

HTTP_USER

public static java.lang.String HTTP_USER

HTTP_PASSWORD

public static java.lang.String HTTP_PASSWORD

FOLLOW_INSIDE_REDIRECT

public static boolean FOLLOW_INSIDE_REDIRECT

FOLLOW_OUTSIDE_REDIRECT

public static boolean FOLLOW_OUTSIDE_REDIRECT

MAX_REQUEST_DOWNLOAD

public static int MAX_REQUEST_DOWNLOAD

POTENTIAL_HTML_FILE_EXT

public static java.lang.String[] POTENTIAL_HTML_FILE_EXT

SOCKET_TIMEOUT

public static int SOCKET_TIMEOUT

MAX_NB_PARA_SITE_SPIDER

public static int MAX_NB_PARA_SITE_SPIDER

PROPERTY_FILE_NAME

public static final java.lang.String PROPERTY_FILE_NAME
See Also:
Constant Field Values

PROPERTY_FOLDER

public static final java.lang.String PROPERTY_FOLDER
See Also:
Constant Field Values

PROPERTY_FILE_LOCATION

public static final java.lang.String PROPERTY_FILE_LOCATION

URLS_TO_INCLUDE

public static java.util.Hashtable URLS_TO_INCLUDE
Constructor Detail

WebGlobal

public WebGlobal()
Method Detail

initProperties

public static void initProperties()

setDebug

public static void setDebug(boolean mode)

setUserAgent

public static void setUserAgent(java.lang.String userAgent)

followInsideRedirect

public static void followInsideRedirect(boolean redirect)

followOutsideRedirect

public static void followOutsideRedirect(boolean redirect)

setRequestMethod

public static void setRequestMethod(int requestMethod)

setTimeoutNbRetries

public static void setTimeoutNbRetries(int nb)

getTimeoutNbRetries

public static int getTimeoutNbRetries()

DEBUG_DUMP_OPTIONS

public static void DEBUG_DUMP_OPTIONS()

main

public static void main(java.lang.String[] args)