| java.lang.Object com.sun.portal.proxylet.client.common.browser.BrowserHelper
BrowserHelper | public class BrowserHelper (Code) | | |
Inner Class :static class WPAD | |
Method Summary | |
static boolean | checkAutoDetectSetting() Use the WPAD ( DNS ) protocol to retrive PAC file. | public static String | checkLocation(String location, Component comp) | public static boolean | checkManualSetting(String configList) manualConfigSetting
This function is responsible for extracting the manual
proxy host and port values. | public static boolean | checkPACFileSetting(String autoConfigURL) autoConfigURLSetting
This function is responsible for extracting the
proxy host and port values from PAC file. | static void | extractProxyServerFromPAC(String pacFileBody) | public static void | generatePacContent(int port) This function generates PAC file content dynamically. | public static String | getNewfileLocation(Component comp) | public static void | parsePacFile(String autoConfigURL) parsePACFile
This function is responsible for extracting
proxy server and port for gateway address
from the PAC file. | public static void | parseResult(String proxyList) This function parses the response from the server and stores it in Param
If the result string is null, we set the proxy host to DIRECT ( no proxy )
or The result can contain any number of the following build blocks, seperated by a ;
PROXY host:port
DIRECT
SOCKS host:port
The SOCKS block would be igored. | public static String | processProxyInfo(long proxyTypeProxy, long proxyTypeAutoProxyUrl, long proxyTypeAutoDetect, Component context, String mode, String autoconfigurl, String manaulinfo) Need to put all these parameters in to some proxyvalue object.. | public static boolean | validateProxy() | public static String | writePacFile(String pacfileLocation, Component comp) WritePacFile
This function is responsible for writing the pacfile to
local system. |
checkAutoDetectSetting | static boolean checkAutoDetectSetting()(Code) | | Use the WPAD ( DNS ) protocol to retrive PAC file.
|
checkLocation | public static String checkLocation(String location, Component comp)(Code) | | checkLocation
This function is responsible for checking the given
pacfile location is writable or not
String Returns the new config location |
checkManualSetting | public static boolean checkManualSetting(String configList)(Code) | | manualConfigSetting
This function is responsible for extracting the manual
proxy host and port values.
boolean Returns false is manual configuration is not set orif the configured proxy server information is incorrect. |
checkPACFileSetting | public static boolean checkPACFileSetting(String autoConfigURL)(Code) | | autoConfigURLSetting
This function is responsible for extracting the
proxy host and port values from PAC file.
boolean Returns false is autoConfigURL configuration isnot set or if the configured proxy serverinformation is incorrect. |
extractProxyServerFromPAC | static void extractProxyServerFromPAC(String pacFileBody) throws Exception(Code) | | |
generatePacContent | public static void generatePacContent(int port)(Code) | | This function generates PAC file content dynamically.
|
getNewfileLocation | public static String getNewfileLocation(Component comp)(Code) | | getNewfileLocation
This function is responsible for popping up the file
dialog to user and get the new location from the user
String Returns the new config location |
parsePacFile | public static void parsePacFile(String autoConfigURL)(Code) | | parsePACFile
This function is responsible for extracting
proxy server and port for gateway address
from the PAC file.
|
parseResult | public static void parseResult(String proxyList)(Code) | | This function parses the response from the server and stores it in Param
If the result string is null, we set the proxy host to DIRECT ( no proxy )
or The result can contain any number of the following build blocks, seperated by a ;
PROXY host:port
DIRECT
SOCKS host:port
The SOCKS block would be igored.
If only one block is present, we call the Param setClientProxyHost
and port.
If multiple blocks are present, we split the blocks and call the Param
set proxy list function
|
processProxyInfo | public static String processProxyInfo(long proxyTypeProxy, long proxyTypeAutoProxyUrl, long proxyTypeAutoDetect, Component context, String mode, String autoconfigurl, String manaulinfo)(Code) | | Need to put all these parameters in to some proxyvalue object.. passing these as
parameteres is not good...
Parameters: proxyTypeProxy - Parameters: proxyTypeAutoProxyUrl - Parameters: proxyTypeAutoDetect - Parameters: context - Parameters: mode - Parameters: autoconfigurl - Parameters: manaulinfo - |
validateProxy | public static boolean validateProxy()(Code) | | |
writePacFile | public static String writePacFile(String pacfileLocation, Component comp)(Code) | | WritePacFile
This function is responsible for writing the pacfile to
local system.
|
|
|