Class BlobObject
- java.lang.Object
-
- org.nuxeo.ecm.webengine.model.impl.AbstractResource<ResourceTypeImpl>
-
- org.nuxeo.ecm.webengine.model.impl.DefaultObject
-
- org.nuxeo.ecm.restapi.server.jaxrs.blob.BlobObject
-
public class BlobObject extends DefaultObject
- Since:
- 5.8
-
-
Field Summary
Fields Modifier and Type Field Description protected DocumentBlobHolder
blobHolder
protected DocumentModel
doc
protected String
xpath
-
Constructor Summary
Constructors Constructor Description BlobObject()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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.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)
-
Methods inherited from class org.nuxeo.ecm.webengine.model.impl.DefaultObject
disptachAdapter, isAdapter
-
Methods inherited from class org.nuxeo.ecm.webengine.model.impl.AbstractResource
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
-
-
-
-
Field Detail
-
doc
protected DocumentModel doc
-
blobHolder
protected DocumentBlobHolder blobHolder
-
xpath
protected String xpath
-
-
Method Detail
-
initialize
protected void initialize(Object... args)
- Overrides:
initialize
in classAbstractResource<ResourceTypeImpl>
-
getAdapter
public <A> A getAdapter(Class<A> adapter)
Description copied from interface:Adaptable
Returns an object which is an instance of the given class associated with this object. Returnsnull
if no such object can be found.- Specified by:
getAdapter
in interfaceAdaptable
- Overrides:
getAdapter
in classAbstractResource<ResourceTypeImpl>
- Parameters:
adapter
- the adapter class to look up- Returns:
- a object castable to the given class, or
null
if this object does not have an adapter for the given class
-
getBlobHolder
public DocumentBlobHolder getBlobHolder()
-
doGet
public Object doGet(@Context javax.ws.rs.core.Request request)
-
buildResponseFromBlob
@Deprecated public 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 defaultBlobWriter
.
-
doDelete
public javax.ws.rs.core.Response doDelete()
-
doPut
public javax.ws.rs.core.Response doPut()
-
-