| 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>
|
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 .
|
depth | protected int depth(Code) | | The depth parameter determines how deep the EnhancedLinkStatusGenerator should delve.
|
inputSource | protected Source inputSource(Code) | | |
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. |
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) | | |
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)
|
|
|