Java Doc for Web.java in  » ERP-CRM-Financial » sakai » org » sakaiproject » util » 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 » ERP CRM Financial » sakai » org.sakaiproject.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.sakaiproject.util.Web

Web
public class Web (Code)

Web is a web (html, http, etc) technlogies collection of helper methods.



Field Summary
final protected static  StringESCAPE_URL
    
final protected static  StringESCAPE_URL_SPECIAL
    


Method Summary
protected static  voiddisplayStringChars(PrintWriter out, String str)
    
public static  StringescapeHtml(String value)
     Escape a plaintext string so that it can be output as part of an HTML document.
public static  StringescapeHtmlFormattedText(String value)
     Escape HTML-formatted text in preparation to include it in an HTML document.
Parameters:
  value - The string to escape.
public static  StringescapeJavascript(String value)
     Return a string based on value that is safe to place into a javascript / html identifier: anything not alphanumeric change to 'x'.
public static  StringescapeJsQuoted(String value)
     Return a string based on value that is safe to place into a javascript value that is in single quiotes.
Parameters:
  value - The string to escape.
public static  StringescapeUrl(String id)
     Return a string based on id that is fully escaped using URL rules, using a UTF-8 underlying encoding.
Parameters:
  id - The string to escape.
final protected static  charhexDigit(int i)
     Returns the hex digit cooresponding to a number between 0 and 15.
Parameters:
  i - The number to get the hex digit for.
public static  StringmakePath(String[] parts, int start, int end)
     Form a path string from the parts of the array starting at index start to the end, each with a '/' in front.
protected static  voidprint(PrintWriter out, String name, int value)
    
protected static  voidprint(PrintWriter out, String name, String value)
    
public static  StringreturnUrl(HttpServletRequest req, String path)
     Compute the URL that would return to this servlet based on the current request, with the optional path and parameters
Parameters:
  req - The request.
public static  voidsendAutoUpdate(PrintWriter out, HttpServletRequest req, String placementId, int updateTime)
    
public static  StringserverUrl(HttpServletRequest req)
     Compute the URL that would return to this server based on the current request.
public static  Stringsnoop(PrintWriter out, boolean html, ServletConfig config, HttpServletRequest req)
    
final protected static  StringtoHex(byte b)
     Returns a hex representation of a byte.
Parameters:
  b - The byte to convert to hex.

Field Detail
ESCAPE_URL
final protected static String ESCAPE_URL(Code)
These characters are escaped when making a URL



ESCAPE_URL_SPECIAL
final protected static String ESCAPE_URL_SPECIAL(Code)
These can't be encoded in URLs safely even using %nn notation, so encode them using our own custom URL encoding, which the ParameterParser decodes





Method Detail
displayStringChars
protected static void displayStringChars(PrintWriter out, String str)(Code)



escapeHtml
public static String escapeHtml(String value)(Code)
Escape a plaintext string so that it can be output as part of an HTML document. Amperstand, greater-than, less-than, newlines, etc, will be escaped so that they display (instead of being interpreted as formatting).
Parameters:
  value - The string to escape. value fully escaped for HTML.



escapeHtmlFormattedText
public static String escapeHtmlFormattedText(String value)(Code)
Escape HTML-formatted text in preparation to include it in an HTML document.
Parameters:
  value - The string to escape. value escaped for HTML.



escapeJavascript
public static String escapeJavascript(String value)(Code)
Return a string based on value that is safe to place into a javascript / html identifier: anything not alphanumeric change to 'x'. If the first character is not alphabetic, a letter 'i' is prepended.
Parameters:
  value - The string to escape. value fully escaped using javascript / html identifier rules.



escapeJsQuoted
public static String escapeJsQuoted(String value)(Code)
Return a string based on value that is safe to place into a javascript value that is in single quiotes.
Parameters:
  value - The string to escape. value escaped.



escapeUrl
public static String escapeUrl(String id)(Code)
Return a string based on id that is fully escaped using URL rules, using a UTF-8 underlying encoding.
Parameters:
  id - The string to escape. id fully escaped using URL rules.



hexDigit
final protected static char hexDigit(int i)(Code)
Returns the hex digit cooresponding to a number between 0 and 15.
Parameters:
  i - The number to get the hex digit for. The hex digit cooresponding to that number.
exception:
  java.lang.IllegalArgumentException - If supplied digit is not between 0 and 15 inclusive.



makePath
public static String makePath(String[] parts, int start, int end)(Code)
Form a path string from the parts of the array starting at index start to the end, each with a '/' in front.
Parameters:
  parts - The parts strings
Parameters:
  start - The index of the first part to use
Parameters:
  end - The index past the last part to use a path string from the parts of the array starting at index start to the end, each with a '/' in front.



print
protected static void print(PrintWriter out, String name, int value)(Code)



print
protected static void print(PrintWriter out, String name, String value)(Code)



returnUrl
public static String returnUrl(HttpServletRequest req, String path)(Code)
Compute the URL that would return to this servlet based on the current request, with the optional path and parameters
Parameters:
  req - The request. The URL back to this servlet based on the current request.



sendAutoUpdate
public static void sendAutoUpdate(PrintWriter out, HttpServletRequest req, String placementId, int updateTime)(Code)
Send the HTML / Javascript to invoke an automatic update
Parameters:
  out -
Parameters:
  req - The request.
Parameters:
  placementId - The tool's placement id / presence location / part of the delivery address
Parameters:
  updateTime - The time (seconds) between courier checks



serverUrl
public static String serverUrl(HttpServletRequest req)(Code)
Compute the URL that would return to this server based on the current request. Note: this method is duplicated in the kernel/request RequestFilter.java
Parameters:
  req - The request. The URL back to this server based on the current request.



snoop
public static String snoop(PrintWriter out, boolean html, ServletConfig config, HttpServletRequest req)(Code)



toHex
final protected static String toHex(byte b)(Code)
Returns a hex representation of a byte.
Parameters:
  b - The byte to convert to hex. The 2-digit hex value of the supplied byte.



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.