Class ConvertAdapter

All Implemented Interfaces:
AdapterResource, Resource, Adaptable

@Produces("application/json") public class ConvertAdapter extends DefaultAdapter
Adapter allowing to convert a Blob using a named converter or a destination mime type.
Since:
7.3
  • Field Details

  • Constructor Details

    • ConvertAdapter

      public ConvertAdapter()
  • Method Details

    • convert

      @GET public Blob convert(@QueryParam("converter") String converter, @QueryParam("type") String type, @QueryParam("format") String format, @Context jakarta.ws.rs.core.UriInfo uriInfo)
    • getBlobHolderToConvert

      protected BlobHolder getBlobHolderToConvert()
    • convertWithConverter

      protected Blob convertWithConverter(BlobHolder bh, String converter, jakarta.ws.rs.core.UriInfo uriInfo)
    • computeConversionParameters

      protected Map<String,Serializable> computeConversionParameters(jakarta.ws.rs.core.UriInfo uriInfo)
    • convertWithMimeType

      protected Blob convertWithMimeType(BlobHolder bh, String mimeType, jakarta.ws.rs.core.UriInfo uriInfo)
    • convertWithFormat

      protected Blob convertWithFormat(BlobHolder bh, String format, jakarta.ws.rs.core.UriInfo uriInfo)
    • convert

      @POST public jakarta.ws.rs.core.Response convert(@FormParam("converter") String converter, @FormParam("type") String type, @FormParam("format") String format, @FormParam("async") boolean async, @Context jakarta.ws.rs.core.UriInfo uriInfo)