bugs 324811 and 324812. Fix an NPE and restore a constructor used by geronimo
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2263 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
parent
a701c372cf
commit
5d49fe9d29
|
@ -28,6 +28,8 @@ jetty-7.2-SNAPSHOT
|
|||
+ 324379 Change content type after getWriter
|
||||
+ 324501 Fire RequestListener.requestDestroyed in last-to-first order.
|
||||
+ 324601 Check session expiry on access
|
||||
+ 324811 NPE in Server.dump
|
||||
+ 324812 restore WebAppContext constructor used by geronimo integration
|
||||
+ JETTY-912 added per exchange timeout api
|
||||
+ JETTY-1245 Do not use direct buffers with NIO SSL
|
||||
+ JETTY-1249 Apply max idle time to all connectors
|
||||
|
|
|
@ -666,9 +666,11 @@ public class Server extends HandlerWrapper implements Attributes
|
|||
protected void dump(Appendable out,String indent) throws IOException
|
||||
{
|
||||
out.append(toString()).append(isStarted()?" started":" STOPPED").append('\n');
|
||||
for (Connector c : _connectors)
|
||||
out.append(" +-").append(String.valueOf(c)).append('\n');
|
||||
out.append(" +-").append(String.valueOf(_threadPool)).append('\n');
|
||||
if (_connectors != null)
|
||||
for (Connector c : _connectors)
|
||||
out.append(" +-").append(String.valueOf(c)).append('\n');
|
||||
if (_threadPool != null)
|
||||
out.append(" +-").append(String.valueOf(_threadPool)).append('\n');
|
||||
dumpHandlers(out,indent);
|
||||
}
|
||||
|
||||
|
|
|
@ -204,6 +204,25 @@ public class WebAppContext extends ServletContextHandler implements WebAppClassL
|
|||
_metadata = new MetaData();
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
|
||||
/**
|
||||
* This constructor is used in the geronimo integration.
|
||||
*
|
||||
* @param sessionHandler SessionHandler for this web app
|
||||
* @param securityHandler SecurityHandler for this web app
|
||||
* @param servletHandler ServletHandler for this web app
|
||||
* @param errorHandler ErrorHandler for this web app
|
||||
*/
|
||||
public WebAppContext(SessionHandler sessionHandler, SecurityHandler securityHandler, ServletHandler servletHandler, ErrorHandler errorHandler) {
|
||||
super(null, sessionHandler, securityHandler, servletHandler, errorHandler);
|
||||
_scontext = new Context();
|
||||
setErrorHandler(errorHandler != null ? errorHandler : new ErrorPageErrorHandler());
|
||||
//Make a new MetaData to hold descriptor and annotation metadata
|
||||
_metadata = new MetaData();
|
||||
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
/**
|
||||
* Configure this WebAppContext from a shared WebAppContext as template.
|
||||
|
|
Loading…
Reference in New Issue