public class HttpPartDataSource extends Object implements DataSource
| Modifier and Type | Method and Description |
|---|---|
static Map<String,DataHandler> |
createDataHandlerFrom(Collection<HttpPart> parts) |
static Collection<HttpPartDataSource> |
createFrom(Collection<HttpPart> parts) |
static Collection<HttpPart> |
createFrom(Map<String,DataHandler> parts) |
byte[] |
getContent() |
String |
getContentType() |
String |
getHeader(String headerName) |
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
HttpPart |
getPart() |
public byte[] getContent()
throws IOException
IOExceptionpublic InputStream getInputStream() throws IOException
getInputStream in interface DataSourceIOExceptionpublic OutputStream getOutputStream() throws IOException
getOutputStream in interface DataSourceIOExceptionpublic String getContentType()
getContentType in interface DataSourcepublic String getName()
getName in interface DataSourcepublic static Collection<HttpPartDataSource> createFrom(Collection<HttpPart> parts)
public static Map<String,DataHandler> createDataHandlerFrom(Collection<HttpPart> parts)
public static Collection<HttpPart> createFrom(Map<String,DataHandler> parts) throws IOException
IOExceptionpublic HttpPart getPart()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.