@Test public void hasMapperTest() { final RequestMapper mapper = Routes.route().lookup("/v1/test", RequestMethod.GET); Assert.assertEquals(mapper.hasMethod(RequestMethod.POST), true); }
public boolean hasMethod(final RequestMethod method) { if (ArrayUtils.isNotEmpty(requestMethods)) { return Lists.newArrayList(requestMethods).contains(method); } return true; }
RequestMapper extends BaseEntity { public boolean hasMethod(final RequestMethod method) { if (ArrayUtils.isNotEmpty(requestMethods)) { return Lists.newArrayList(requestMethods).contains(method); } return true; } }
RequestMapper extends BaseEntity { public boolean hasMethod(final RequestMethod method) { if (ArrayUtils.isNotEmpty(requestMethods)) { return Lists.newArrayList(requestMethods).contains(method); } return true; } private  RequestMapper(); }
RequestMapper extends BaseEntity { public boolean hasMethod(final RequestMethod method) { if (ArrayUtils.isNotEmpty(requestMethods)) { return Lists.newArrayList(requestMethods).contains(method); } return true; } private  RequestMapper(); static RequestMapper create(); Object getInstance(); RequestMapper setInstance(final Object instance); Class<?> getCls(); RequestMapper setCls(final Class<?> cls); Method getMethod(); RequestMapper setMethod(final Method method); RequestMethod[] getRequestMethods(); String[] getRequestMethodStrs(); RequestMapper setRequestMethods(final RequestMethod[] requestMethods); boolean hasMethod(final RequestMethod method); Map<String, String> getParam(); RequestMapper setParam(final Map<String, String> param); }
RequestMapper extends BaseEntity { public boolean hasMethod(final RequestMethod method) { if (ArrayUtils.isNotEmpty(requestMethods)) { return Lists.newArrayList(requestMethods).contains(method); } return true; } private  RequestMapper(); static RequestMapper create(); Object getInstance(); RequestMapper setInstance(final Object instance); Class<?> getCls(); RequestMapper setCls(final Class<?> cls); Method getMethod(); RequestMapper setMethod(final Method method); RequestMethod[] getRequestMethods(); String[] getRequestMethodStrs(); RequestMapper setRequestMethods(final RequestMethod[] requestMethods); boolean hasMethod(final RequestMethod method); Map<String, String> getParam(); RequestMapper setParam(final Map<String, String> param);  }