core/src/main/java/com/opentext/ia/sdk/client/impl/InfoArchiveRestClient.java
@Override
  @Deprecated
  public ContentResult fetchContent(String contentId) throws IOException {
    try {
      String contentResource = resourceCache.getCiResourceUri();
      URIBuilder builder = new URIBuilder(contentResource);
      builder.setParameter("cid", contentId);
      URI uri = builder.build();
      return restClient.get(uri.toString(), contentResultFactory);
    } catch (URISyntaxException e) {
      throw new IllegalStateException("Failed to create content resource uri.", e);
    }
  }
@Override
  @Deprecated
  public ContentResult fetchContent(String contentId) throws IOException {
    try {
      String contentResource = resourceCache.getCiResourceUri();
      URIBuilder builder = new URIBuilder(contentResource);
      builder.setParameter("cid", contentId);
      URI uri = builder.build();
      return restClient.get(uri.toString(), contentResultFactory);
    } catch (URISyntaxException e) {
      throw new IllegalStateException("Failed to create content resource uri.", e);
    }
  }
@ Override @ Deprecated public ContentResult fetchContent ( String contentId ) throws IOException { try { String contentResource = resourceCache . getCiResourceUri ( ) ; URIBuilder builder = new URIBuilder ( contentResource ) ; builder . setParameter ( "cid" , contentId ) ; URI uri = builder . build ( ) ; return restClient . get ( uri . toString ( ) , contentResultFactory ) ; } catch ( URISyntaxException e ) { throw new IllegalStateException ( "Failed to create content resource uri." , e ) ; } }
Fetch the content for the specified content id.
@param contentId The id of the content to fetch.
@return A ContentResult
@throws IOException When an I/O error occurs
@deprecated Will be removed without replacement in a future version
Fetch the content for the specified content id .