|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.providers.AbstractMessageAdapter
org.mule.tck.testmodels.mule.TestConnector.DummyMessageAdapter
public class TestConnector.DummyMessageAdapter
Field Summary |
---|
Fields inherited from class org.mule.providers.AbstractMessageAdapter |
---|
attachments, DEFAULT_FAILFAST, encoding, exceptionPayload, id, logger, properties, READ, WRITE |
Constructor Summary | |
---|---|
TestConnector.DummyMessageAdapter(Object message)
|
Method Summary | |
---|---|
InputStream |
getInputStream()
Gets the input Stream associated with this event |
OutputHandler |
getOutputHandler()
The Output handler is a callback that will handle the writing to an output Stream when the Stream is available |
OutputStream |
getOutputStream()
Gets the output Stream associated with this event |
Object |
getPayload()
|
byte[] |
getPayloadAsBytes()
Converts the message implementation into a byte array representation |
String |
getPayloadAsString(String encoding)
Converts the message implementation into a String representation |
ThreadSafeAccess |
newThreadCopy()
By default we return "this". |
void |
release()
The release method is called by Mule to notify this adapter that it is no longer needed. |
void |
setOutputHandler(OutputHandler handler)
The Output handler is a callback that will handle the writing to an output Stream when the Stream is available |
void |
write(UMOEvent event)
Writes the event to the current outputStream using the OutputHandler set on the StreamAdapter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TestConnector.DummyMessageAdapter(Object message)
Method Detail |
---|
public Object getPayload()
getPayload
in interface UMOMessageAdapter
public byte[] getPayloadAsBytes() throws Exception
UMOMessageAdapter
getPayloadAsBytes
in interface UMOMessageAdapter
Exception
- Implemetation may throw an endpoint specific exceptionpublic String getPayloadAsString(String encoding) throws Exception
UMOMessageAdapter
getPayloadAsString
in interface UMOMessageAdapter
encoding
- The encoding to use when transforming the message (if
necessary). The parameter is used when converting from a byte array
Exception
- Implementation may throw an endpoint specific exceptionpublic InputStream getInputStream()
UMOStreamMessageAdapter
getInputStream
in interface UMOStreamMessageAdapter
public OutputStream getOutputStream()
UMOStreamMessageAdapter
getOutputStream
in interface UMOStreamMessageAdapter
public void write(UMOEvent event) throws IOException
UMOStreamMessageAdapter
write
in interface UMOStreamMessageAdapter
event
- the event to write to the stream
IOException
public OutputHandler getOutputHandler()
UMOStreamMessageAdapter
getOutputHandler
in interface UMOStreamMessageAdapter
public void setOutputHandler(OutputHandler handler)
UMOStreamMessageAdapter
setOutputHandler
in interface UMOStreamMessageAdapter
handler
- the handler used to write to the streampublic void release()
UMOStreamMessageAdapter
release
in interface UMOStreamMessageAdapter
public ThreadSafeAccess newThreadCopy()
AbstractMessageAdapter
newThreadCopy
in interface ThreadSafeAccess
newThreadCopy
in class AbstractMessageAdapter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |