1 // ========================================================================
2 // Copyright (c) 2004-2009 Mort Bay Consulting Pty. Ltd.
3 // ------------------------------------------------------------------------
4 // All rights reserved. This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v1.0
6 // and Apache License v2.0 which accompanies this distribution.
7 // The Eclipse Public License is available at
8 // http://www.eclipse.org/legal/epl-v10.html
9 // The Apache License v2.0 is available at
10 // http://www.opensource.org/licenses/apache2.0.php
11 // You may elect to redistribute this code under either of these licenses.
12 // ========================================================================
13
14 package org.eclipse.jetty.security;
15
16 import org.eclipse.jetty.http.security.Constraint;
17
18 public class ConstraintMapping
19 {
20 String _method;
21
22 String _pathSpec;
23
24 Constraint _constraint;
25
26 /* ------------------------------------------------------------ */
27 /**
28 * @return Returns the constraint.
29 */
30 public Constraint getConstraint()
31 {
32 return _constraint;
33 }
34
35 /* ------------------------------------------------------------ */
36 /**
37 * @param constraint The constraint to set.
38 */
39 public void setConstraint(Constraint constraint)
40 {
41 this._constraint = constraint;
42 }
43
44 /* ------------------------------------------------------------ */
45 /**
46 * @return Returns the method.
47 */
48 public String getMethod()
49 {
50 return _method;
51 }
52
53 /* ------------------------------------------------------------ */
54 /**
55 * @param method The method to set.
56 */
57 public void setMethod(String method)
58 {
59 this._method = method;
60 }
61
62 /* ------------------------------------------------------------ */
63 /**
64 * @return Returns the pathSpec.
65 */
66 public String getPathSpec()
67 {
68 return _pathSpec;
69 }
70
71 /* ------------------------------------------------------------ */
72 /**
73 * @param pathSpec The pathSpec to set.
74 */
75 public void setPathSpec(String pathSpec)
76 {
77 this._pathSpec = pathSpec;
78 }
79 }