Skip to main content
summaryrefslogtreecommitdiffstats
blob: 81509fbd9d68c90d60cec1c65d1ce44e60c705c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
 * Copyright (C) 2009-2010, Google Inc. and others
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Distribution License v. 1.0 which is available at
 * https://www.eclipse.org/org/documents/edl-v10.php.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

package org.eclipse.jgit.http.server.glue;

import javax.servlet.Filter;
import javax.servlet.http.HttpServlet;

/**
 * Binds a servlet to a URL.
 */
public interface ServletBinder {
	/**
	 * Set the filter to trigger while processing the path.
	 *
	 * @param filter
	 *            the filter to trigger while processing the path.
	 * @return {@code this}.
	 */
	ServletBinder through(Filter filter);

	/**
	 * Set the servlet to execute on this path
	 *
	 * @param servlet
	 *            the servlet to execute on this path.
	 */
	void with(HttpServlet servlet);
}

Back to the top