Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.api.ws
Class DocumentBlob

java.lang.Object
  extended by org.nuxeo.ecm.platform.api.ws.DocumentBlob
All Implemented Interfaces:
Serializable

public class DocumentBlob
extends Object
implements Serializable

Web service document blob.

Author:
Julien Anguenot, Thierry Delprat
See Also:
Serialized Form

Constructor Summary
DocumentBlob()
          Empty ctor needed by tools like jaxb.
DocumentBlob(String name, Blob blob)
           
DocumentBlob(String name, String encoding, String mimeType, String downloadUrl)
           
 
Method Summary
 byte[] getBlob()
          Returns the actual blob as a serializable input stream.
 String getDownloadUrl()
           
 String getEncoding()
          Returns the encoding of the blob.
 String[] getExtensions()
           
 String getMimetype()
          Returns the main RFC-2046 mimetype name.
 String getMimeType()
           
 String getName()
          Returns the name of the document field name.
 String getUrl()
           
 void setBlob(byte[] blob)
           
 void setEncoding(String encoding)
           
 void setExtensions(String[] extensions)
           
 void setMimetype(String mimeType)
           
 void setMimeType(String mimeType)
           
 void setName(String name)
           
 void setUrl(String url)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentBlob

public DocumentBlob()
Empty ctor needed by tools like jaxb.


DocumentBlob

public DocumentBlob(String name,
                    Blob blob)
             throws IOException
Throws:
IOException

DocumentBlob

public DocumentBlob(String name,
                    String encoding,
                    String mimeType,
                    String downloadUrl)
Method Detail

getName

public String getName()
Returns the name of the document field name.

We probably need to embed the name along with the schema prefix.

Returns:
the name of the document field name

getMimetype

public String getMimetype()
Returns the main RFC-2046 mimetype name.

Returns:
the main RFC-2046 name

getEncoding

public String getEncoding()
Returns the encoding of the blob.

Returns:
the encoding of the blob

getBlob

public byte[] getBlob()
Returns the actual blob as a serializable input stream.

Returns:
the actual blob as a serializable input stream

setExtensions

public void setExtensions(String[] extensions)

getExtensions

public String[] getExtensions()

setBlob

public void setBlob(byte[] blob)

setMimetype

public void setMimetype(String mimeType)

setEncoding

public void setEncoding(String encoding)

setName

public void setName(String name)

getDownloadUrl

public String getDownloadUrl()

getMimeType

public String getMimeType()

setMimeType

public void setMimeType(String mimeType)

getUrl

public String getUrl()

setUrl

public void setUrl(String url)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.