public class ConvertAdapter extends DefaultAdapter
Constructor and Description |
---|
ConvertAdapter() |
Modifier and Type | Method and Description |
---|---|
protected Map<String,Serializable> |
computeConversionParameters(javax.ws.rs.core.UriInfo uriInfo) |
Object |
convert(String converter,
String type,
String format,
boolean async,
javax.ws.rs.core.UriInfo uriInfo) |
Blob |
convert(String converter,
String type,
String format,
javax.ws.rs.core.UriInfo uriInfo) |
protected Blob |
convertWithConverter(BlobHolder bh,
String converter,
javax.ws.rs.core.UriInfo uriInfo) |
protected Blob |
convertWithFormat(BlobHolder bh,
String format,
javax.ws.rs.core.UriInfo uriInfo) |
protected Blob |
convertWithMimeType(BlobHolder bh,
String mimeType,
javax.ws.rs.core.UriInfo uriInfo) |
protected BlobHolder |
getBlobHolderToConvert() |
disptachAdapter, getTarget, isAdapter
checkGuard, dispose, getActiveAdapter, getAdapter, getContext, getFacets, getLinks, getModule, getName, getNext, getNextSegment, getPath, getPrevious, getTemplate, getTrailingPath, getType, getURL, getView, hasFacet, initialize, initialize, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
checkGuard, dispose, getActiveAdapter, getContext, getFacets, getLinks, getModule, getName, getNext, getNextSegment, getPath, getPrevious, getTemplate, getTrailingPath, getType, getURL, getView, hasFacet, initialize, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot
getAdapter
public static final String NAME
public ConvertAdapter()
public Blob convert(String converter, String type, String format, @Context javax.ws.rs.core.UriInfo uriInfo)
protected BlobHolder getBlobHolderToConvert()
protected Blob convertWithConverter(BlobHolder bh, String converter, javax.ws.rs.core.UriInfo uriInfo)
protected Map<String,Serializable> computeConversionParameters(javax.ws.rs.core.UriInfo uriInfo)
protected Blob convertWithMimeType(BlobHolder bh, String mimeType, javax.ws.rs.core.UriInfo uriInfo)
protected Blob convertWithFormat(BlobHolder bh, String format, javax.ws.rs.core.UriInfo uriInfo)
Copyright © 2015 Nuxeo SA. All rights reserved.