public class BlobObject extends DefaultObject
Modifier and Type | Field and Description |
---|---|
protected DocumentBlobHolder |
blobHolder |
protected DocumentModel |
doc |
protected String |
xpath |
Constructor and Description |
---|
BlobObject() |
Modifier and Type | Method and Description |
---|---|
static javax.ws.rs.core.Response |
buildResponseFromBlob(javax.ws.rs.core.Request request,
javax.servlet.http.HttpServletRequest httpServletRequest,
Blob blob,
String filename)
Deprecated.
since 7.3. Now returns directly the Blob and use default
BlobWriter . |
javax.ws.rs.core.Response |
doDelete() |
Object |
doGet(javax.ws.rs.core.Request request) |
javax.ws.rs.core.Response |
doPut() |
<A> A |
getAdapter(Class<A> adapter)
Returns an object which is an instance of the given class associated with this object.
|
DocumentBlobHolder |
getBlobHolder() |
protected void |
initialize(Object... args) |
disptachAdapter, isAdapter
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, toString
protected DocumentModel doc
protected DocumentBlobHolder blobHolder
public BlobObject()
protected void initialize(Object... args)
initialize
in class AbstractResource<ResourceTypeImpl>
public <A> A getAdapter(Class<A> adapter)
Adaptable
null
if no such object can be found.getAdapter
in interface Adaptable
getAdapter
in class AbstractResource<ResourceTypeImpl>
adapter
- the adapter class to look upnull
if this object does not have an adapter for
the given classpublic DocumentBlobHolder getBlobHolder()
@Deprecated public static javax.ws.rs.core.Response buildResponseFromBlob(javax.ws.rs.core.Request request, javax.servlet.http.HttpServletRequest httpServletRequest, Blob blob, String filename)
BlobWriter
.public javax.ws.rs.core.Response doDelete()
public javax.ws.rs.core.Response doPut()
Copyright © 2018 Nuxeo. All rights reserved.