FileDocCategorySizeDatePackage
GeneratorJk1.javaAPI DocApache Tomcat 6.0.143583Fri Jul 20 04:20:32 BST 2007org.apache.jk.config

GeneratorJk1

public class GeneratorJk1 extends Object implements WebXml2Jk.MappingGenerator
author
Costin Manolache

Fields Summary
WebXml2Jk
wxml
String
vhost
String
cpath
String
worker
PrintWriter
out
Constructors Summary
Methods Summary
public voidgenerateConstraints(java.util.Vector urls, java.util.Vector methods, java.util.Vector roles, boolean isSSL)

        for( int i=0; i<urls.size(); i++ ) {
            String url=(String)urls.elementAt(i);

            out.println( "JkMount " + cpath + url + " " + worker);
        }
    
public voidgenerateEnd()

        out.close();
    
public voidgenerateErrorPage(int err, java.lang.String location)


    
public voidgenerateFilterMapping(java.lang.String servlet, java.lang.String url)

        out.println( "JkMount " + cpath + url + " " + worker);
    
public voidgenerateLoginConfig(java.lang.String loginPage, java.lang.String errPage, java.lang.String authM)

        out.println( "JkMount " + cpath + loginPage + " " + worker);
    
public voidgenerateMimeMapping(java.lang.String ext, java.lang.String type)


    
public voidgenerateServletMapping(java.lang.String servlet, java.lang.String url)

        out.println( "JkMount " + cpath + url + " " + worker);
    
public voidgenerateStart()

        File base=wxml.getJkDir();
        File outF=new File(base, "jk.conf");
        out=new PrintWriter( new FileWriter( outF ));
        
        out.println("# This must be included in the virtual host section for " + vhost );
    
public voidgenerateWelcomeFiles(java.util.Vector wf)


    
public voidsetWebXmlReader(WebXml2Jk wxml)

        this.wxml=wxml;
        vhost=wxml.vhost;
        cpath=wxml.cpath;
        worker=wxml.worker;