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
IOException
public InputStream getInputStream() throws IOException
getInputStream
in interface DataSource
IOException
public OutputStream getOutputStream() throws IOException
getOutputStream
in interface DataSource
IOException
public String getContentType()
getContentType
in interface DataSource
public String getName()
getName
in interface DataSource
public 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
IOException
public HttpPart getPart()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.