diff src/org/eclipse/jetty/server/handler/ContextHandler.java @ 977:d35b0a3a7a4a

remove __currentConnection
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 16 Oct 2016 01:31:05 -0600
parents a5af9ee7cf91
children 13beba0c127f
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/handler/ContextHandler.java	Sun Oct 16 01:14:44 2016 -0600
+++ b/src/org/eclipse/jetty/server/handler/ContextHandler.java	Sun Oct 16 01:31:05 2016 -0600
@@ -133,7 +133,6 @@
 	private Map<String, String> _localeEncodingMap;
 	private String[] _welcomeFiles;
 	private String[] _vhosts;
-	private Set<String> _connectors;
 	private EventListener[] _eventListeners;
 	private Logger _logger;
 	private boolean _allowNullPathInfo;
@@ -361,35 +360,6 @@
 	}
 
 	/* ------------------------------------------------------------ */
-	/**
-	 * @return an array of connector names that this context will accept a request from.
-	 */
-	public String[] getConnectorNames()
-	{
-		if (_connectors == null || _connectors.size() == 0)
-			return null;
-
-		return _connectors.toArray(new String[_connectors.size()]);
-	}
-
-	/* ------------------------------------------------------------ */
-	/**
-	 * Set the names of accepted connectors.
-	 *
-	 * Names are either "host:port" or a specific configured name for a connector.
-	 *
-	 * @param connectors
-	 *            If non null, an array of connector names that this context will accept a request from.
-	 */
-	public void setConnectorNames(String[] connectors)
-	{
-		if (connectors == null || connectors.length == 0)
-			_connectors = null;
-		else
-			_connectors = new HashSet<String>(Arrays.asList(connectors));
-	}
-
-	/* ------------------------------------------------------------ */
 	/*
 	 * @see javax.servlet.ServletContext#getAttribute(java.lang.String)
 	 */
@@ -870,14 +840,6 @@
 				return false;
 		}
 
-		// Check the connector
-		if (_connectors != null && _connectors.size() > 0)
-		{
-			String connector = AbstractHttpConnection.getCurrentConnection().getConnector().getName();
-			if (connector == null || !_connectors.contains(connector))
-				return false;
-		}
-
 		// Are we not the root context?
 		if (_contextPath.length() > 1)
 		{