Java Doc for LinkStatusGenerator.java in  » Content-Management-System » apache-lenya-2.0 » org » apache » lenya » cms » cocoon » generation » 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 » Content Management System » apache lenya 2.0 » org.apache.lenya.cms.cocoon.generation 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.cocoon.generation.ServiceableGenerator
   org.apache.lenya.cms.cocoon.generation.LinkStatusGenerator

LinkStatusGenerator
public class LinkStatusGenerator extends ServiceableGenerator implements Recyclable,Configurable(Code)
Generates a list of links that are reachable from the src and their status.
 <map:generator name="linkStatus" src="org.apache.lenya.cms.cocoon.generation.LinkStatusGenerator"/>
 <map:generate type="linkStatus" src="/{pubid}/{area}/{doc-id}.html">
 <map:parameter name="depth" value="1"/>
 </map:generate>
 


Field Summary
final public static  StringACCEPT_CONFIG
     Config element name specifying http header value for accept.
final public static  StringACCEPT_DEFAULT
     Default value of accept configuration value.
final protected static  StringCONTENT_ATTR_NAME
    
final public static  StringEXCLUDE_CONFIG
     Config element name specifying excluding regular expression pattern.
final protected static  StringHREF_ATTR_NAME
    
final public static  StringINCLUDE_CONFIG
     Config element name specifying including regular expression pattern.
final public static  StringLINK_CONTENT_TYPE_CONFIG
     Config element name specifying expected link content-typ.
final public  StringLINK_CONTENT_TYPE_DEFAULT
     Default value of link-content-type configuration value.
final protected static  StringLINK_NODE_NAME
    
final public static  StringLINK_VIEW_QUERY_CONFIG
     Config element name specifying query-string appendend for requesting links of an URL.
final public static  StringLINK_VIEW_QUERY_DEFAULT
     Default value of link-view-query configuration value.
final protected static  StringMESSAGE_ATTR_NAME
    
final protected static  StringPREFIX
     The namespace prefix for this namespace.
final protected static  StringREFERRER_ATTR_NAME
    
final protected static  StringSTATUS_ATTR_NAME
    
final protected static  StringTOP_NODE_NAME
    
final protected static  StringURI
     The URI of the namespace of this generator.
final public static  StringUSER_AGENT_CONFIG
     Config element name specifying http header value for user-Agent.
final public static  StringUSER_AGENT_DEFAULT
     Default value of user-agent configuration value.
protected  AttributesImplattributes
    
protected  intdepth
     The depth parameter determines how deep the EnhancedLinkStatusGenerator should delve.
protected  SourceinputSource
    
 Stringsrc
    


Method Summary
public  voidconfigure(Configuration configuration)
     Configure the crawler component.

Configure can specify which URI to include, and which URI to exclude from crawling.

public  voidgenerate()
     Generate XML data.
protected  ListgetLinksFromConnection(String url_link_string, String url_of_referrer, int referrerDepth)
    
protected  StringprocessURL(String uri, String referrer, int referrerDepth)
    
public  voidrecycle()
    
public  voidsetup(SourceResolver resolver, Map objectModel, String src, Parameters par)
    

Field Detail
ACCEPT_CONFIG
final public static String ACCEPT_CONFIG(Code)
Config element name specifying http header value for accept.

Its value is accept.




ACCEPT_DEFAULT
final public static String ACCEPT_DEFAULT(Code)
Default value of accept configuration value.

Its value is * / *




CONTENT_ATTR_NAME
final protected static String CONTENT_ATTR_NAME(Code)



EXCLUDE_CONFIG
final public static String EXCLUDE_CONFIG(Code)
Config element name specifying excluding regular expression pattern.

Its value is exclude.




HREF_ATTR_NAME
final protected static String HREF_ATTR_NAME(Code)



INCLUDE_CONFIG
final public static String INCLUDE_CONFIG(Code)
Config element name specifying including regular expression pattern.

Its value is include.




LINK_CONTENT_TYPE_CONFIG
final public static String LINK_CONTENT_TYPE_CONFIG(Code)
Config element name specifying expected link content-typ.

Its value is link-content-type.




