org.apache.cxf.aegis.type.mtom
Class DataSourceType
java.lang.Object
org.apache.cxf.aegis.type.Type
org.apache.cxf.aegis.type.mtom.AbstractXOPType
org.apache.cxf.aegis.type.mtom.DataSourceType
public class DataSourceType
- extends AbstractXOPType
Fields inherited from class org.apache.cxf.aegis.type.Type |
typeClass |
Constructor Summary |
DataSourceType(boolean useXmimeBinaryType,
java.lang.String expectedContentTypes)
|
Method Summary |
protected Attachment |
createAttachment(java.lang.Object object,
java.lang.String id)
|
protected byte[] |
getBytes(java.lang.Object object)
if MtoM is not enabled, we need bytes to turn into base64. |
protected java.lang.String |
getContentType(java.lang.Object object,
Context context)
|
protected java.lang.Object |
readAttachment(Attachment att,
Context context)
|
protected java.lang.Object |
wrapBytes(byte[] bareBytes,
java.lang.String contentType)
If one of these types arrives unoptimized, we need to convert it to the
desired return type. |
Methods inherited from class org.apache.cxf.aegis.type.Type |
equals, getDependencies, getMaxOccurs, getMinOccurs, getSchemaType, getTypeClass, getTypeMapping, hashCode, hasMaxOccurs, hasMinOccurs, isAbstract, isComplex, isNillable, isWriteOuter, setAbstract, setNillable, setSchemaType, setTypeClass, setTypeMapping, setWriteOuter, toString, usesUtilityTypes, writeSchema |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
DataSourceType
public DataSourceType(boolean useXmimeBinaryType,
java.lang.String expectedContentTypes)
readAttachment
protected java.lang.Object readAttachment(Attachment att,
Context context)
- Specified by:
readAttachment
in class AbstractXOPType
createAttachment
protected Attachment createAttachment(java.lang.Object object,
java.lang.String id)
- Specified by:
createAttachment
in class AbstractXOPType
getContentType
protected java.lang.String getContentType(java.lang.Object object,
Context context)
- Specified by:
getContentType
in class AbstractXOPType
wrapBytes
protected java.lang.Object wrapBytes(byte[] bareBytes,
java.lang.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(java.lang.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