View Javadoc

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      String[] _methodOmissions;
22  
23      String _pathSpec;
24  
25      Constraint _constraint;
26  
27      /* ------------------------------------------------------------ */
28      /**
29       * @return Returns the constraint.
30       */
31      public Constraint getConstraint()
32      {
33          return _constraint;
34      }
35  
36      /* ------------------------------------------------------------ */
37      /**
38       * @param constraint The constraint to set.
39       */
40      public void setConstraint(Constraint constraint)
41      {
42          this._constraint = constraint;
43      }
44  
45      /* ------------------------------------------------------------ */
46      /**
47       * @return Returns the method.
48       */
49      public String getMethod()
50      {
51          return _method;
52      }
53  
54      /* ------------------------------------------------------------ */
55      /**
56       * @param method The method to set.
57       */
58      public void setMethod(String method)
59      {
60          this._method = method;
61      }
62  
63      /* ------------------------------------------------------------ */
64      /**
65       * @return Returns the pathSpec.
66       */
67      public String getPathSpec()
68      {
69          return _pathSpec;
70      }
71  
72      /* ------------------------------------------------------------ */
73      /**
74       * @param pathSpec The pathSpec to set.
75       */
76      public void setPathSpec(String pathSpec)
77      {
78          this._pathSpec = pathSpec;
79      }
80      
81      /* ------------------------------------------------------------ */
82      /**
83       * @param omissions The http-method-omission
84       */
85      public void setMethodOmissions(String[] omissions)
86      {
87          _methodOmissions = omissions;
88      }
89      
90      /* ------------------------------------------------------------ */
91      public String[] getMethodOmissions()
92      {
93          return _methodOmissions;
94      }
95  }