net.javacrumbs.springws.test.helper
Class InMemoryWebServiceMessageSender
java.lang.Object
net.javacrumbs.springws.test.helper.InMemoryWebServiceMessageSender
- All Implemented Interfaces:
- org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.ws.transport.WebServiceMessageSender
public class InMemoryWebServiceMessageSender
- extends java.lang.Object
- implements org.springframework.ws.transport.WebServiceMessageSender, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
Sends messages locally in memory. Cretes InMemoryWebServiceConnection that sends the message directly to WebServiceMessageReceiver. Used for server side test.
- Author:
- Lukas Krecan
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InMemoryWebServiceMessageSender
public InMemoryWebServiceMessageSender()
createConnection
public net.javacrumbs.springws.test.helper.InMemoryWebServiceConnection createConnection(java.net.URI uri)
throws java.io.IOException
- Specified by:
createConnection in interface org.springframework.ws.transport.WebServiceMessageSender
- Throws:
java.io.IOException
supports
public boolean supports(java.net.URI uri)
- Specified by:
supports in interface org.springframework.ws.transport.WebServiceMessageSender
getMessageFactory
public org.springframework.ws.WebServiceMessageFactory getMessageFactory()
getWebServiceMessageReceiver
public org.springframework.ws.transport.WebServiceMessageReceiver getWebServiceMessageReceiver()
createWebServiceMessageReceiver
protected org.springframework.ws.transport.WebServiceMessageReceiver createWebServiceMessageReceiver()
- Creates
WebServiceMessageReceiver. If it's not in the applicationContext, uses DefaultWsTestHelper to create it.
- Returns:
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
initializeMessageReceiver
protected void initializeMessageReceiver()
initializeMessageFactory
protected void initializeMessageFactory()
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext()
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
- Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Copyright © 2011. All Rights Reserved.