code: @GET
     @Path("/{linkFilePath}/")
     @Produces("application/octet-stream")
     public Response produceLink(@PathParam("linkFilePath") String linkFilePath, @QueryParam("path") String path,
        @Context UriInfo uriInfo)
     {
  
        String host = uriInfo.getRequestUri().getHost();
        String uri = uriInfo.getBaseUri().toString();
  
        try
        {
           LinkGenerator linkGenerator = new LinkGenerator(host, uri, path);
           byte[] content = linkGenerator.generateLinkContent();
  
           return Response.ok(content, MediaType.APPLICATION_OCTET_STREAM).header(HttpHeaders.CONTENT_LENGTH,
              Integer.toString(content.length)).build();
  
        }
        catch (IOException exc)
        {
           LOG.error(exc.getMessage(), exc);
           throw new WebApplicationException(exc);
        }
  
     }
docs: Produces a link.
  
  @param linkFilePath link file path
  @param path path to resource
  @param uriInfo uriInfo
  @return generated link
  @response
  {code}
  "content" : the generated link file.
  {code}
  @LevelAPI Experimental