1 16 package org.apache.cocoon.selection; 17 18 import org.apache.avalon.framework.logger.AbstractLogEnabled; 19 import org.apache.avalon.framework.parameters.Parameters; 20 import org.apache.avalon.framework.thread.ThreadSafe; 21 import org.apache.cocoon.environment.ObjectModelHelper; 22 23 import java.util.Map ; 24 25 31 public class RequestMethodSelector extends AbstractLogEnabled 32 implements ThreadSafe, Selector { 33 34 public boolean select( 35 String expression, Map objectModel, Parameters parameters) 36 { 37 String method = ObjectModelHelper.getRequest(objectModel).getMethod(); 38 return method.equals(expression); 39 } 40 } 41 | Popular Tags |