private static String createMatcherExample() { MatcherBean matcher = MatcherBean.newMatcherBean() .withPattern("https://www.facebook.com/{}/about") .build(); return gson.toJson(matcher); }
public static MatcherBeanBuilder newMatcherBean(MatcherBean defaultBean) { return new MatcherBeanBuilder(defaultBean); }
private static String createMatcherExample() { MatcherBean matcher = MatcherBean.newMatcherBean() .withPattern("https://www.facebook.com/{}/about") .build(); return gson.toJson(matcher); }
public static MatcherBeanBuilder newMatcherBean() { return new MatcherBeanBuilder(); }
private static String createAutoconvertExample() { DynamicContentMacroModuleBean dynamicMacroWithAutoconvert = newDynamicContentMacroModuleBean() .withUrl("/dynamic-macro?url={url}") .withKey("dynamic-macro-with-autoconvert") .withName(value("Dynamic Macro With Autoconvert")) .withParameters( newMacroParameterBean() .withIdentifier("url") .withName(i18nProperty("URL")) .withType("string") .build()) .withAutoconvert(AutoconvertBean.newAutoconvertBean() .withUrlParameter("url") .withMatchers(MatcherBean.newMatcherBean() .withPattern("https://www.facebook.com/{}/about") .build(), MatcherBean.newMatcherBean() .withPattern("https://www.facebook.com/{}/music") .build(), MatcherBean.newMatcherBean() .withPattern("https://www.facebook.com/{}/movies/{}") .build()) .build()) .build(); return gson.toJson(dynamicMacroWithAutoconvert); }
public static MatcherBeanBuilder newMatcherBean(MatcherBean defaultBean) { return new MatcherBeanBuilder(defaultBean); }
.withUrlParameter("url") .withMatchers(MatcherBean.newMatcherBean() .withPattern("https://www.example.com/maps/{}/{}") .build(), MatcherBean.newMatcherBean() .withPattern("https://www.example.com/map-editor/{}") .build()) .build()) .build();
public static MatcherBeanBuilder newMatcherBean() { return new MatcherBeanBuilder(); }
.withUrlParameter("url") .withMatchers(MatcherBean.newMatcherBean() .withPattern("https://www.example.com/maps/{}/{}") .build(), MatcherBean.newMatcherBean() .withPattern("https://www.example.com/map-editor/{}") .build()) .build()) .build();