Java Doc for Site.java in  » Web-Framework » rife-1.6.1 » com » uwyn » rife » engine » 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 » Web Framework » rife 1.6.1 » com.uwyn.rife.engine 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.uwyn.rife.engine.Site

Site
public class Site (Code)
A Site contains all the elements that will be used to handle web requests
author:
   Geert Bevin (gbevin[remove] at uwyn dot com)
version:
   $Revision: 3806 $
since:
   1.0


Field Summary
final public static  StringDEFAULT_PARTICIPANT_NAME
    

Constructor Summary
protected  Site()
    

Method Summary
 voidaddElementInfo(String id, ElementInfo elementInfo, String url)
    
 voidaddFallback(ElementInfo elementInfo, String url)
    
public  voidaddListener(SiteListener listener)
     Adds the specified listener to receive site-related events.
 voidaddResourceModificationTime(UrlResource location, long modificationTime)
    
public synchronized  voidclearCaches()
    
public  booleancontainsId(String id)
     Indicates whether an absolute element ID is present in the site.
public  booleancontainsUrl(String url)
     Indicates whether a certain URL has a mapping in this site.
public  ElementToServicefindElementForRequest(String elementUrl)
     Looks for an element that corresponds to a particular request URL.

This method will determine the best element match by stepping up the path segments.

public  voidfireModified()
     Notifies the registered listeners that one of the site's resources has been detected as being modified.
public static  StringgetAbsoluteId(String id, ElementInfo reference)
     Transforms the provided element ID into an absolute element ID.
 Map<String, Method>getCachedInbeanSetters(String elementId)
    
 Map<String, Method>getCachedIncookieSetters(String elementId)
    
 Map<String, Method>getCachedInputSetters(String elementId)
    
 Map<String, Method>getCachedOutbeanGetters(String elementId)
    
 Map<String, Method>getCachedOutcookieGetters(String elementId)
    
 Map<String, Method>getCachedOutputGetters(String elementId)
    
 Map<String, Method>getCachedPropertySetters(String elementId)
    
public static  StringgetCanonicalId(String id)
     Transforms the provided element ID into a canonical ID without any parent indicators.
public  ContinuationManagergetContinuationManager()
     Retrieves the continuation manager that is used by this site.
 Collection<ElementInfo>getElementInfos()
    
public  Collection<String>getIds()
     Retrieves the collection of all the element IDs that are present in this site.
public static  SitegetRepInstance()
     Retrieves the default object as a Site from the participant that was returned by Site.getRepParticipant .
public static  ParticipantgetRepParticipant()
     Retrieves the participant named "ParticipantSite" from the default repository.
public  ResourceFindergetResourceFinder()
     Retrieves the resource finder that was used to populate this site.
public  Map<UrlResource, Long>getResourceModificationTimes()
     Retrieves a map of all the resources that were used to construct the site and their last modification time.
 SubmissionSettersCachegetSubmissionSettersCache(String elementId)
    
public  Collection<String>getUrls()
     Retrieves the collection of all the URLs that are present in this site.
public static  booleanhasRepInstance()
     Indicates whether the default repository has a participant named "ParticipantSite".
 voidmapElementId(String id, String url)
    
public synchronized  voidpopulateFromOther(Site otherSite)
     Populates this site instance from another site instance.

This method is typically used during the implementation of a SiteListener.modified method.

 voidputCachedInbeanSetters(String elementId, Map<String, Method> inbeanSetters)
    
 voidputCachedIncookieSetters(String elementId, Map<String, Method> incookieSetters)
    
 voidputCachedInputSetters(String elementId, Map<String, Method> inputSetters)
    
 voidputCachedOutbeanGetters(String elementId, Map<String, Method> outbeanGetters)
    
 voidputCachedOutcookieGetters(String elementId, Map<String, Method> outcookieGetters)
    
 voidputCachedOutputGetters(String elementId, Map<String, Method> outputGetters)
    
 voidputCachedPropertySetters(String elementId, Map<String, Method> propertySetters)
    
 voidputSubmissionSettersCache(String elementId, SubmissionSettersCache submissionSettersCache)
    
public  voidremoveListener(SiteListener listener)
     Removes the site listener so that it no longer receives any events.
public  voidresetLastModificationCheck()
     Resets the last modification check so that the next request will always check for modifications.
public  ElementInforesolveId(String id)
     Retrieves the element information in this site that corresponds to provided absolute element ID.
public  ElementInforesolveId(String id, ElementInfo reference)
     Retrieves the element information in this site that corresponds to provided element ID.
