Java Doc for BrowserHelper.java in  » Portal » Open-Portal » com » sun » portal » proxylet » client » common » browser » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Portal » Open Portal » com.sun.portal.proxylet.client.common.browser 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.portal.proxylet.client.common.browser.BrowserHelper

BrowserHelper
public class BrowserHelper (Code)

Inner Class :static class WPAD



Method Summary
static  booleancheckAutoDetectSetting()
     Use the WPAD ( DNS ) protocol to retrive PAC file.
public static  StringcheckLocation(String location, Component comp)
    
public static  booleancheckManualSetting(String configList)
     manualConfigSetting This function is responsible for extracting the manual proxy host and port values.
public static  booleancheckPACFileSetting(String autoConfigURL)
     autoConfigURLSetting This function is responsible for extracting the proxy host and port values from PAC file.
static  voidextractProxyServerFromPAC(String pacFileBody)
    
public static  voidgeneratePacContent(int port)
     This function generates PAC file content dynamically.
public static  StringgetNewfileLocation(Component comp)
    
public static  voidparsePacFile(String autoConfigURL)
     parsePACFile This function is responsible for extracting proxy server and port for gateway address from the PAC file.
public static  voidparseResult(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  StringprocessProxyInfo(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  booleanvalidateProxy()
    
public static  StringwritePacFile(String pacfileLocation, Component comp)
     WritePacFile This function is responsible for writing the pacfile to local system.



Method Detail
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.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

ww___w___.___j__a__v_a2__s_.___c___om | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.