@Test public void testRetrieveNotExistsContent() { tester.executeUrl(OContentShareResource.urlFor(doc, "notFound", "text/plain", false).toString()); MockHttpServletResponse response = tester.getLastResponse(); assertEquals(response.getStatus(), HttpServletResponse.SC_NOT_FOUND); }
public static CharSequence urlFor(ODocument document, String field, String contentType, boolean fullUrl) { return urlFor(getSharedResourceReference(), document, field, contentType, null, null, fullUrl); }
OContentShareResource extends AbstractResource { public static CharSequence urlFor(ODocument document, String field, String contentType, boolean fullUrl) { return urlFor(getSharedResourceReference(), document, field, contentType, null, null, fullUrl); } }
OContentShareResource extends AbstractResource { public static CharSequence urlFor(ODocument document, String field, String contentType, boolean fullUrl) { return urlFor(getSharedResourceReference(), document, field, contentType, null, null, fullUrl); }  }
OContentShareResource extends AbstractResource { public static CharSequence urlFor(ODocument document, String field, String contentType, boolean fullUrl) { return urlFor(getSharedResourceReference(), document, field, contentType, null, null, fullUrl); }  static SharedResourceReference getSharedResourceReference(); static CharSequence urlFor(ODocument document, String field, String contentType,  boolean fullUrl); static CharSequence urlFor(ODocument document, String field, String contentType, Integer imageSize, boolean fullUrl); static CharSequence urlFor(ODocument document, String field, String contentType, Integer imageSize, Double imageQuality, boolean fullUrl); }
OContentShareResource extends AbstractResource { public static CharSequence urlFor(ODocument document, String field, String contentType, boolean fullUrl) { return urlFor(getSharedResourceReference(), document, field, contentType, null, null, fullUrl); }  static SharedResourceReference getSharedResourceReference(); static CharSequence urlFor(ODocument document, String field, String contentType,  boolean fullUrl); static CharSequence urlFor(ODocument document, String field, String contentType, Integer imageSize, boolean fullUrl); static CharSequence urlFor(ODocument document, String field, String contentType, Integer imageSize, Double imageQuality, boolean fullUrl);  }