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