tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/jk/native2/include jk_uriEnv.h
Date Thu, 28 Feb 2002 22:04:32 GMT
costin      02/02/28 14:04:31

  Modified:    jk/native2/include jk_uriEnv.h
  Log:
  Added the stuff from jk_webapp.
  
  Added a setProperty() - another attempt to harmonize the java and C versions.
  
  Revision  Changes    Path
  1.6       +52 -1     jakarta-tomcat-connectors/jk/native2/include/jk_uriEnv.h
  
  Index: jk_uriEnv.h
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/include/jk_uriEnv.h,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- jk_uriEnv.h	16 Dec 2001 23:17:23 -0000	1.5
  +++ jk_uriEnv.h	28 Feb 2002 22:04:31 -0000	1.6
  @@ -95,6 +95,8 @@
   
   
   struct jk_uriEnv {
  +    struct jk_pool *pool;
  +    
       struct jk_workerEnv *workerEnv;
   
       struct jk_webapp *webapp;
  @@ -126,9 +128,58 @@
       int match_type;
   
       int debug;
  +
  +    /** Worker associated with this uri
  +        Inherited by virtual host. Defaults to the first declared worker.
  +        ( if null == use default worker ).
  +    */
  +    struct jk_worker *worker;
  +    
  +    /** worker name - allow this to be set before the worker is defined.
  +     *  worker will be set on init.
  +     */
  +    char *workerName; 
  +
  +    /** You can fine-tune the logging level per location
  +     */
  +    int logLevel;
  +
  +    /** Different apps can have different loggers.
  +     */
  +    struct jk_logger *l;
  +
  +    /* Environment variables support
  +     */
  +    int envvars_in_use;
  +    struct jk_map *envvars;
  +
  +    /* Virtual server handled - NULL means 'global' ( visible in all
  +     * virtual servers ). This is the canonical name.
  +     */
  +    char *virtual;
  +    int virtualPort;
  +
  +    /** Uri we're monted on
  +     *  The 'id' is the index in the context table ( todo ), it
  +     *  reduce the ammount of trafic ( and string creation on java )
  +     */
  +    char *context;
  +    int ctxt_len;
  +    int contextId;
  +
       /* -------------------- Methods -------------------- */
   
  -    /* get/setProperty */
  +    int (*setProperty)( struct jk_env *env,
  +                         struct jk_uriEnv *_this,
  +                         const char *name, char *value);
  +
  +    char *(*getProperty)( struct jk_env *env,
  +                          struct jk_uriEnv *_this,
  +                          const char *name);
  +
  +    char **(*getPropertyNames)( struct jk_env *env,
  +                                struct jk_uriEnv *_this );
  +    
   };
   
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message