comparison src/org/eclipse/jetty/server/handler/HandlerWrapper.java @ 1000:32d4b569567c

simplify handle()
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 19 Oct 2016 04:22:51 -0600
parents d9d95acded81
children
comparison
equal deleted inserted replaced
999:74b9daf2826c 1000:32d4b569567c
19 package org.eclipse.jetty.server.handler; 19 package org.eclipse.jetty.server.handler;
20 20
21 import java.io.IOException; 21 import java.io.IOException;
22 22
23 import javax.servlet.ServletException; 23 import javax.servlet.ServletException;
24 import javax.servlet.http.HttpServletRequest;
25 import javax.servlet.http.HttpServletResponse; 24 import javax.servlet.http.HttpServletResponse;
26 25
27 import org.eclipse.jetty.server.Handler; 26 import org.eclipse.jetty.server.Handler;
28 import org.eclipse.jetty.server.Request; 27 import org.eclipse.jetty.server.Request;
29 import org.eclipse.jetty.server.Server; 28 import org.eclipse.jetty.server.Server;
103 if (_handler!=null) 102 if (_handler!=null)
104 _handler.stop(); 103 _handler.stop();
105 super.doStop(); 104 super.doStop();
106 } 105 }
107 106
108 /* ------------------------------------------------------------ */ 107 @Override
109 public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException 108 public void handle(String target, Request request, HttpServletResponse response) throws IOException, ServletException
110 { 109 {
111 if (_handler!=null && isStarted()) 110 if (_handler!=null && isStarted())
112 { 111 {
113 _handler.handle(target,baseRequest, request, response); 112 _handler.handle(target, request, response);
114 } 113 }
115 } 114 }
116 115
117 116
118 /* ------------------------------------------------------------ */ 117 /* ------------------------------------------------------------ */