public  ElementInforesolveUrl(String url, String pathinfo)
     Looks up the information of the element that is responsible for handling a certain URL and pathinfo.
public  ElementInfosearchFallback(String url)
     Searches which element would be used as a fallback for a particilar URL.
 voidsetDeclarationName(String declarationName)
    
 voidsetResourceFinder(ResourceFinder resourceFinder)
    

Field Detail
DEFAULT_PARTICIPANT_NAME
final public static String DEFAULT_PARTICIPANT_NAME(Code)




Constructor Detail
Site
protected Site()(Code)




Method Detail
addElementInfo
void addElementInfo(String id, ElementInfo elementInfo, String url) throws EngineException(Code)



addFallback
void addFallback(ElementInfo elementInfo, String url) throws EngineException(Code)



addListener
public void addListener(SiteListener listener)(Code)
Adds the specified listener to receive site-related events. If listener is null, no exception is thrown and no action is performed.
Parameters:
  listener - The site listener that will be added.
See Also:   SiteListener
See Also:   Site.removeListener(SiteListener)
since:
   1.5



addResourceModificationTime
void addResourceModificationTime(UrlResource location, long modificationTime)(Code)



clearCaches
public synchronized void clearCaches()(Code)
Clears the cached data
since:
   1.5.1



containsId
public boolean containsId(String id)(Code)
Indicates whether an absolute element ID is present in the site.
Parameters:
  id - the absolute element ID that should be looked up true if the element ID could be found; or

false otherwise
since:
   1.0




containsUrl
public boolean containsUrl(String url)(Code)
Indicates whether a certain URL has a mapping in this site.
Parameters:
  url - the URL that should be looked up true if the URL corresponds to and element; or

false otherwise
since:
   1.0




findElementForRequest
public ElementToService findElementForRequest(String elementUrl)(Code)
Looks for an element that corresponds to a particular request URL.

This method will determine the best element match by stepping up the path segments. It will also look for fallback elements, cater for trailing slashes, and figure out the correct pathinfo.

Basically, this is the method that is used by the Gate to figure out which element to service when a request arrives.
Parameters:
  elementUrl - the URL that will be used to search for the element an instance of ElementToService when an element matchwas found; or

null if no suitable element could be found.
since:
   1.6




fireModified
public void fireModified()(Code)
Notifies the registered listeners that one of the site's resources has been detected as being modified.
See Also:   SiteListener
since:
   1.5



getAbsoluteId
public static String getAbsoluteId(String id, ElementInfo reference)(Code)
Transforms the provided element ID into an absolute element ID.
Parameters:
  id - the element ID that should be transformed
Parameters:
  reference - the element information that should be used as areference to look up the element information from when a relative IDis provided the absolute element ID that corresponds to the providedelement ID
since:
   1.0



getCachedInbeanSetters
Map<String, Method> getCachedInbeanSetters(String elementId)(Code)



getCachedIncookieSetters
Map<String, Method> getCachedIncookieSetters(String elementId)(Code)



getCachedInputSetters
Map<String, Method> getCachedInputSetters(String elementId)(Code)



getCachedOutbeanGetters
Map<String, Method> getCachedOutbeanGetters(String elementId)(Code)



getCachedOutcookieGetters
Map<String, Method> getCachedOutcookieGetters(String elementId)(Code)



getCachedOutputGetters
Map<String, Method> getCachedOutputGetters(String elementId)(Code)



getCachedPropertySetters
Map<String, Method> getCachedPropertySetters(String elementId)(Code)



getCanonicalId
public static String getCanonicalId(String id)(Code)
Transforms the provided element ID into a canonical ID without any parent indicators.
Parameters:
  id - the element ID that should be transformed the canonical element ID that corresponds to the providedelement ID
since:
   1.0



getContinuationManager
public ContinuationManager getContinuationManager()(Code)
Retrieves the continuation manager that is used by this site. the site's contiuation manager
since:
   1.5



getElementInfos
Collection<ElementInfo> getElementInfos()(Code)



getIds
public Collection<String> getIds()(Code)
Retrieves the collection of all the element IDs that are present in this site. the collection of all the element IDs in this site
since:
   1.0



getRepInstance
public static Site getRepInstance()(Code)
Retrieves the default object as a Site from the participant that was returned by Site.getRepParticipant . the site instance; or

null if no "ParticipantSite" participant waspresent in the default repository
See Also:   Site.getRepParticipant
See Also:   Participant.getObject
since:
   1.0




getRepParticipant
public static Participant getRepParticipant()(Code)
Retrieves the participant named "ParticipantSite" from the default repository. the participant; or

