Package org.apache.tomcat.core

Examples of org.apache.tomcat.core.ContextManager


  if( debug > 0 ) log( "Init " + ctx + " " + showDebugInfo);
    }

    public int handleError( Request req, Response res, Throwable t ) {
  ContextManager cm=req.getContextManager();
  Context ctx = req.getContext();
  if(ctx==null) {
      // that happens only if the request can't pass contextMap
      // hook. The reason for that is a malformed request, or any
      // other error.
View Full Code Here


  // Keep headers and cookies that are set

  setStatus( sc );
  Request request=response.getRequest();
  request.setAttribute("javax.servlet.error.message", msg);
  ContextManager cm=request.getContextManager();
  cm.handleStatus( request, response, sc );
    }
View Full Code Here

    public void setValidate( boolean b ) {
  validate=b;
    }

    private void readDefaultWebXml( Context ctx ) throws TomcatException {
  ContextManager cm=ctx.getContextManager();
  String home = cm.getHome();
 
  File default_xml=new File( home + "/conf/web.xml" );
 
  // try the default ( installation )
  if( ! default_xml.exists() ) {
View Full Code Here

    }
   
    public void contextInit(Context ctx) throws TomcatException {
  if( debug > 0 )
      log("contextInit  " + ctx.getPath() + " " +ctx.getDocBase() );
  ContextManager cm=ctx.getContextManager();
 
  try {
      // Defaults
      ctx.setSessionTimeOut( 30 );
View Full Code Here

TOP

Related Classes of org.apache.tomcat.core.ContextManager

Copyright © 2018 www.massapicom. 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.