279820 Fixed HotSwapHandler
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@728 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
parent
d4b8b3ec6d
commit
5984d4375c
|
@ -4,6 +4,7 @@ jetty-7.0.0.RC4-SNAPSHOT
|
|||
+ 286535 ContentExchange status code
|
||||
+ 285891 SessionAuthentication is serializable
|
||||
+ JETTY-1079 ResourceCollection.toString
|
||||
+ 279820 Fixed HotSwapHandler
|
||||
|
||||
jetty-7.0.0.RC3 7 August 2009
|
||||
+ 277403 remove system properties
|
||||
|
|
|
@ -105,9 +105,6 @@ public class HandlerWrapper extends AbstractHandlerContainer
|
|||
}
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
/*
|
||||
* @see org.eclipse.jetty.server.server.EventHandler#handle(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
|
||||
*/
|
||||
public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
|
||||
{
|
||||
if (_handler!=null && isStarted())
|
||||
|
@ -118,12 +115,15 @@ public class HandlerWrapper extends AbstractHandlerContainer
|
|||
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
@Override
|
||||
public void setServer(Server server)
|
||||
{
|
||||
Server old_server=getServer();
|
||||
if (server==old_server)
|
||||
return;
|
||||
|
||||
if (isStarted())
|
||||
throw new IllegalStateException(STARTED);
|
||||
|
||||
Server old_server=getServer();
|
||||
|
||||
super.setServer(server);
|
||||
|
||||
|
@ -137,6 +137,7 @@ public class HandlerWrapper extends AbstractHandlerContainer
|
|||
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
@Override
|
||||
protected Object expandChildren(Object list, Class byClass)
|
||||
{
|
||||
return expandHandler(_handler,list,byClass);
|
||||
|
|
|
@ -68,9 +68,6 @@ public class HotSwapHandler extends AbstractHandlerContainer
|
|||
{
|
||||
try
|
||||
{
|
||||
if (isRunning())
|
||||
throw new IllegalStateException(RUNNING);
|
||||
|
||||
Handler old_handler = _handler;
|
||||
|
||||
if (getServer()!=null)
|
||||
|
@ -137,11 +134,13 @@ public class HotSwapHandler extends AbstractHandlerContainer
|
|||
/* ------------------------------------------------------------ */
|
||||
public void setServer(Server server)
|
||||
{
|
||||
Server old_server=getServer();
|
||||
if (server==old_server)
|
||||
return;
|
||||
|
||||
if (isRunning())
|
||||
throw new IllegalStateException(RUNNING);
|
||||
|
||||
Server old_server=getServer();
|
||||
|
||||
super.setServer(server);
|
||||
|
||||
Handler h=getHandler();
|
||||
|
|
Loading…
Reference in New Issue