01: //========================================================================
02: //$Id: ConstraintMapping.java,v 1.1 2005/10/05 14:09:14 janb Exp $
03: //Copyright 2004-2005 Mort Bay Consulting Pty. Ltd.
04: //------------------------------------------------------------------------
05: //Licensed under the Apache License, Version 2.0 (the "License");
06: //you may not use this file except in compliance with the License.
07: //You may obtain a copy of the License at
08: //http://www.apache.org/licenses/LICENSE-2.0
09: //Unless required by applicable law or agreed to in writing, software
10: //distributed under the License is distributed on an "AS IS" BASIS,
11: //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12: //See the License for the specific language governing permissions and
13: //limitations under the License.
14: //========================================================================
15:
16: package org.mortbay.jetty.security;
17:
18: public class ConstraintMapping {
19: String method;
20: String pathSpec;
21: Constraint constraint;
22:
23: /* ------------------------------------------------------------ */
24: /**
25: * @return Returns the constraint.
26: */
27: public Constraint getConstraint() {
28: return constraint;
29: }
30:
31: /* ------------------------------------------------------------ */
32: /**
33: * @param constraint The constraint to set.
34: */
35: public void setConstraint(Constraint constraint) {
36: this .constraint = constraint;
37: }
38:
39: /* ------------------------------------------------------------ */
40: /**
41: * @return Returns the method.
42: */
43: public String getMethod() {
44: return method;
45: }
46:
47: /* ------------------------------------------------------------ */
48: /**
49: * @param method The method to set.
50: */
51: public void setMethod(String method) {
52: this .method = method;
53: }
54:
55: /* ------------------------------------------------------------ */
56: /**
57: * @return Returns the pathSpec.
58: */
59: public String getPathSpec() {
60: return pathSpec;
61: }
62:
63: /* ------------------------------------------------------------ */
64: /**
65: * @param pathSpec The pathSpec to set.
66: */
67: public void setPathSpec(String pathSpec) {
68: this.pathSpec = pathSpec;
69: }
70: }
|