|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.javacrumbs.smock.common.SmockCommon
public abstract class SmockCommon
Adds extra features to WebServiceMock.
| Constructor Summary | |
|---|---|
SmockCommon()
|
|
| Method Summary | |
|---|---|
static org.springframework.ws.WebServiceMessageFactory |
createMessageFactory()
Creates SAAJ based message factory for SOAP 1.1. |
static org.springframework.ws.WebServiceMessageFactory |
createMessageFactory(org.springframework.context.ApplicationContext applicationContext)
Creates a WebServiceMessageFactory using MockStrategiesHelper. |
static org.springframework.ws.WebServiceMessageFactory |
createMessageFactory(org.springframework.ws.soap.SoapVersion soapVersion)
Creates SAAJ based message factory. |
protected static Source |
createSource(org.springframework.core.io.Resource resource)
Creates Source from Resource. |
static Source |
fromResource(String location)
Loads resource using resourceLoader set by setResourceLoader(ResourceLoader). |
static org.springframework.core.io.ResourceLoader |
getResourceLoader()
|
static TemplateProcessor |
getTemplateProcessor()
|
protected static Document |
loadDocument(Source message)
Loads Document from Source |
static org.springframework.core.io.Resource |
resource(String location)
Loads resource using resourceLoader set by setResourceLoader(ResourceLoader). |
static void |
setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
Sets ResourceLoader to be used by Smock. |
static void |
setTemplateProcessor(TemplateProcessor templateProcessor)
Sets TemplateProcessor used by Smock. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SmockCommon()
| Method Detail |
|---|
protected static Document loadDocument(Source message)
Document from Source
message -
protected static Source createSource(org.springframework.core.io.Resource resource)
Source from Resource.
resource -
public static Source fromResource(String location)
setResourceLoader(ResourceLoader).
location - Location of the resourcepublic static org.springframework.core.io.Resource resource(String location)
setResourceLoader(ResourceLoader).
location - Location of the resourcepublic static TemplateProcessor getTemplateProcessor()
public static void setTemplateProcessor(TemplateProcessor templateProcessor)
TemplateProcessor used by Smock.
templateProcessor - public static org.springframework.core.io.ResourceLoader getResourceLoader()
public static void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
ResourceLoader to be used by Smock.
resourceLoader - public static org.springframework.ws.WebServiceMessageFactory createMessageFactory(org.springframework.context.ApplicationContext applicationContext)
WebServiceMessageFactory using MockStrategiesHelper.
applicationContext -
public static org.springframework.ws.WebServiceMessageFactory createMessageFactory()
public static org.springframework.ws.WebServiceMessageFactory createMessageFactory(org.springframework.ws.soap.SoapVersion soapVersion)
soapVersion -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||