diff src/org/eclipse/jetty/server/handler/ContextHandler.java @ 822:0048a843297a

remove Dispatcher
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 14 Sep 2016 00:58:52 -0600
parents 8e9db0bbf4f9
children 8579194add85
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/handler/ContextHandler.java	Wed Sep 14 00:48:03 2016 -0600
+++ b/src/org/eclipse/jetty/server/handler/ContextHandler.java	Wed Sep 14 00:58:52 2016 -0600
@@ -65,7 +65,6 @@
 import org.eclipse.jetty.http.MimeTypes;
 import org.eclipse.jetty.io.Buffer;
 import org.eclipse.jetty.server.AbstractHttpConnection;
-import org.eclipse.jetty.server.Dispatcher;
 import org.eclipse.jetty.server.Handler;
 import org.eclipse.jetty.server.HandlerContainer;
 import org.eclipse.jetty.server.Request;
@@ -1870,35 +1869,7 @@
 		@Override
 		public RequestDispatcher getRequestDispatcher(String uriInContext)
 		{
-			if (uriInContext == null)
-				return null;
-
-			if (!uriInContext.startsWith("/"))
-				return null;
-
-			try
-			{
-				String query = null;
-				int q = 0;
-				if ((q = uriInContext.indexOf('?')) > 0)
-				{
-					query = uriInContext.substring(q + 1);
-					uriInContext = uriInContext.substring(0,q);
-				}
-
-				String pathInContext = URIUtil.canonicalPath(URIUtil.decodePath(uriInContext));
-				if (pathInContext!=null)
-				{
-					String uri = URIUtil.addPaths(getContextPath(),uriInContext);
-					ContextHandler context = ContextHandler.this;
-					return new Dispatcher(context,uri,pathInContext,query);
-				}
-			}
-			catch (Exception e)
-			{
-				LOG.trace("",e);
-			}
-			return null;
+			throw new UnsupportedOperationException();
 		}
 
 		/* ------------------------------------------------------------ */