public class ContentDataPart
extends org.apache.commons.httpclient.methods.multipart.PartBase
| Modifier and Type | Field and Description |
|---|---|
protected static String |
FILE_NAME
Attachment's file name
|
BOUNDARY, BOUNDARY_BYTES, CHARSET, CHARSET_BYTES, CONTENT_DISPOSITION, CONTENT_DISPOSITION_BYTES, CONTENT_TRANSFER_ENCODING, CONTENT_TRANSFER_ENCODING_BYTES, CONTENT_TYPE, CONTENT_TYPE_BYTES, CRLF, CRLF_BYTES, EXTRA, EXTRA_BYTES, QUOTE, QUOTE_BYTES| Constructor and Description |
|---|
ContentDataPart(ContentService contentService,
String partName,
org.alfresco.service.cmr.repository.ContentData data)
ContentDataPart
|
| Modifier and Type | Method and Description |
|---|---|
protected long |
lengthOfData() |
protected void |
sendData(OutputStream out) |
protected void |
sendDispositionHeader(OutputStream out)
Write the disposition header to the output stream
|
getCharSet, getContentType, getName, getTransferEncoding, setCharSet, setContentType, setName, setTransferEncodingprotected static final String FILE_NAME
public ContentDataPart(ContentService contentService, String partName, org.alfresco.service.cmr.repository.ContentData data)
contentService - content servicepartName - Stringdata - dataprotected void sendDispositionHeader(OutputStream out) throws IOException
sendDispositionHeader in class org.apache.commons.httpclient.methods.multipart.Partout - The output streamIOException - If an IO problem occursPart.sendDispositionHeader(OutputStream)protected long lengthOfData()
throws IOException
lengthOfData in class org.apache.commons.httpclient.methods.multipart.PartIOExceptionprotected void sendData(OutputStream out) throws IOException
sendData in class org.apache.commons.httpclient.methods.multipart.PartIOExceptionCopyright © 2005–2018 Alfresco Software. All rights reserved.