Package org.apache.axis2.util
Class WrappedDataHandler
- java.lang.Object
-
- javax.activation.DataHandler
-
- org.apache.axiom.util.activation.DataHandlerWrapper
-
- org.apache.axis2.util.WrappedDataHandler
-
- All Implemented Interfaces:
Transferable
public class WrappedDataHandler extends DataHandlerWrapper
This class acts as a wrapper for the javax.activation.DataHandler class. It is used to store away a (potentially) user-defined content-type value along with the DataHandler instance. We'll delegate all method calls except for getContentType() to the real DataHandler instance.
-
-
Constructor Summary
Constructors Constructor Description WrappedDataHandler(DataHandler _delegate, String _contentType)
Constructs a new instance of the WrappedDataHandler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getContentType()
-
Methods inherited from class org.apache.axiom.util.activation.DataHandlerWrapper
getAllCommands, getBean, getCommand, getContent, getDataSource, getInputStream, getName, getOutputStream, getPreferredCommands, getTransferData, getTransferDataFlavors, isDataFlavorSupported, setCommandMap, writeTo
-
Methods inherited from class javax.activation.DataHandler
setDataContentHandlerFactory
-
-
-
-
Constructor Detail
-
WrappedDataHandler
public WrappedDataHandler(DataHandler _delegate, String _contentType)
Constructs a new instance of the WrappedDataHandler.- Parameters:
_delegate
- the real DataHandler instance being wrapped_contentType
- the user-defined contentType associated with the DataHandler instance
-
-
Method Detail
-
getContentType
public String getContentType()
- Overrides:
getContentType
in classDataHandlerWrapper
-
-