mapping.setPathSpec("/*");
handler.setServletMappings(new ServletMapping[] { mapping });
if (processor.getAuthMethod() != null) {
SecurityHandler secHandler = new SecurityHandler();
ConstraintMapping constraintMapping = new ConstraintMapping();
Constraint constraint = new Constraint();
constraint.setAuthenticate(true);
constraint.setRoles(new String[] { "*" });
constraintMapping.setConstraint(constraint);
constraintMapping.setPathSpec("/");
secHandler.setConstraintMappings(new ConstraintMapping[] { constraintMapping });
secHandler.setHandler(handler);
secHandler.setAuthMethod(processor.getAuthMethod());