org.alfresco.repo.transfer
Class ContentDataPart

java.lang.Object
  extended by org.apache.commons.httpclient.methods.multipart.Part
      extended by org.apache.commons.httpclient.methods.multipart.PartBase
          extended by org.alfresco.repo.transfer.ContentDataPart

public class ContentDataPart
extends org.apache.commons.httpclient.methods.multipart.PartBase


Field Summary
protected static java.lang.String FILE_NAME
          Attachment'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
ContentDataPart(ContentService contentService, java.lang.String partName, org.alfresco.service.cmr.repository.ContentData data)
          ContentDataPart
 
Method Summary
protected  long lengthOfData()
           
protected  void sendData(java.io.OutputStream out)
           
protected  void sendDispositionHeader(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
 
Methods 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 -
partName -
data -
Method Detail

sendDispositionHeader

protected void sendDispositionHeader(java.io.OutputStream out)
                              throws java.io.IOException
Write the disposition header to the output stream

Overrides:
sendDispositionHeader in class org.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:
lengthOfData in class org.apache.commons.httpclient.methods.multipart.Part
Throws:
java.io.IOException

sendData

protected void sendData(java.io.OutputStream out)
                 throws java.io.IOException
Specified by:
sendData in class org.apache.commons.httpclient.methods.multipart.Part
Throws:
java.io.IOException


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.