|
From: <hei...@jb...> - 2006-06-29 12:05:12
|
in order to get rid of the XB dependencies towards JAF & Mail i suggets we factor out the DataHandler from the XOP interfaces and use an equivalent class that's suffiecient to our needs:
I.e:
| public interface XOPMarshaller
| {
| boolean isXOPPackage();
| String addMtomAttachment(XOPObject obj, String elementNamespace, String elementName);
| String addMtomAttachment(byte[] data, String elementNamespace, String elementName);
| }
|
| public class XOPObject {
|
| private Object content;
| private String contentType;
|
| public XOPObject(Object content) {
| this.content = content;
| }
|
| public Object getContent() {
| return content;
| }
|
| public String getContentType() {
| return contentType;
| }
|
| public void setContentType(String contentType) {
| this.contentType = contentType;
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954339#3954339
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954339
|