org.apache.cxf.aegis.type.mtom
Class DataSourceType
java.lang.Object
org.apache.cxf.aegis.type.AegisType
org.apache.cxf.aegis.type.mtom.AbstractXOPType
org.apache.cxf.aegis.type.mtom.DataSourceType
public class DataSourceType
- extends AbstractXOPType
Binding for DataSource
.
Methods inherited from class org.apache.cxf.aegis.type.AegisType |
equals, getDependencies, getMaxOccurs, getMinOccurs, getSchemaType, getType, getTypeClass, getTypeMapping, hashCode, hasMaxOccurs, hasMinOccurs, isAbstract, isComplex, isFlatArray, isNillable, isWriteOuter, setAbstract, setFlatArray, setNillable, setSchemaType, setTypeClass, setTypeMapping, setWriteOuter, toString, usesUtilityTypes, writeSchema |
DataSourceType
public DataSourceType(boolean useXmimeBinaryType,
String expectedContentTypes)
readAttachment
protected Object readAttachment(Attachment att,
Context context)
- Specified by:
readAttachment
in class AbstractXOPType
createAttachment
protected Attachment createAttachment(Object object,
String id)
- Specified by:
createAttachment
in class AbstractXOPType
getContentType
protected String getContentType(Object object,
Context context)
- Specified by:
getContentType
in class AbstractXOPType
wrapBytes
protected Object wrapBytes(byte[] bareBytes,
String contentType)
- Description copied from class:
AbstractXOPType
- If one of these types arrives unoptimized, we need to convert it to the
desired return type.
- Specified by:
wrapBytes
in class AbstractXOPType
- Parameters:
bareBytes
- the bytes pulled out of the base64.contentType
- when we support xmime:contentType, this will be passed along.
- Returns:
getBytes
protected byte[] getBytes(Object object)
- Description copied from class:
AbstractXOPType
- if MtoM is not enabled, we need bytes to turn into base64.
- Specified by:
getBytes
in class AbstractXOPType
- Returns:
Apache CXF