001 /* 002 * Licensed to the Apache Software Foundation (ASF) under one 003 * or more contributor license agreements. See the NOTICE file 004 * distributed with this work for additional information 005 * regarding copyright ownership. The ASF licenses this file 006 * to you under the Apache License, Version 2.0 (the 007 * "License"); you may not use this file except in compliance 008 * with the License. You may obtain a copy of the License at 009 * 010 * http://www.apache.org/licenses/LICENSE-2.0 011 * 012 * Unless required by applicable law or agreed to in writing, 013 * software distributed under the License is distributed on an 014 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 015 * KIND, either express or implied. See the License for the 016 * specific language governing permissions and limitations 017 * under the License. 018 */ 019 020 package org.apache.myfaces.tobago.config; 021 022 import java.util.ArrayList; 023 import java.util.List; 024 025 /** 026 * @deprecated please use other template mechanism, like JSP-Tag Files or any other 027 */ 028 @Deprecated 029 public class MappingRule { 030 031 private String requestUri; 032 private String forwardUri; 033 private List attributes; 034 035 public MappingRule() { 036 attributes = new ArrayList(); 037 } 038 039 public void addAttribute(Attribute attribute) { 040 attributes.add(attribute); 041 } 042 043 public String toString() { 044 StringBuilder buffer = new StringBuilder(); 045 buffer.append("requestUri = '").append(requestUri).append("'"); 046 buffer.append("forwardUri = '").append(forwardUri).append("'"); 047 buffer.append("attributes = '").append(attributes).append("'"); 048 return buffer.toString(); 049 } 050 051 public String getForwardUri() { 052 return forwardUri; 053 } 054 055 public void setForwardUri(String forwardUri) { 056 this.forwardUri = forwardUri; 057 } 058 059 public String getRequestUri() { 060 return requestUri; 061 } 062 063 public void setRequestUri(String requestUri) { 064 this.requestUri = requestUri; 065 } 066 067 public List getAttributes() { 068 return attributes; 069 } 070 }