FileDocCategorySizeDatePackage
GeneratorJk2.javaAPI DocApache Tomcat 6.0.144848Fri Jul 20 04:20:34 BST 2007org.apache.jk.config

GeneratorJk2

public class GeneratorJk2 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("[url:" + vhost + cpath + url + "]");
            out.println( "group=" + worker );
            out.println( "host=" +  vhost); 
            out.println( "context=" +  cpath);
            for( int j=0; j<roles.size(); j++ ) {
                String role=(String)roles.elementAt(j);
                out.println( "role=" +  role);
            }
            for( int j=0; j<methods.size(); j++ ) {
                String m=(String)methods.elementAt(j);
                out.println( "method=" +  m);
            }
            if( isSSL )
                out.println("ssl=true");
        }
    
public voidgenerateEnd()

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


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

        out.println( "[url:" + vhost + cpath + url + "]");
        out.println( "group=" + worker );
        out.println( "filter=" +  servlet);
        out.println( "host=" +  vhost); 
        out.println( "context=" +  cpath);
        out.println();
    
public voidgenerateLoginConfig(java.lang.String loginPage, java.lang.String errPage, java.lang.String authM)

        out.println("[url:" + vhost + cpath + loginPage  + "]" );
        out.println( "group=" + worker );
        out.println( "host=" +  vhost); 
        out.println( "context=" +  cpath);
        out.println();
        out.println("[url:" + vhost + cpath + errPage  + "]" );
        out.println( "group=" + worker );
        out.println( "host=" +  vhost); 
        out.println( "context=" +  cpath);
        out.println();
    
public voidgenerateMimeMapping(java.lang.String ext, java.lang.String type)


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

        out.println( "[uri:" + vhost + cpath + url + "]");
        out.println( "group=" + worker );
        out.println( "servlet=" +  servlet);
        out.println( "host=" +  vhost); 
        out.println( "context=" +  cpath);
        out.println();
    
public voidgenerateStart()

        File base=wxml.getJkDir();
        File outF=new File(base, "jk2map.properties");
        out=new PrintWriter( new FileWriter( outF ));

        out.println("# Autogenerated from web.xml" );
    
public voidgenerateWelcomeFiles(java.util.Vector wf)


    
public voidsetWebXmlReader(WebXml2Jk wxml)

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