null if no such participant was present
See Also:   Rep.getDefaultRepository
See Also:   Participant
since:
   1.0




getResourceFinder
public ResourceFinder getResourceFinder()(Code)
Retrieves the resource finder that was used to populate this site. this site's resource finder
since:
   1.4



getResourceModificationTimes
public Map<UrlResource, Long> getResourceModificationTimes()(Code)
Retrieves a map of all the resources that were used to construct the site and their last modification time. the map of resources with their modification times; or

null if the site was totally built manually or if theSITE_AUTO_RELOAD configuration parameter was not set totrue at the time of construction.
since:
   1.0




getSubmissionSettersCache
SubmissionSettersCache getSubmissionSettersCache(String elementId)(Code)



getUrls
public Collection<String> getUrls()(Code)
Retrieves the collection of all the URLs that are present in this site. the collection of all the URLs in this site
since:
   1.0



hasRepInstance
public static boolean hasRepInstance()(Code)
Indicates whether the default repository has a participant named "ParticipantSite". true if that participant was present; or

false otherwise
See Also:   Rep.getDefaultRepository
See Also:   Participant
since:
   1.0




mapElementId
void mapElementId(String id, String url) throws EngineException(Code)



populateFromOther
public synchronized void populateFromOther(Site otherSite)(Code)
Populates this site instance from another site instance.

This method is typically used during the implementation of a SiteListener.modified method. Doing this, will ensure that the active request as well as subsequent requests will be executed against the data of the other site instance.
Parameters:
  otherSite - the other site that will be used to replace this site'sdata with
since:
   1.5




putCachedInbeanSetters
void putCachedInbeanSetters(String elementId, Map<String, Method> inbeanSetters)(Code)



putCachedIncookieSetters
void putCachedIncookieSetters(String elementId, Map<String, Method> incookieSetters)(Code)



putCachedInputSetters
void putCachedInputSetters(String elementId, Map<String, Method> inputSetters)(Code)



putCachedOutbeanGetters
void putCachedOutbeanGetters(String elementId, Map<String, Method> outbeanGetters)(Code)



putCachedOutcookieGetters
void putCachedOutcookieGetters(String elementId, Map<String, Method> outcookieGetters)(Code)



putCachedOutputGetters
void putCachedOutputGetters(String elementId, Map<String, Method> outputGetters)(Code)



putCachedPropertySetters
void putCachedPropertySetters(String elementId, Map<String, Method> propertySetters)(Code)



putSubmissionSettersCache
void putSubmissionSettersCache(String elementId, SubmissionSettersCache submissionSettersCache)(Code)



removeListener
public void removeListener(SiteListener listener)(Code)
Removes the site listener so that it no longer receives any events. This method performs no function, nor does it throw an exception if the listener specified by the argument was not previously added to this component or is null.
Parameters:
  listener - The site listener that will be removed.
See Also:   SiteListener
See Also:   Site.addListener(SiteListener)
since:
   1.5



resetLastModificationCheck
public void resetLastModificationCheck()(Code)
Resets the last modification check so that the next request will always check for modifications.
since:
   1.5.1



resolveId
public ElementInfo resolveId(String id) throws EngineException(Code)
Retrieves the element information in this site that corresponds to provided absolute element ID.
Parameters:
  id - the absolute element ID that should be looked up the corresponding element information; or

null if the absolute element ID couldn't be found
since:
   1.0




resolveId
public ElementInfo resolveId(String id, ElementInfo reference) throws EngineException(Code)
Retrieves the element information in this site that corresponds to provided element ID.
Parameters:
  id - the element ID that should be looked up
Parameters:
  reference - the element information that should be used as areference to look up the element information from when a relative IDis provided the corresponding element information; or

null if the element ID couldn't be found
since:
   1.0




resolveUrl
public ElementInfo resolveUrl(String url, String pathinfo) throws EngineException(Code)
Looks up the information of the element that is responsible for handling a certain URL and pathinfo.
Parameters:
  url - the URL that should be looked up
Parameters:
  pathinfo - the pathinfo that should be taken into account the corresponding element information; or

null if the URL and pathinfo aren't registered in this site
since:
   1.4




searchFallback
public ElementInfo searchFallback(String url) throws EngineException(Code)
Searches which element would be used as a fallback for a particilar URL.
Parameters:
  url - the URL for which a fallback should be found the fallback element; or

null if no fallback is available for that URL
since:
   1.0




setDeclarationName
void setDeclarationName(String declarationName)(Code)



setResourceFinder
void setResourceFinder(ResourceFinder resourceFinder)(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.