Java Doc for BrowserWidgetHostChecker.java in  » Ajax » GWT » com » google » gwt » dev » shell » 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 » Ajax » GWT » com.google.gwt.dev.shell 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.google.gwt.dev.shell.BrowserWidgetHostChecker

BrowserWidgetHostChecker
public class BrowserWidgetHostChecker (Code)
This class contains utility functions to do whitelist/blacklist handling.




Method Summary
public static  booleanblacklistRegexes(String regexes)
     This method blacklists the supplied regexes, separated by comma or space.
public static  voidblacklistURL(String url)
     This method blacklists the supplied URL, and any that share the same host.
public static  StringcheckHost(String hostUnderConsideration, Set<String> hosts)
     This method checks the host to see if it is in the supplied set of regexes.
public static  StringcomputeHostRegex(String url)
     This method computes the host regular expression for the given url.
public static  StringformatBlackList()
     This method formats the blacklist for display in the treeLogger.
public static  StringformatRules(Set<String> hosts)
     This method formats the list of rules for display in the treeLogger.
public static  StringformatWhiteList()
     This method formats the whitelist for display in the treeLogger.
public static  booleanisAlwaysWhitelisted(String url)
     This method returns true if the host is always admissable, regardless of the blacklist.
public static  StringmatchBlacklisted(String url)
     This method returns true if the host is forbidden.
public static  StringmatchWhitelisted(String url)
     This method returns true if the host is admissable, provided it is not on the blacklist.
public static  voidnotifyBlacklistedHost(String blacklistRuleFound, String url, TreeLogger header, TreeLogger.Type msgType)
     This method formats a message, and logs it to the treelogger, stating that the url was blocked.
public static  voidnotifyUntrustedHost(String url, TreeLogger header, TreeLogger.Type msgType)
     This method formats a message, and logs it to the treelogger, stating that the url was not trusted.
public static  booleanwhitelistRegexes(String regexes)
     This method whitelists the supplied String of regexes, separated by comma or space.
public static  voidwhitelistURL(String url)
     This method whitelists the supplied URL, and any that share the same host.



Method Detail
blacklistRegexes
public static boolean blacklistRegexes(String regexes)(Code)
This method blacklists the supplied regexes, separated by comma or space.
Parameters:
  regexes - the regexes to be forbidden



blacklistURL
public static void blacklistURL(String url)(Code)
This method blacklists the supplied URL, and any that share the same host.
Parameters:
  url - the host to be forbidden



checkHost
public static String checkHost(String hostUnderConsideration, Set<String> hosts)(Code)
This method checks the host to see if it is in the supplied set of regexes.
Parameters:
  hostUnderConsideration - the host to be checked
Parameters:
  hosts - the set of regexes to be checked against true if the host matches



computeHostRegex
public static String computeHostRegex(String url)(Code)
This method computes the host regular expression for the given url.
Parameters:
  url - the url to be allowed or disallowed the regex that matches the host in the url



formatBlackList
public static String formatBlackList()(Code)
This method formats the blacklist for display in the treeLogger. the list of regexes as a String



formatRules
public static String formatRules(Set<String> hosts)(Code)
This method formats the list of rules for display in the treeLogger.
Parameters:
  hosts - the set of regexes that match hosts the list of regexes as a String



formatWhiteList
public static String formatWhiteList()(Code)
This method formats the whitelist for display in the treeLogger. the list of regexes as a String



isAlwaysWhitelisted
public static boolean isAlwaysWhitelisted(String url)(Code)
This method returns true if the host is always admissable, regardless of the blacklist.
Parameters:
  url - the URL to be verified returns true if the host is always admissable



matchBlacklisted
public static String matchBlacklisted(String url)(Code)
This method returns true if the host is forbidden.
Parameters:
  url - the URL to be verified returns the regex that specified the host matches the blacklist



matchWhitelisted
public static String matchWhitelisted(String url)(Code)
This method returns true if the host is admissable, provided it is not on the blacklist.
Parameters:
  url - the URL to be verified returns the regex that specified the host matches the whitelist



notifyBlacklistedHost
public static void notifyBlacklistedHost(String blacklistRuleFound, String url, TreeLogger header, TreeLogger.Type msgType)(Code)
This method formats a message, and logs it to the treelogger, stating that the url was blocked.
Parameters:
  url - the URL that was disallowed
Parameters:
  header - the treelogger under which these messages will be put
Parameters:
  msgType - either a caution or an error



notifyUntrustedHost
public static void notifyUntrustedHost(String url, TreeLogger header, TreeLogger.Type msgType)(Code)
This method formats a message, and logs it to the treelogger, stating that the url was not trusted.
Parameters:
  url - the URL that provoked the dialog box
Parameters:
  header - the treelogger under which these messages will be put
Parameters:
  msgType - either a caution or an error



whitelistRegexes
public static boolean whitelistRegexes(String regexes)(Code)
This method whitelists the supplied String of regexes, separated by comma or space.
Parameters:
  regexes - the regexes to be allowed



whitelistURL
public static void whitelistURL(String url)(Code)
This method whitelists the supplied URL, and any that share the same host.
Parameters:
  url - the host to be allowed



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)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.