|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.javacrumbs.springws.test.common.MessageGenerator
public class MessageGenerator
Generates SOAP message from given resource. Does NOT do template processing, it just loads resource, wraps it into SOAP envelope if necessary and that's all.
| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
logger
|
| Constructor Summary | |
|---|---|
MessageGenerator()
|
|
| Method Summary | |
|---|---|
protected java.io.InputStream |
createInputStream(org.springframework.core.io.Resource resultResource)
Creates input stream from the resource. |
org.springframework.ws.WebServiceMessage |
generateMessage(org.springframework.ws.WebServiceMessageFactory messageFactory,
org.springframework.core.io.Resource resource)
|
XmlUtil |
getXmlUtil()
|
boolean |
isAlwaysCreateEnvelope()
|
boolean |
isNeverCreateEnvelope()
|
void |
setAlwaysCreateEnvelope(boolean alwaysCreateEnvelope)
If true SOAP envelope is always created. |
void |
setNeverCreateEnvelope(boolean neverCreateEnvelope)
If true SOAP envelope is never created. |
void |
setXmlUtil(XmlUtil xmlUtil)
|
protected boolean |
shouldCreateSoapEnvelope(org.springframework.core.io.Resource resultResource)
Returns true if the soap envelope should be created. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.apache.commons.logging.Log logger
| Constructor Detail |
|---|
public MessageGenerator()
| Method Detail |
|---|
public org.springframework.ws.WebServiceMessage generateMessage(org.springframework.ws.WebServiceMessageFactory messageFactory,
org.springframework.core.io.Resource resource)
throws java.io.IOException
java.io.IOException
protected boolean shouldCreateSoapEnvelope(org.springframework.core.io.Resource resultResource)
throws java.io.IOException
resultResource -
java.io.IOException
protected java.io.InputStream createInputStream(org.springframework.core.io.Resource resultResource)
throws java.io.IOException
resultResource -
java.io.IOExceptionpublic XmlUtil getXmlUtil()
public void setXmlUtil(XmlUtil xmlUtil)
public boolean isAlwaysCreateEnvelope()
public void setAlwaysCreateEnvelope(boolean alwaysCreateEnvelope)
alwaysCreateEnvelope - public boolean isNeverCreateEnvelope()
public void setNeverCreateEnvelope(boolean neverCreateEnvelope)
neverCreateEnvelope -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||