|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.integration.adapter.file.FileTarget
public class FileTarget
A message target for writing files. The actual file writing occurs in the
message creator (TextFileMessageCreator
or ByteArrayFileMessageCreator
).
Field Summary | |
---|---|
private MessageMapper<?,java.io.File> |
messageMapper
|
Constructor Summary | |
---|---|
FileTarget(MessageMapper<?,java.io.File> messageMapper)
|
Method Summary | |
---|---|
boolean |
send(Message message)
Send a Message to this target. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private MessageMapper<?,java.io.File> messageMapper
Constructor Detail |
---|
public FileTarget(MessageMapper<?,java.io.File> messageMapper)
Method Detail |
---|
public boolean send(Message message)
MessageTarget
Message
to this target. May throw a RuntimeException for non-recoverable
errors. Otherwise, if the Message cannot be sent for a non-fatal reason such as timeout,
then this method will return 'false', and if the Message is sent successfully, it will
return 'true'.
send
in interface MessageTarget
message
- the Message to send
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |