@Test public void testExpectFalse() throws EvaluationException { request.setRequestUri("test"); IAccessEvent ae = new AccessEvent(accessContext, request, response, serverAdapter); assertFalse(evaluator.evaluate(ae)); }
@Override public boolean evaluate(IAccessEvent event) throws NullPointerException, EvaluationException { String url = event.getRequestURL(); for (String expected : URLList) { if (url.contains(expected)) { return true; } } return false; }
URLEvaluator extends ContextAwareBase implements EventEvaluator<IAccessEvent>, LifeCycle { @Override public boolean evaluate(IAccessEvent event) throws NullPointerException, EvaluationException { String url = event.getRequestURL(); for (String expected : URLList) { if (url.contains(expected)) { return true; } } return false; } }
URLEvaluator extends ContextAwareBase implements EventEvaluator<IAccessEvent>, LifeCycle { @Override public boolean evaluate(IAccessEvent event) throws NullPointerException, EvaluationException { String url = event.getRequestURL(); for (String expected : URLList) { if (url.contains(expected)) { return true; } } return false; }  }
URLEvaluator extends ContextAwareBase implements EventEvaluator<IAccessEvent>, LifeCycle { @Override public boolean evaluate(IAccessEvent event) throws NullPointerException, EvaluationException { String url = event.getRequestURL(); for (String expected : URLList) { if (url.contains(expected)) { return true; } } return false; }  void addURL(String url); @Override void start(); @Override boolean evaluate(IAccessEvent event); @Override String getName(); @Override void setName(String name); @Override boolean isStarted(); @Override void stop(); }
URLEvaluator extends ContextAwareBase implements EventEvaluator<IAccessEvent>, LifeCycle { @Override public boolean evaluate(IAccessEvent event) throws NullPointerException, EvaluationException { String url = event.getRequestURL(); for (String expected : URLList) { if (url.contains(expected)) { return true; } } return false; }  void addURL(String url); @Override void start(); @Override boolean evaluate(IAccessEvent event); @Override String getName(); @Override void setName(String name); @Override boolean isStarted(); @Override void stop();  }