LINK_CONTENT_TYPE_DEFAULT
final public String LINK_CONTENT_TYPE_DEFAULT(Code)
Default value of link-content-type configuration value.

Its value is application/x-cocoon-links.




LINK_NODE_NAME
final protected static String LINK_NODE_NAME(Code)



LINK_VIEW_QUERY_CONFIG
final public static String LINK_VIEW_QUERY_CONFIG(Code)
Config element name specifying query-string appendend for requesting links of an URL.

Its value is link-view-query.




LINK_VIEW_QUERY_DEFAULT
final public static String LINK_VIEW_QUERY_DEFAULT(Code)
Default value of link-view-query configuration value.

Its value is ?cocoon-view=links.




MESSAGE_ATTR_NAME
final protected static String MESSAGE_ATTR_NAME(Code)



PREFIX
final protected static String PREFIX(Code)
The namespace prefix for this namespace.



REFERRER_ATTR_NAME
final protected static String REFERRER_ATTR_NAME(Code)



STATUS_ATTR_NAME
final protected static String STATUS_ATTR_NAME(Code)



TOP_NODE_NAME
final protected static String TOP_NODE_NAME(Code)



URI
final protected static String URI(Code)
The URI of the namespace of this generator.



USER_AGENT_CONFIG
final public static String USER_AGENT_CONFIG(Code)
Config element name specifying http header value for user-Agent.

Its value is user-agent.




USER_AGENT_DEFAULT
final public static String USER_AGENT_DEFAULT(Code)
Default value of user-agent configuration value.
See Also:   org.apache.cocoon.Constants.COMPLETE_NAME



attributes
protected AttributesImpl attributes(Code)



depth
protected int depth(Code)
The depth parameter determines how deep the EnhancedLinkStatusGenerator should delve.



inputSource
protected Source inputSource(Code)



src
String src(Code)





Method Detail
configure
public void configure(Configuration configuration) throws ConfigurationException(Code)
Configure the crawler component.

Configure can specify which URI to include, and which URI to exclude from crawling. You specify the patterns as regular expressions.

Morover you can configure the required content-type of crawling request, and the query-string appended to each crawling request.


 <include>.*\.html?</include> or <include>.*\.html?, .*\.xsp</include>
 <exclude>.*\.gif</exclude> or <exclude>.*\.gif, .*\.jpe?g</exclude>
 <link-content-type> application/x-cocoon-links </link-content-type>
 <link-view-query> ?cocoon-view=links </link-view-query>
 <user-agent> Cocoon </user-agent>
 <accept> text/xml </accept>
 

Parameters:
  configuration - XML configuration of this avalon component.
exception:
  ConfigurationException - is throwing if configuration is invalid.



generate
public void generate() throws SAXException, ProcessingException(Code)
Generate XML data.
throws:
  SAXException - if an error occurs while outputting the document
throws:
  ProcessingException - if the requsted URI wasn't found



getLinksFromConnection
protected List getLinksFromConnection(String url_link_string, String url_of_referrer, int referrerDepth)(Code)
Retrieve a list of links of a url
Parameters:
  url_link_string - url for requesting links, it is assumed thaturl_link_string queries the cocoon view links, ie of the formhttp://host/foo/bar?cocoon-view=links
Parameters:
  url_of_referrer - base url of which links are requested, ie of the formhttp://host/foo/bar List of links from url_of_referrer, as result of requesting urlurl_link_string



processURL
protected String processURL(String uri, String referrer, int referrerDepth) throws SAXException(Code)
Generate xml attributes of a url, calculate url for retrieving links
Parameters:
  url - to process
Parameters:
  referrer - of the url String url for retrieving links, or null if url is an excluded-url,and not an included-url.



recycle
public void recycle()(Code)



setup
public void setup(SourceResolver resolver, Map objectModel, String src, Parameters par) throws ProcessingException, SAXException, IOException(Code)



Fields inherited from org.apache.cocoon.generation.ServiceableGenerator
protected ServiceManager manager(Code)(Java Doc)

Methods inherited from org.apache.cocoon.generation.ServiceableGenerator
public void dispose()(Code)(Java Doc)
public void service(ServiceManager manager) throws ServiceException(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.