org.apache.james.queue.jms
Class MimeMessageObjectMessageSource
java.lang.Object
org.apache.james.core.MimeMessageSource
org.apache.james.queue.jms.MimeMessageObjectMessageSource
- All Implemented Interfaces:
- Disposable
public class MimeMessageObjectMessageSource
- extends MimeMessageSource
- implements Disposable
MimeMessageSource implementation which reads the data from the
payload of an ObjectMessage. Its important that the payload is a byte
array otherwise it will throw an ClassCastException
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MimeMessageObjectMessageSource
public MimeMessageObjectMessageSource(javax.jms.ObjectMessage message)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
getMessageSize
public long getMessageSize()
throws IOException
- Overrides:
getMessageSize in class MimeMessageSource
- Throws:
IOException
getInputStream
public InputStream getInputStream()
throws IOException
- Specified by:
getInputStream in class MimeMessageSource
- Throws:
IOException
getSourceId
public String getSourceId()
- Specified by:
getSourceId in class MimeMessageSource
dispose
public void dispose()
- Specified by:
dispose in interface Disposable
Copyright © 2002-2011 The Apache Software Foundation. All Rights Reserved.