net.javacrumbs.springws.test
Class AbstractMockWebServiceMessageSender

java.lang.Object
  extended by net.javacrumbs.springws.test.AbstractMockWebServiceMessageSender
All Implemented Interfaces:
org.springframework.ws.transport.WebServiceMessageSender
Direct Known Subclasses:
MockWebServiceMessageSender

public abstract class AbstractMockWebServiceMessageSender
extends java.lang.Object
implements org.springframework.ws.transport.WebServiceMessageSender

Web message sender that instead of sending request using HTTP sends data to MockWebServiceConnection.

Author:
Lukas Krecan

Constructor Summary
AbstractMockWebServiceMessageSender()
           
 
Method Summary
 org.springframework.ws.transport.WebServiceConnection createConnection(java.net.URI uri)
          Creates MockWebServiceConnection.
 java.util.List<org.springframework.ws.server.EndpointInterceptor> getInterceptors()
           
protected abstract  java.util.List<RequestProcessor> getRequestProcessors()
          Returns list of request processors.
 void setInterceptors(java.util.List<? extends org.springframework.ws.server.EndpointInterceptor> interceptors)
          Sets list of interceptors to be applied on request.
 boolean supports(java.net.URI uri)
          Supports all URIs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMockWebServiceMessageSender

public AbstractMockWebServiceMessageSender()
Method Detail

createConnection

public org.springframework.ws.transport.WebServiceConnection createConnection(java.net.URI uri)
                                                                       throws java.io.IOException
Creates MockWebServiceConnection.

Specified by:
createConnection in interface org.springframework.ws.transport.WebServiceMessageSender
Throws:
java.io.IOException

getRequestProcessors

protected abstract java.util.List<RequestProcessor> getRequestProcessors()
Returns list of request processors. To be overriden.

Returns:

supports

public boolean supports(java.net.URI uri)
Supports all URIs.

Specified by:
supports in interface org.springframework.ws.transport.WebServiceMessageSender

getInterceptors

public java.util.List<org.springframework.ws.server.EndpointInterceptor> getInterceptors()

setInterceptors

public void setInterceptors(java.util.List<? extends org.springframework.ws.server.EndpointInterceptor> interceptors)
Sets list of interceptors to be applied on request.

Parameters:
interceptors -


Copyright © 2011. All Rights Reserved.