1 /* 2 * Copyright 1999-2004 The Apache Software Foundation 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package org.apache.commons.chain.impl; 17 18 19 import org.apache.commons.chain.Context; 20 import org.apache.commons.chain.Filter; 21 22 23 /*** 24 * <p>Implementation of {@link Filter} that logs its identifier and 25 * and delegates to the rest of the chain.</p> 26 * 27 * @author Craig R. McClanahan 28 * @version $Revision: 1.5 $ $Date: 2004/02/25 00:01:05 $ 29 */ 30 31 public class DelegatingFilter extends NonDelegatingFilter { 32 33 34 // ------------------------------------------------------------ Constructor 35 36 37 public DelegatingFilter() { 38 this("", ""); 39 } 40 41 42 // Construct an instance that will log the specified identifier 43 public DelegatingFilter(String id1, String id2) { 44 super(id1, id2); 45 } 46 47 48 // -------------------------------------------------------- Command Methods 49 50 51 // Execution method for this Command 52 public boolean execute(Context context) throws Exception { 53 54 super.execute(context); 55 return (false); 56 57 } 58 59 60 }