Java Doc for SiteMap.java in  » J2EE » Sofia » com » salmonllc » sitemap » 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 » J2EE » Sofia » com.salmonllc.sitemap 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.salmonllc.sitemap.SiteMap

SiteMap
public class SiteMap (Code)
SOFIA site map implementation



Constructor Summary
public  SiteMap(String applicationName)
    

Method Summary
public  voidaddActionEntry(String entryName, String actionName, String actionEntry)
    
public  StringaddJavaScriptToUrl(String logicalName, String url)
    
public  StringgenerateConstants(String className)
    
public  String[]getActionEntries(String entryName)
     Returns a string array of all the action names for an entry.
public  StringgetActionEntry(String entryName, String actionName)
    
public  StringgetContext(String logicalName)
    
public  StringgetEntryName(String URI)
    
public  EnumerationgetEntryNames()
    
public  StringgetPopupFeatures(String logicalName)
    
public static  SiteMapgetSiteMap(String applicationName)
    
public  StringgetSiteMapURL(HttpServletRequest req, String logicalName)
    
public  StringgetSiteMapURL(HttpServletRequest req, String logicalName, String additionalParms)
    
public  StringgetSiteMapURL(HttpServletRequest req, String logicalName, String additionalParms, boolean javaScriptOK)
    
public  StringgetSiteMapURL(HttpServletRequest req, String logicalName, String additionalParms, boolean javaScriptOK, boolean doForwardOK)
    
public  StringgetURI(String logicalName)
    
public  booleanisSecure(String logicalName)
    
public synchronized  voidputEntry(String logicalName, String uri, String popupFeatures, boolean useForward, boolean secure, String context)
     Puts an entry into the site map.
public synchronized  voidremoveEntry(String logicalName)
    
public  voidsetContext(String logicalName, String context)
    
public  voidsetPopupFeatures(String logicalName, String popupFeatures)
    
public  voidsetSecure(String logicalName, boolean secure)
    
public  voidsetURI(String logicalName, String URI)
    
public  voidsetUseForward(String logicalName, boolean useForward)
    
public synchronized  voidupdate()
    
public  booleanuseForward(String logicalName)
    
public  booleanuseJavascript(String logicalName)
    


Constructor Detail
SiteMap
public SiteMap(String applicationName)(Code)
Creates an empty SiteMap Object pointing to a particular application




Method Detail
addActionEntry
public void addActionEntry(String entryName, String actionName, String actionEntry)(Code)
Adds an action to a site map entry
Parameters:
  entryName - The name of the entry to add the action for
Parameters:
  actionName - The identifier for the action
Parameters:
  actionEntry - Another site map entry that this action will invoke



addJavaScriptToUrl
public String addJavaScriptToUrl(String logicalName, String url)(Code)
Adds popup window javascript to a url entry if it indicates so in the site map



generateConstants
public String generateConstants(String className)(Code)
Generates a Java source code final class with constants for each sitemap entry



getActionEntries
public String[] getActionEntries(String entryName)(Code)
Returns a string array of all the action names for an entry.



getActionEntry
public String getActionEntry(String entryName, String actionName)(Code)
Returns the site map entry associated with a particular action
Parameters:
  entryName - The name of the site map entry
Parameters:
  actionName - The name of the action for that particular entry the name of the entry or null if not found



getContext
public String getContext(String logicalName)(Code)
Returns the Context relative to the web application root or null if there is no entry



getEntryName
public String getEntryName(String URI)(Code)
Returns the logical name for the site map entry given the URI of a particulat page or null if that URI isn't found in the site map
Parameters:
  URI - The URI for the page not including the servername and web application name



getEntryNames
public Enumeration getEntryNames()(Code)
Returns a list of entry names



getPopupFeatures
public String getPopupFeatures(String logicalName)(Code)
Returns the Popup window features for the specified entry



getSiteMap
public static SiteMap getSiteMap(String applicationName)(Code)
Returns the SiteMap object associated with a particular application



getSiteMapURL
public String getSiteMapURL(HttpServletRequest req, String logicalName)(Code)
Returns the url for a specified logical site map entry
Parameters:
  req - The HttpServletRequest used for this lookup
Parameters:
  logicalName - The name of the entry in the site map The absolute url to the page



getSiteMapURL
public String getSiteMapURL(HttpServletRequest req, String logicalName, String additionalParms)(Code)
Returns the url for a specified logical site map entry
Parameters:
  req - The HttpServletRequest used for this lookup
Parameters:
  logicalName - The name of the entry in the site map
Parameters:
  additionalParms - Any additional parameters that need to be appended to the url The absolute url to the page



getSiteMapURL
public String getSiteMapURL(HttpServletRequest req, String logicalName, String additionalParms, boolean javaScriptOK)(Code)
Returns the url for a specified logical site map entry
Parameters:
  req - The HttpServletRequest used for this lookup
Parameters:
  logicalName - The name of the entry in the site map
Parameters:
  additionalParms - Any additional parameters that need to be appended to the url
Parameters:
  javaScriptOK - True to allow JavaScript in the URL (for popup windows) The absolute url to the page



getSiteMapURL
public String getSiteMapURL(HttpServletRequest req, String logicalName, String additionalParms, boolean javaScriptOK, boolean doForwardOK)(Code)
Returns the url for a specified logical site map entry
Parameters:
  req - The HttpServletRequest used for this lookup
Parameters:
  logicalName - The name of the entry in the site map
Parameters:
  additionalParms - Any additional parameters that need to be appended to the url
Parameters:
  javaScriptOK - True to allow JavaScript in the URL (for popup windows)
Parameters:
  doForwardOK - True or false, the url being generated is in a contect where a forward can be used The absolute url to the page



getURI
public String getURI(String logicalName)(Code)
Returns the URI relative to the web application root or null if there is no entry



isSecure
public boolean isSecure(String logicalName)(Code)
Return true if the entry uses https



putEntry
public synchronized void putEntry(String logicalName, String uri, String popupFeatures, boolean useForward, boolean secure, String context)(Code)
Puts an entry into the site map. If the entry already exists it will be overwritten
Parameters:
  logicalName - The logical name of the site map entry
Parameters:
  uri - The URI of the page to go to when the entry is invoked
Parameters:
  useForward - true if the site map entry should use a forward instead of a redirect
Parameters:
  secure - true if the site map entry should jump to a secure url (https)



removeEntry
public synchronized void removeEntry(String logicalName)(Code)
Removes an entry from the list
Parameters:
  logicalName -



setContext
public void setContext(String logicalName, String context)(Code)
Sets the context relative to the web application for the entry



setPopupFeatures
public void setPopupFeatures(String logicalName, String popupFeatures)(Code)
Sets the Popup Features for the page or null to open in the same window



setSecure
public void setSecure(String logicalName, boolean secure)(Code)
Sets whether the URI entry is secure



setURI
public void setURI(String logicalName, String URI)(Code)
Sets the URI relative to the web application for the entry



setUseForward
public void setUseForward(String logicalName, boolean useForward)(Code)
Sets whether the URI entry uses a forward



update
public synchronized void update() throws IOException(Code)
Writes out the sitemap object to an xml file in the properties path



useForward
public boolean useForward(String logicalName)(Code)
Returns true if the entry uses a forward instead of a redirect



useJavascript
public boolean useJavascript(String logicalName)(Code)
Returns true if the entry uses javascript to open a window as a popup



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.