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.
9 // The Eclipse Public License is available at
10 // http://www.eclipse.org/legal/epl-v10.html
12 // The Apache License v2.0 is available at
13 // http://www.opensource.org/licenses/apache2.0.php
15 // You may elect to redistribute this code under either of these licenses.
16 // ========================================================================
19 package org.eclipse.jetty.security;
21 import org.eclipse.jetty.util.security.Constraint;
23 public class ConstraintMapping
26 String[] _methodOmissions;
30 Constraint _constraint;
32 /* ------------------------------------------------------------ */
34 * @return Returns the constraint.
36 public Constraint getConstraint()
41 /* ------------------------------------------------------------ */
43 * @param constraint The constraint to set.
45 public void setConstraint(Constraint constraint)
47 this._constraint = constraint;
50 /* ------------------------------------------------------------ */
52 * @return Returns the method.
54 public String getMethod()
59 /* ------------------------------------------------------------ */
61 * @param method The method to set.
63 public void setMethod(String method)
65 this._method = method;
68 /* ------------------------------------------------------------ */
70 * @return Returns the pathSpec.
72 public String getPathSpec()
77 /* ------------------------------------------------------------ */
79 * @param pathSpec The pathSpec to set.
81 public void setPathSpec(String pathSpec)
83 this._pathSpec = pathSpec;
86 /* ------------------------------------------------------------ */
88 * @param omissions The http-method-omission
90 public void setMethodOmissions(String[] omissions)
92 _methodOmissions = omissions;
95 /* ------------------------------------------------------------ */
96 public String[] getMethodOmissions()
98 return _methodOmissions;