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 final String
    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

    Constructors
    Constructor
    Description
    ContentDataPart(ContentService contentService, String partName, ContentData data)
    ContentDataPart
  • Method Summary

    Modifier and Type
    Method
    Description
    protected long
     
    protected void
     
    protected void
    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 Details

  • Constructor Details

    • ContentDataPart

      public ContentDataPart(ContentService contentService, String partName, ContentData data)
      ContentDataPart
      Parameters:
      contentService - content service
      partName - String
      data - data
  • Method Details

    • sendDispositionHeader

      protected void sendDispositionHeader(OutputStream out) throws 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:
      IOException - If an IO problem occurs
      See Also:
      • Part.sendDispositionHeader(OutputStream)
    • lengthOfData

      protected long lengthOfData() throws IOException
      Specified by:
      lengthOfData in class org.apache.commons.httpclient.methods.multipart.Part
      Throws:
      IOException
    • sendData

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