|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FileMarshaler
A pluggable strategy for turning a file or URL input source into a normalized message.
Method Summary | |
---|---|
java.lang.String |
getOutputName(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage message)
Creates a output file name for the given exchange when reading an inbound message. |
java.lang.String |
getTempOutputName(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage message)
creates a temporary file name for the given exchange when reading an inbound message. |
void |
readMessage(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage message,
java.io.InputStream in,
java.lang.String path)
Converts the file stream to a normalized message. |
void |
writeMessage(javax.jbi.messaging.MessageExchange exchange,
javax.jbi.messaging.NormalizedMessage message,
java.io.OutputStream out,
java.lang.String path)
Writes the inbound message to the destination stream of the given name |
Method Detail |
---|
void readMessage(javax.jbi.messaging.MessageExchange exchange, javax.jbi.messaging.NormalizedMessage message, java.io.InputStream in, java.lang.String path) throws java.io.IOException, javax.jbi.JBIException
exchange
- the message exchangemessage
- the message to populatein
- the input streampath
- the name of the file, URI or URL
java.io.IOException
javax.jbi.JBIException
java.lang.String getOutputName(javax.jbi.messaging.MessageExchange exchange, javax.jbi.messaging.NormalizedMessage message) throws javax.jbi.messaging.MessagingException
exchange
- the inbound message exchangemessage
- the inbound message
javax.jbi.messaging.MessagingException
java.lang.String getTempOutputName(javax.jbi.messaging.MessageExchange exchange, javax.jbi.messaging.NormalizedMessage message) throws javax.jbi.messaging.MessagingException
exchange
- the inbound message exchangemessage
- the inbound message
javax.jbi.messaging.MessagingException
void writeMessage(javax.jbi.messaging.MessageExchange exchange, javax.jbi.messaging.NormalizedMessage message, java.io.OutputStream out, java.lang.String path) throws java.io.IOException, javax.jbi.JBIException
exchange
- the inbound message exchangemessage
- the inbound messageout
- the output stream to write topath
-
java.io.IOException
javax.jbi.JBIException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |