Class ConvertAdapter

All Implemented Interfaces:
AdapterResource, Resource, Adaptable

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

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

      protected BlobHolder getBlobHolderToConvert()
    • convertWithConverter

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

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

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

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

      public Object convert(String converter, String type, String format, boolean async, @Context javax.ws.rs.core.UriInfo uriInfo)