Package org.alfresco.repo.transfer
Class ContentDataPart
- java.lang.Object
-
- org.apache.commons.httpclient.methods.multipart.Part
-
- org.apache.commons.httpclient.methods.multipart.PartBase
-
- org.alfresco.repo.transfer.ContentDataPart
-
public class ContentDataPart extends org.apache.commons.httpclient.methods.multipart.PartBase- Author:
- brian
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringFILE_NAMEAttachment's file name-
Fields inherited from class org.apache.commons.httpclient.methods.multipart.Part
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 Summary
Constructors Constructor Description ContentDataPart(ContentService contentService, java.lang.String partName, org.alfresco.service.cmr.repository.ContentData data)ContentDataPart
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected longlengthOfData()protected voidsendData(java.io.OutputStream out)protected voidsendDispositionHeader(java.io.OutputStream out)Write the disposition header to the output stream-
Methods inherited from class org.apache.commons.httpclient.methods.multipart.PartBase
getCharSet, getContentType, getName, getTransferEncoding, setCharSet, setContentType, setName, setTransferEncoding
-
-
-
-
Field Detail
-
FILE_NAME
protected static final java.lang.String FILE_NAME
Attachment's file name- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ContentDataPart
public ContentDataPart(ContentService contentService, java.lang.String partName, org.alfresco.service.cmr.repository.ContentData data)
ContentDataPart- Parameters:
contentService- content servicepartName- Stringdata- data
-
-
Method Detail
-
sendDispositionHeader
protected void sendDispositionHeader(java.io.OutputStream out) throws java.io.IOExceptionWrite the disposition header to the output stream- Overrides:
sendDispositionHeaderin classorg.apache.commons.httpclient.methods.multipart.Part- Parameters:
out- The output stream- Throws:
java.io.IOException- If an IO problem occurs- See Also:
Part.sendDispositionHeader(OutputStream)
-
lengthOfData
protected long lengthOfData() throws java.io.IOException- Specified by:
lengthOfDatain classorg.apache.commons.httpclient.methods.multipart.Part- Throws:
java.io.IOException
-
sendData
protected void sendData(java.io.OutputStream out) throws java.io.IOException- Specified by:
sendDatain classorg.apache.commons.httpclient.methods.multipart.Part- Throws:
java.io.IOException
-
-