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
FieldsFields 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
ConstructorsConstructorDescriptionContentDataPart(ContentService contentService, String partName, ContentData data) ContentDataPart -
Method Summary
Modifier and TypeMethodDescriptionprotected longprotected voidsendData(OutputStream out) protected voidWrite the disposition header to the output streamMethods inherited from class org.apache.commons.httpclient.methods.multipart.PartBase
getCharSet, getContentType, getName, getTransferEncoding, setCharSet, setContentType, setName, setTransferEncodingMethods inherited from class org.apache.commons.httpclient.methods.multipart.Part
getBoundary, getLengthOfParts, getLengthOfParts, getPartBoundary, isRepeatable, length, send, sendContentTypeHeader, sendEnd, sendEndOfHeader, sendParts, sendParts, sendStart, sendTransferEncodingHeader, toString
-
Field Details
-
FILE_NAME
Attachment's file name- See Also:
-
-
Constructor Details
-
ContentDataPart
ContentDataPart- Parameters:
contentService- content servicepartName- Stringdata- data
-
-
Method Details
-
sendDispositionHeader
Write the disposition header to the output stream- Overrides:
sendDispositionHeaderin classorg.apache.commons.httpclient.methods.multipart.Part- Parameters:
out- The output stream- Throws:
IOException- If an IO problem occurs- See Also:
-
Part.sendDispositionHeader(OutputStream)
-
lengthOfData
- Specified by:
lengthOfDatain classorg.apache.commons.httpclient.methods.multipart.Part- Throws:
IOException
-
sendData
- Specified by:
sendDatain classorg.apache.commons.httpclient.methods.multipart.Part- Throws:
IOException
-