Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.automation.client.jaxrs.impl
Class MultipartRequestEntity

java.lang.Object
  extended by org.apache.http.entity.AbstractHttpEntity
      extended by org.nuxeo.ecm.automation.client.jaxrs.impl.MultipartRequestEntity
All Implemented Interfaces:
org.apache.http.HttpEntity

public class MultipartRequestEntity
extends org.apache.http.entity.AbstractHttpEntity

Author:
Bogdan Stefanescu

Constructor Summary
MultipartRequestEntity()
           
MultipartRequestEntity(javax.mail.internet.MimeMultipart mp)
           
MultipartRequestEntity(java.lang.String subType)
           
 
Method Summary
 java.io.InputStream getContent()
           
 long getContentLength()
           
 boolean isRepeatable()
           
 boolean isStreaming()
           
 void setBlob(Blob blob)
           
 void setBlobs(java.util.List<Blob> blobs)
           
 void setRequest(java.lang.String content)
           
 void writeTo(java.io.OutputStream arg0)
           
 
Methods inherited from class org.apache.http.entity.AbstractHttpEntity
consumeContent, getContentEncoding, getContentType, isChunked, setChunked, setContentEncoding, setContentEncoding, setContentType, setContentType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultipartRequestEntity

public MultipartRequestEntity()

MultipartRequestEntity

public MultipartRequestEntity(java.lang.String subType)

MultipartRequestEntity

public MultipartRequestEntity(javax.mail.internet.MimeMultipart mp)
Method Detail

setRequest

public void setRequest(java.lang.String content)
                throws java.lang.Exception
Throws:
java.lang.Exception

setBlob

public void setBlob(Blob blob)
             throws java.lang.Exception
Throws:
java.lang.Exception

setBlobs

public void setBlobs(java.util.List<Blob> blobs)
              throws java.lang.Exception
Throws:
java.lang.Exception

isRepeatable

public boolean isRepeatable()

isStreaming

public boolean isStreaming()

getContent

public java.io.InputStream getContent()
                               throws java.io.IOException,
                                      java.lang.IllegalStateException
Throws:
java.io.IOException
java.lang.IllegalStateException

writeTo

public void writeTo(java.io.OutputStream arg0)
             throws java.io.IOException
Throws:
java.io.IOException

getContentLength

public long getContentLength()

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.