tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arieh Markel <Arieh.Mar...@central.sun.com>
Subject Re: Attributes of <Context> tag
Date Thu, 26 Oct 2000 16:44:29 GMT
I believe someone (forgot on which one of the lists) had asked
about valid properties for the Context.

Here is the original message.

Arieh

------------- Begin Forwarded Message -------------

Mailing-List: contact general-help@jakarta.apache.org; run by ezmlm
list-help: <mailto:general-help@jakarta.apache.org>
list-unsubscribe: <mailto:general-unsubscribe@jakarta.apache.org>
list-post: <mailto:general@jakarta.apache.org>
Delivered-To: mailing list general@jakarta.apache.org
From: Arieh Markel <Arieh.Markel@central.sun.com>
Subject: Re: Attributes of <Context> tag
To: general@jakarta.apache.org
Content-MD5: mpQhYlTrDIg1LGV07vWMTg==
X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N


> Mailing-List: contact general-help@jakarta.apache.org; run by ezmlm
> list-help: <mailto:general-help@jakarta.apache.org>
> list-unsubscribe: <mailto:general-unsubscribe@jakarta.apache.org>
> list-post: <mailto:general@jakarta.apache.org>
> Delivered-To: mailing list general@jakarta.apache.org
> Delivered-To: moderator for general@jakarta.apache.org
> From: Grant Klopper <grantk@cti-sa.co.za>
> To: "'general@jakarta.apache.org'" <general@jakarta.apache.org>
> Subject: Attributes of <Context> tag
> X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N
> 
> I need a list of all the attributes that I can use in the <Context> tags in 
> the server.xml file, as well as an explanation of each. I would appreciate 
> it if someone could help

Grant,

inspection of the source for org.apache.tomcat.core.Context gives the
information:

	. look at the 'public Object getAttribute() method and you will see 
	  the names of the attributes you can change
	. look at the various 'public void set[Property](args)' methods
	  the attributes will be the lower-case(Property) names
	  (pay attention to the arguments that are primitive types or classes)
	. look at the various 'public void add[Property](args)' methods
	  the attributes will be the lower-case(Property) names


    public void setPath(String path)			"path"
    public void setDocBase( String docB )		"docbase"
    public void setReloadable( String s )		"reloadable"
    public void setDescription(String description)	"description" 
    public void setIcon( String icon )			"icon"
    public void setDistributable(String s) 		"distributable"
    public void setSessionTimeOut(int sessionTimeOut)	"sessionTimeout"
    public void setFormLoginPage( String page )		"formLoginPage"
    public void setFormErrorPage( String page )		"formErrorPage"
    public void setLoginConfig				"loginConfig"
    public void setDebug( String level ) 		"debug"
    public void setWorkDirPath(String workDir)		"workDirPath"
    public void setEngineHeader(String s)		"engineHeader"
    public void setIsWARExpanded(boolean isWARExpanded) "isWARExpanded"
    public void setIsWARValidated(boolean isWARValidated) "isWARValidated"
    public void setHost( String h )			"host"
    public void setTrusted( boolean t )			"trusted"
    public void addWelcomeFile( String s)		"welcomeFile"
    public void addTaglib( String uri, String location )"taglib"
    public void addEnvEntry( String name,String type, String value, String 
description ) 						"envEntry"
    public void addInitParameter( String name, String value ) "initParameter"
    public void addContentType( String ext, String type) "contentType"
    public void addErrorPage( String errorType, String value ) "errorPage"
    public void addServletMapping(String path, String servletName) 
"servletMapping"
    public void addHostAlias( String alias )		"hostAlias"
    
    and from the 'getAttribute()' method:
    
    "org.apache.tomcat"

    "org.apache.tomcat.jsp_classpath"

    "org.apache.tomcat.protection_domain"

     org.apache.tomcat.classloader"

     FacadeManager.FACADE_ATTRIBUTE


I may have omitted some that did not look to me as if they really need to
be exposed via server.xml configuration. Others may add to this list.

Hope this helps.

Arieh
> 
> grantk@cti-sa.co.za
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: general-help@jakarta.apache.org

--
 Arieh Markel		                Sun Microsystems Inc.
 Network Storage                        500 Eldorado Blvd. MS UBRM11-194
 e-mail: arieh.markel@sun.COM           Broomfield, CO 80021
 Let's go Panthers !!!!                 Phone: (303) 272-8547 x78547
 (e-mail me with subject SEND PUBLIC KEY to get public key)


---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
For additional commands, e-mail: general-help@jakarta.apache.org

------------- End Forwarded Message -------------


--
 Arieh Markel		                Sun Microsystems Inc.
 Network Storage                        500 Eldorado Blvd. MS UBRM11-194
 e-mail: arieh.markel@sun.COM           Broomfield, CO 80021
 Let's go Panthers !!!!                 Phone: (303) 272-8547 x78547
 (e-mail me with subject SEND PUBLIC KEY to get public key)


Mime
View raw message