Examples of LinkSamplingEnvironment


Examples of org.apache.cocoon.environment.commandline.LinkSamplingEnvironment

     * @exception  Exception  Description of Exception
     */
    protected Collection getLinks(UriType uriType, Map parameters) throws Exception {
        Map attributes = null;

        LinkSamplingEnvironment env = new LinkSamplingEnvironment(
                uriType.getDeparameterizedUri(),
                this.contextDir,
                attributes,
                parameters,
                clContext,
                getLogger());
        cocoon.process(env);
        return env.getLinks();
    }
View Full Code Here

Examples of org.apache.cocoon.environment.commandline.LinkSamplingEnvironment

     * Warms up the engine by accessing the root.
     * @exception Exception if an error occurs
     */
    public void warmup() throws Exception {
        //log.info(" [Cocoon might need to compile the sitemaps, this might take a while]");
        cocoon.generateSitemap(new LinkSamplingEnvironment("/", context, attributes, null, cliContext,
                                                           new LogKitLogger(log)));
    }
View Full Code Here

Examples of org.apache.cocoon.environment.commandline.LinkSamplingEnvironment

     * @exception Exception if an error occurs
     */
    private void processXSP(String uri) throws Exception {
        String markupLanguage = "xsp";
        String programmingLanguage = "java";
        Environment env = new LinkSamplingEnvironment("/", context, attributes, null, cliContext,
                                                      new LogKitLogger(log));
        cocoon.precompile(uri, env, markupLanguage, programmingLanguage);
    }
View Full Code Here

Examples of org.apache.cocoon.environment.commandline.LinkSamplingEnvironment

     * @exception Exception if an error occurs
     */
    private void processXMAP(String uri) throws Exception {
        String markupLanguage = "sitemap";
        String programmingLanguage = "java";
        Environment env = new LinkSamplingEnvironment("/", context, attributes, null, cliContext,
                                                      new LogKitLogger(log));
        cocoon.precompile(uri, env, markupLanguage, programmingLanguage);
    }
View Full Code Here

Examples of org.apache.cocoon.environment.commandline.LinkSamplingEnvironment

     * @param parameters a <code>Map</code> value containing request parameters
     * @return a <code>Collection</code> of links
     * @exception Exception if an error occurs
     */
    protected Collection getLinks(String deparameterizedURI, Map parameters) throws Exception {
        LinkSamplingEnvironment env = new LinkSamplingEnvironment(deparameterizedURI,
                                                                  context,
                                                                  attributes,
                                                                  parameters,
                                                                  cliContext,
                                                                  new LogKitLogger(log));
        processLenient(env);
        return env.getLinks();
    }
View Full Code Here

Examples of org.apache.cocoon.environment.commandline.LinkSamplingEnvironment

     */
    public void warmup() throws Exception {
        log.info("Warming up...");
        log.info(" [Cocoon might need to compile the sitemaps, this might take a while]");
        //cocoon.process(new LinkSamplingEnvironment("/", context, attributes, null));
        cocoon.generateSitemap(new LinkSamplingEnvironment("/", context, attributes, null, this.log));
    }
View Full Code Here

Examples of org.apache.cocoon.environment.commandline.LinkSamplingEnvironment

            }
        }
    }

    public void processXSP(String uri) throws Exception {
        Environment env = new LinkSamplingEnvironment("/", context, attributes, null, this.log);
        cocoon.generateXSP(uri, env);
    }
View Full Code Here

Examples of org.apache.cocoon.environment.commandline.LinkSamplingEnvironment

        }
        return buffer.toString();
    }

    protected Collection getLinks(String deparameterizedURI, Map parameters) throws Exception {
        LinkSamplingEnvironment env = new LinkSamplingEnvironment(deparameterizedURI,
                  context,
                  attributes,
                  parameters,
                  this.log);
        cocoon.process(env);
        return env.getLinks();
    }
View Full Code Here

Examples of org.apache.cocoon.environment.commandline.LinkSamplingEnvironment

     */
    public void warmup() throws Exception {
        log.info("Warming up...");
        log.info(" [Cocoon might need to compile the sitemaps, this might take a while]");
        //cocoon.process(new LinkSamplingEnvironment("/", context, attributes, null));
        cocoon.generateSitemap(new LinkSamplingEnvironment("/", context, attributes, null, this.log));
    }
View Full Code Here

Examples of org.apache.cocoon.environment.commandline.LinkSamplingEnvironment

     * @exception Exception if an error occurs
     */
    public void processXSP(String uri) throws Exception {
        String markupLanguage = "xsp";
        String programmingLanguage = "java";
        Environment env = new LinkSamplingEnvironment("/", context, attributes, null, this.log);
        cocoon.precompile(uri, env, markupLanguage, programmingLanguage);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.