public static Rule createAGetPostRule(String ruleName,String ruleUrl) throws PolicyException {
  Map<String,Set<String>> actionValues=new HashMap<String,Set<String>>();
  Set<String> set=new HashSet<String>();
  set.add(ALLOW_DECISION);
  actionValues.put(GET_ACTION,set);
  set=new HashSet<String>();
  set.add(ALLOW_DECISION);
  actionValues.put(POST_ACTION,set);
  return new Rule(ruleName,IPLANETAMWEBAGENTSERVICE,ruleUrl,actionValues);
}

public static Rule createAGetPostRule ( String ruleName , String ruleUrl ) throws PolicyException { Map < String , Set < String > > actionValues = new HashMap < String , Set < String > > ( ) ; Set < String > set = new HashSet < String > ( ) ; set . add ( ALLOW_DECISION ) ; actionValues . put ( GET_ACTION , set ) ; set = new HashSet < String > ( ) ; set . add ( ALLOW_DECISION ) ; actionValues . put ( POST_ACTION , set ) ; return new Rule ( ruleName , IPLANETAMWEBAGENTSERVICE , ruleUrl , actionValues ) ; }
create a http get / post rule for the given url .
