@Test public void testGetFlavor() { assertEquals(RequestFlavor.ANY, liveUrl.getFlavor()); assertEquals(RequestFlavor.JSON, flavoredSegmentedLiveUrl.getFlavor()); assertEquals(RequestFlavor.JSON, new WebUrlImpl(siteMock, "/test/json").getFlavor()); assertEquals(RequestFlavor.JSON, new WebUrlImpl(siteMock, "/test/work/json").getFlavor()); assertEquals(RequestFlavor.JSON, new WebUrlImpl(siteMock, "/test/de/json").getFlavor()); assertEquals(RequestFlavor.JSON, new WebUrlImpl(siteMock, "/test/work/de/json").getFlavor()); assertEquals(RequestFlavor.JSON, new WebUrlImpl(siteMock, "/test/JSON").getFlavor()); assertEquals(RequestFlavor.JSON, new WebUrlImpl(siteMock, "/test/json/").getFlavor()); }
public RequestFlavor getFlavor() { return flavor != null ? flavor : defaultFlavor; }
WebUrlImpl extends UrlImpl implements WebUrl { public RequestFlavor getFlavor() { return flavor != null ? flavor : defaultFlavor; } }
WebUrlImpl extends UrlImpl implements WebUrl { public RequestFlavor getFlavor() { return flavor != null ? flavor : defaultFlavor; } WebUrlImpl(Site site, String path);  WebUrlImpl(Site site, Path url);  WebUrlImpl(Site site, Path url, String path);  WebUrlImpl(Site site, String path, long version);  WebUrlImpl(Site site, String path, long version, RequestFlavor flavor);  WebUrlImpl(Site site, String path, long version, RequestFlavor flavor,
      Language language);  WebUrlImpl(WebUrlImpl url, String path); }
WebUrlImpl extends UrlImpl implements WebUrl { public RequestFlavor getFlavor() { return flavor != null ? flavor : defaultFlavor; } WebUrlImpl(Site site, String path);  WebUrlImpl(Site site, Path url);  WebUrlImpl(Site site, Path url, String path);  WebUrlImpl(Site site, String path, long version);  WebUrlImpl(Site site, String path, long version, RequestFlavor flavor);  WebUrlImpl(Site site, String path, long version, RequestFlavor flavor,
      Language language);  WebUrlImpl(WebUrlImpl url, String path); Site getSite(); String getLink(); String getLink(long version); String getLink(Language language); String getLink(String flavor); String getLink(long version, Language language, String flavor); String normalize(); String normalize(boolean includeVersion, boolean includeLanguage,
      boolean includeFlavor); RequestFlavor getFlavor(); long getVersion(); Language getLanguage(); boolean hasLanguagePathSegment(); @Override int hashCode(); @Override boolean equals(Object object); @Override String toString(); }
WebUrlImpl extends UrlImpl implements WebUrl { public RequestFlavor getFlavor() { return flavor != null ? flavor : defaultFlavor; } WebUrlImpl(Site site, String path);  WebUrlImpl(Site site, Path url);  WebUrlImpl(Site site, Path url, String path);  WebUrlImpl(Site site, String path, long version);  WebUrlImpl(Site site, String path, long version, RequestFlavor flavor);  WebUrlImpl(Site site, String path, long version, RequestFlavor flavor,
      Language language);  WebUrlImpl(WebUrlImpl url, String path); Site getSite(); String getLink(); String getLink(long version); String getLink(Language language); String getLink(String flavor); String getLink(long version, Language language, String flavor); String normalize(); String normalize(boolean includeVersion, boolean includeLanguage,
      boolean includeFlavor); RequestFlavor getFlavor(); long getVersion(); Language getLanguage(); boolean hasLanguagePathSegment(); @Override int hashCode(); @Override boolean equals(Object object); @Override String toString();  }