public abstract class SmockCommon extends Object
WebServiceMock.| Constructor and Description |
|---|
SmockCommon() |
| Modifier and Type | Method and Description |
|---|---|
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)
|
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. |
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 - Copyright © 2017. All Rights Reserved.