Java Doc for HeaderResourceLib.java in  » Portal » jetspeed-2.1.3 » org » apache » jetspeed » headerresource » 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 » jetspeed 2.1.3 » org.apache.jetspeed.headerresource 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.jetspeed.headerresource.HeaderResourceLib

HeaderResourceLib
public class HeaderResourceLib (Code)
HeaderResourceLib static utility methods
author:
   Steve Milek
version:
   $Id: HeaderResourceLib.java 188569 2006-10-21 13:35:18Z smilek $


Field Summary
final protected static  StringEOL
    


Method Summary
public static  StringgetHeaderType(Integer headerTypeId)
    
public static  intgetHeaderTypeId(String headerType)
    
public static  StringgetPortalBaseUrl(RequestContext requestContext)
     Portal base url ( e.g.
public static  StringgetPortalBaseUrl(RequestContext requestContext, BasePortalURL baseUrlAccessOverride)
     Portal base url ( e.g.
public static  StringgetPortalBaseUrl(RequestContext requestContext, BasePortalURL baseUrlAccessOverride, boolean fullUrl)
     Portal base url ( e.g.
public static  StringgetPortalResourceUrl(String relativePath, String portalBaseUrl)
     Portal base url with relativePath argument appended ( e.g.
public static  StringgetPortalResourceUrl(String relativePath, String portalBaseUrl, boolean encode, RequestContext requestContext)
     Portal base url with relativePath argument appended ( e.g.
public static  StringgetPortalUrl(String portalBaseUrl, RequestContext requestContext)
     Portal base servlet url ( e.g.
public static  StringgetPortalUrl(String portalBaseUrl, RequestContext requestContext, String servletPath)
     Portal base servlet url ( e.g.
public static  StringgetPortalUrl(String relativePath, String portalUrl)
     Portal base servlet url with relativePath argument appended ( e.g.
public static  StringgetPortalUrl(String relativePath, String portalUrl, boolean encode, RequestContext requestContext)
     Portal base servlet url with relativePath argument appended ( e.g.
public static  StringmakeJSONBoolean(Object source)
    
public static  StringmakeJSONInteger(Object source, boolean quote)
    
public static  StringBuffermakeJSONObject(Map objectMap, boolean whenEmptyReturnNewObject)
    
public static  StringBuffermakeJSONObject(Map[] objectMaps, boolean whenEmptyReturnNewObject)
    
public static  StringBuffermakeJSONObject(StringBuffer jsonBuffer, Map objectMap, boolean whenEmptyReturnNewObject)
    
public static  StringBuffermakeJSONObject(StringBuffer jsonBuffer, Map[] objectMaps, boolean whenEmptyReturnNewObject)
    
public static  StringmakeJSONStringArray(Collection stringList)
    
public static  StringmakeJSONStringArray(Collection stringList, List compiledUniqueValues)
    
public static  StringmakeJavascriptStatement(String statement, String indent, boolean addEOL)
    

Field Detail
EOL
final protected static String EOL(Code)





Method Detail
getHeaderType
public static String getHeaderType(Integer headerTypeId)(Code)



getHeaderTypeId
public static int getHeaderTypeId(String headerType)(Code)



getPortalBaseUrl
public static String getPortalBaseUrl(RequestContext requestContext)(Code)
Portal base url ( e.g. http://localhost:8080/jetspeed ) portal base url



getPortalBaseUrl
public static String getPortalBaseUrl(RequestContext requestContext, BasePortalURL baseUrlAccessOverride)(Code)
Portal base url ( e.g. http://localhost:8080/jetspeed ) The optional BasePortalURL argument is provided to allow the common BasePortalURL usage by various jetspeed components to be properly supported in this url generation portal base url



getPortalBaseUrl
public static String getPortalBaseUrl(RequestContext requestContext, BasePortalURL baseUrlAccessOverride, boolean fullUrl)(Code)
Portal base url ( e.g. http://localhost:8080/jetspeed ) The optional BasePortalURL argument is provided to allow the common BasePortalURL usage by various jetspeed components to be properly supported in this url generation When the fullUrl parameter is true, the scheme, servername and port will be provided in the baseUrl, regardless if global property portalurl.relative.only is set to true in jetspeed.properties. This is needed for HeaderResourceImpl.jetspeedGenerateBasetag() for rendering a valid base tag (for which IE requires an absolute url to work).
Note: if portalurl.relative.only is set to true to support a Proxy based front end, better remove de (default) "header.basetag" rendering setting from assembly/headtag.xml, otherwise the desktop still won't work properly behind the Proxy. portal base url



getPortalResourceUrl
public static String getPortalResourceUrl(String relativePath, String portalBaseUrl)(Code)
Portal base url with relativePath argument appended ( e.g. http://localhost:8080/jetspeed/javascript/dojo/ ) Expects portalBaseUrl argument to be defined (ie. it does not call getPortalBaseUrl) portal base url with relativePath argument appended



getPortalResourceUrl
public static String getPortalResourceUrl(String relativePath, String portalBaseUrl, boolean encode, RequestContext requestContext)(Code)
Portal base url with relativePath argument appended ( e.g. http://localhost:8080/jetspeed/javascript/dojo/ ) Expects portalBaseUrl argument to be defined (ie. it does not call getPortalBaseUrl) RequestContext argument is needed only when encode argument is true (it's needed to call HttpServletResponse.encodeURL()) Method signature/behavior is a bit strange because this is a static method trying to accomodate callers that lazy cache portalBaseUrl string portal base url with relativePath argument appended



getPortalUrl
public static String getPortalUrl(String portalBaseUrl, RequestContext requestContext)(Code)
Portal base servlet url ( e.g. http://localhost:8080/jetspeed/desktop/ ) Expects portalBaseUrl argument to be defined (ie. it does not call getPortalBaseUrl) portal base servlet url



getPortalUrl
public static String getPortalUrl(String portalBaseUrl, RequestContext requestContext, String servletPath)(Code)
Portal base servlet url ( e.g. http://localhost:8080/jetspeed/desktop/ ) Expects portalBaseUrl argument to be defined (ie. it does not call getPortalBaseUrl) Also expects servletPath argument to be defined portal base servlet url



getPortalUrl
public static String getPortalUrl(String relativePath, String portalUrl)(Code)
Portal base servlet url with relativePath argument appended ( e.g. http://localhost:8080/jetspeed/desktop/default-page.psml ) Expects portalUrl argument to be defined (ie. it does not call getPortalUrl) portal base servlet url with relativePath argument appended



getPortalUrl
public static String getPortalUrl(String relativePath, String portalUrl, boolean encode, RequestContext requestContext)(Code)
Portal base servlet url with relativePath argument appended ( e.g. http://localhost:8080/jetspeed/desktop/default-page.psml ) Expects portalUrl argument to be defined (ie. it does not call getPortalUrl) RequestContext argument is needed only when encode argument is true (it's needed to call HttpServletResponse.encodeURL()) Method signature/behavior is a bit strange because this is a static method trying to accomodate callers that lazy cache portalUrl string portal base servlet url with relativePath argument appended



makeJSONBoolean
public static String makeJSONBoolean(Object source)(Code)



makeJSONInteger
public static String makeJSONInteger(Object source, boolean quote)(Code)



makeJSONObject
public static StringBuffer makeJSONObject(Map objectMap, boolean whenEmptyReturnNewObject)(Code)



makeJSONObject
public static StringBuffer makeJSONObject(Map[] objectMaps, boolean whenEmptyReturnNewObject)(Code)



makeJSONObject
public static StringBuffer makeJSONObject(StringBuffer jsonBuffer, Map objectMap, boolean whenEmptyReturnNewObject)(Code)



makeJSONObject
public static StringBuffer makeJSONObject(StringBuffer jsonBuffer, Map[] objectMaps, boolean whenEmptyReturnNewObject)(Code)



makeJSONStringArray
public static String makeJSONStringArray(Collection stringList)(Code)



makeJSONStringArray
public static String makeJSONStringArray(Collection stringList, List compiledUniqueValues)(Code)



makeJavascriptStatement
public static String makeJavascriptStatement(String statement, String indent, boolean addEOL)(Code)



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.