|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.synapse.startup.tasks.MessageInjector
public class MessageInjector
Injects a Message in to the Synapse environment
Field Summary | |
---|---|
static String |
GET_FORMAT
|
static String |
POX_FORMAT
|
static String |
SOAP11_FORMAT
|
static String |
SOAP12_FORMAT
|
Constructor Summary | |
---|---|
MessageInjector()
|
Method Summary | |
---|---|
void |
destroy()
Destroys the Injector |
void |
execute()
This will be invoked by the schedular to inject the message in to the SynapseEnvironment |
void |
init(SynapseEnvironment se)
Initializes the Injector |
void |
setFormat(String format)
Sets the format of the message |
void |
setMessage(OMElement elem)
Set the message to be injected |
void |
setSoapAction(String soapAction)
Sets the SOAPAction and valid only when the format is given as soap11 |
void |
setTo(String url)
Set the to address of the message to be injected |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SOAP11_FORMAT
public static final String SOAP12_FORMAT
public static final String POX_FORMAT
public static final String GET_FORMAT
Constructor Detail |
---|
public MessageInjector()
Method Detail |
---|
public void init(SynapseEnvironment se)
init
in interface ManagedLifecycle
se
- SynapseEnvironment of synapsepublic void setMessage(OMElement elem)
elem
- OMElement describing the messagepublic void setTo(String url)
url
- String containing the to addresspublic void setFormat(String format)
format
- could be one of either "soap11" | "soap12" | "pox" | "get"public void setSoapAction(String soapAction)
soapAction
- SOAPAction header value to be setpublic void execute()
execute
in interface Task
public void destroy()
destroy
in interface ManagedLifecycle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |