| /******************************************************************************* |
| * Copyright (c) 2014 Raymond Augé and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Raymond Augé <raymond.auge@liferay.com> - Bug 436698 |
| ******************************************************************************/ |
| |
| package org.eclipse.equinox.http.servlet.internal.context; |
| |
| import java.util.Collections; |
| import java.util.List; |
| import org.eclipse.equinox.http.servlet.internal.registration.EndpointRegistration; |
| import org.eclipse.equinox.http.servlet.internal.registration.FilterRegistration; |
| |
| /** |
| * @author Raymond Augé |
| */ |
| public class DispatchTargets { |
| |
| public DispatchTargets( |
| ContextController contextController, |
| EndpointRegistration<?> endpointRegistration, |
| String servletPath, String pathInfo, String pattern) { |
| |
| this( |
| contextController, endpointRegistration, |
| Collections.<FilterRegistration>emptyList(), servletPath, pathInfo, |
| pattern); |
| } |
| |
| public DispatchTargets( |
| ContextController contextController, |
| EndpointRegistration<?> endpointRegistration, |
| List<FilterRegistration> matchingFilterRegistrations, |
| String servletPath, String pathInfo, String pattern) { |
| |
| this.contextController = contextController; |
| this.endpointRegistration = endpointRegistration; |
| this.matchingFilterRegistrations = matchingFilterRegistrations; |
| this.servletPath = servletPath; |
| this.pathInfo = pathInfo; |
| } |
| |
| public ContextController getContextController() { |
| return contextController; |
| } |
| |
| public List<FilterRegistration> getMatchingFilterRegistrations() { |
| return matchingFilterRegistrations; |
| } |
| |
| public String getPathInfo() { |
| return pathInfo; |
| } |
| |
| public String getServletPath() { |
| return servletPath; |
| } |
| |
| public EndpointRegistration<?> getServletRegistration() { |
| return endpointRegistration; |
| } |
| |
| private final ContextController contextController; |
| private final EndpointRegistration<?> endpointRegistration; |
| private final List<FilterRegistration> matchingFilterRegistrations; |
| private final String pathInfo; |
| private final String servletPath; |
| |
| } |