Package org.apache.camel.http.common
Class CamelFileDataSource
- java.lang.Object
-
- javax.activation.FileDataSource
-
- org.apache.camel.http.common.CamelFileDataSource
-
- All Implemented Interfaces:
DataSource
public class CamelFileDataSource extends FileDataSource
-
-
Constructor Summary
Constructors Constructor Description CamelFileDataSource(File file, String fileName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContentType()StringgetName()voidsetFileTypeMap(FileTypeMap map)-
Methods inherited from class javax.activation.FileDataSource
getFile, getInputStream, getOutputStream
-
-
-
-
Method Detail
-
getContentType
public String getContentType()
- Specified by:
getContentTypein interfaceDataSource- Overrides:
getContentTypein classFileDataSource
-
setFileTypeMap
public void setFileTypeMap(FileTypeMap map)
- Overrides:
setFileTypeMapin classFileDataSource
-
getName
public String getName()
- Specified by:
getNamein interfaceDataSource- Overrides:
getNamein classFileDataSource
-
-