Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-254

Add an EndpointAdapter that adapts to a MethodEndpoint for a methos with one Source param containing the payload

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 2.0 GA
    • Component/s: Core
    • Labels:
      None

      Description

      Make an adaptor that makes it possible to use the PayloadRoot annotation on a method taking a single parameter javax.xml.Source. The parameter should be a java.xml.Source reference to the payload of the message.
      The Source param is very convinient when implementing XPath in the endpoint without using the XPathParam annotation.

      @PayloadRoot(localPart = TRACKING_MESSAGE_INFO, namespace = NAMESPACE_XQ)
      public Source invokeTrackingMessageInfo(Source request) throws Exception

      {...}

      This issue is solved by adding the class SourceParamMethodEndpointAdapter that adapts to a MethodEndpoint and supports all methods taking exactly one Source parameter.

      1. MySourceParamEndpoint.java
        1 kB
        Tom Lambrechts
      2. SourceParamMethodEndpointAdapter.java
        3 kB
        Tom Lambrechts

        Issue Links

          Activity

          tola2000 Tom Lambrechts created issue -
          tola2000 Tom Lambrechts made changes -
          Field Original Value New Value
          Attachment SourceParamMethodEndpointAdapter.java [ 13196 ]
          tola2000 Tom Lambrechts made changes -
          Attachment MySourceParamEndpoint.java [ 13197 ]
          arjen.poutsma Arjen Poutsma made changes -
          Fix Version/s 1.6 [ 10981 ]
          arjen.poutsma Arjen Poutsma made changes -
          Link This issue is related to SWS-351 [ SWS-351 ]
          arjen.poutsma Arjen Poutsma made changes -
          Resolution Complete [ 8 ]
          Status Open [ 1 ] Resolved [ 5 ]
          arjen.poutsma Arjen Poutsma made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              arjen.poutsma Arjen Poutsma
              Reporter:
              tola2000 Tom Lambrechts
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified