1 // 2 // ======================================================================== 3 // Copyright (c) 1995-2013 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 19 package org.eclipse.jetty.security; 20 21 import org.eclipse.jetty.util.security.Constraint; 22 23 public class ConstraintMapping 24 { 25 String _method; 26 27 String _pathSpec; 28 29 Constraint _constraint; 30 31 /* ------------------------------------------------------------ */ 32 /** 33 * @return Returns the constraint. 34 */ 35 public Constraint getConstraint() 36 { 37 return _constraint; 38 } 39 40 /* ------------------------------------------------------------ */ 41 /** 42 * @param constraint The constraint to set. 43 */ 44 public void setConstraint(Constraint constraint) 45 { 46 this._constraint = constraint; 47 } 48 49 /* ------------------------------------------------------------ */ 50 /** 51 * @return Returns the method. 52 */ 53 public String getMethod() 54 { 55 return _method; 56 } 57 58 /* ------------------------------------------------------------ */ 59 /** 60 * @param method The method to set. 61 */ 62 public void setMethod(String method) 63 { 64 this._method = method; 65 } 66 67 /* ------------------------------------------------------------ */ 68 /** 69 * @return Returns the pathSpec. 70 */ 71 public String getPathSpec() 72 { 73 return _pathSpec; 74 } 75 76 /* ------------------------------------------------------------ */ 77 /** 78 * @param pathSpec The pathSpec to set. 79 */ 80 public void setPathSpec(String pathSpec) 81 { 82 this._pathSpec = pathSpec; 83 } 84 }