Announcement Announcement Module
No announcement yet.
Several PayloadRootAnnotationMethodEndpointMapping definitions Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Several PayloadRootAnnotationMethodEndpointMapping definitions

    For another ws endpoint, I need to use a different UserDetailImpl (one without an isEnabled() method) to be able to transfer the user account status to the ws client in this endpoint.

    Therefore, I defined an own SpringPlainTextPasswordValidationCallbackHandler definition in servlet.xml file to use an own authenticationManager for this service and also an own PayloadRootAnnotationMethodEndpointMapping definition to use this SpringPlainTextPasswordValidationCallbackHandler (distinguished from the PayloadRootAnnotationMethodEndpointMapping for other endpoints by order)

    But it seems the PayloadRootAnnotationMethodEndpointMapping definitions could not be defined this way, as always the first mapping is used.

    How could I use several PayloadRootAnnotationMethodEndpointMapping defs or better to say, how can I use several SpringPlainTextPasswordValidationCallbackHandlers?

    One possible way I found is to subclass PayloadRootAnnotationMethodEndpointMapping to use a different annotation. Is there a nicer solution available, also?

    Last edited by robertoschwald; Dec 11th, 2008, 11:26 PM.

  • #2
    Subclassing PayloadRootAnnotationMethodEndpointMapping with own Annotation Class works, as I tested today.

    It would be much more flexible if there is a setter for the Annotation class in PayloadRootAnnotationMethodEndpointMapping