Spring Web Services Framework

org.springframework.ws.soap.server.endpoint.interceptor
Class PayloadRootSmartSoapEndpointInterceptor

java.lang.Object
  extended by org.springframework.ws.server.endpoint.interceptor.DelegatingSmartEndpointInterceptor
      extended by org.springframework.ws.soap.server.endpoint.interceptor.DelegatingSmartSoapEndpointInterceptor
          extended by org.springframework.ws.soap.server.endpoint.interceptor.PayloadRootSmartSoapEndpointInterceptor
All Implemented Interfaces:
EndpointInterceptor, SmartEndpointInterceptor, SmartSoapEndpointInterceptor, SoapEndpointInterceptor

public class PayloadRootSmartSoapEndpointInterceptor
extends DelegatingSmartSoapEndpointInterceptor

Implementation of the SmartSoapEndpointInterceptor interface that only intercepts requests that have a specified namespace URI or local part (or both) as payload root.

Since:
2.0
Author:
Arjen Poutsma

Constructor Summary
PayloadRootSmartSoapEndpointInterceptor(EndpointInterceptor delegate, String namespaceUri, String localPart)
           
 
Method Summary
 void setTransformerHelper(TransformerHelper transformerHelper)
           
protected  boolean shouldIntercept(WebServiceMessage request, Object endpoint)
          Indicates whether this interceptor should intercept the given request message.
 
Methods inherited from class org.springframework.ws.soap.server.endpoint.interceptor.DelegatingSmartSoapEndpointInterceptor
understands
 
Methods inherited from class org.springframework.ws.server.endpoint.interceptor.DelegatingSmartEndpointInterceptor
afterCompletion, getDelegate, handleFault, handleRequest, handleResponse, shouldIntercept
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.ws.server.SmartEndpointInterceptor
shouldIntercept
 
Methods inherited from interface org.springframework.ws.server.EndpointInterceptor
afterCompletion, handleFault, handleRequest, handleResponse
 

Constructor Detail

PayloadRootSmartSoapEndpointInterceptor

public PayloadRootSmartSoapEndpointInterceptor(EndpointInterceptor delegate,
                                               String namespaceUri,
                                               String localPart)
Method Detail

setTransformerHelper

public void setTransformerHelper(TransformerHelper transformerHelper)

shouldIntercept

protected boolean shouldIntercept(WebServiceMessage request,
                                  Object endpoint)
Description copied from class: DelegatingSmartEndpointInterceptor
Indicates whether this interceptor should intercept the given request message.

This implementation always returns true.

Overrides:
shouldIntercept in class DelegatingSmartEndpointInterceptor
Parameters:
request - the request message
endpoint - chosen endpoint to invoke
Returns:
true to indicate that this interceptor applies; false otherwise

Spring Web Services Framework

Copyright © 2005-2013 The Spring Web Services Framework. All Rights Reserved.