return 1;
}
public Configuration getConfiguration(final ServletContext context)
{
ConfigurationBuilder builder = ConfigurationBuilder.begin();
PrettyConfig config = (PrettyConfig) context.getAttribute(PrettyContext.CONFIG_KEY);
if (config != null)
{
List<RewriteRule> rules = config.getGlobalRewriteRules();
List<UrlMapping> mappings = config.getMappings();
for (RewriteRule rule : rules) {
builder.addRule(new InboundRewriteRuleAdaptor(rule));
}
for (UrlMapping mapping : mappings) {
builder.addRule(new UrlMappingRuleAdaptor(mapping));
}
for (RewriteRule rule : rules) {
builder.addRule(new OutboundRewriteRuleAdaptor(rule));
}
}
return builder;
}