@Override
  @Deprecated
  public ContentResult fetchOrderContent(OrderItem orderItem) throws IOException {
    String downloadUri = Objects.requireNonNull(
        Objects.requireNonNull(orderItem, "Missing order item").getUri(LINK_DOWNLOAD), "Missing download URI");
    String fetchUri = restClient.uri(downloadUri)
        .addParameter("downloadToken", "")
        .build();
    return restClient.get(fetchUri, contentResultFactory);
  }
@Override
  @Deprecated
  public ContentResult fetchOrderContent(OrderItem orderItem) throws IOException {
    String downloadUri = Objects.requireNonNull(
        Objects.requireNonNull(orderItem, "Missing order item").getUri(LINK_DOWNLOAD), "Missing download URI");
    String fetchUri = restClient.uri(downloadUri)
        .addParameter("downloadToken", "")
        .build();
    return restClient.get(fetchUri, contentResultFactory);
  }
@ Override @ Deprecated public ContentResult fetchOrderContent ( OrderItem orderItem ) throws IOException { String downloadUri = Objects . requireNonNull ( Objects . requireNonNull ( orderItem , "Missing order item" ) . getUri ( LINK_DOWNLOAD ) , "Missing download URI" ) ; String fetchUri = restClient . uri ( downloadUri ) . addParameter ( "downloadToken" , "" ) . build ( ) ; return restClient . get ( fetchUri , contentResultFactory ) ; }
Fetch the content for the specified order item.
@param orderItem The order item.
@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 order item .