Results 1 to 3 of 3

Thread: [Q] intercept-url Configuration

  1. #1
    Join Date
    Mar 2008
    Posts
    16

    Default [Q] intercept-url Configuration

    Maybe this is not the correct way to do it, but I need to utilize a different defaultTargetUrl that is dependent upon the url that the user requested.

    I would like to define multiple AuthenticationProcessingFilters and then reference the correct one in the filters parameter of the intercept-url. However, it is not clear to me if I can do this or how to reference them. Perhaps by bean name?

    Thanks in Advance,
    Ken

  2. #2
    Join Date
    Jun 2007
    Location
    Minsk, Belarus
    Posts
    217

    Default

    You can extend AuthenticationProcessingFilter and override determineTargetUrl(HttpServletRequest request) method.
    Then configure extended filter:

    Code:
    <beans:bean id="myFilter" class="com.mycompany.MySpecialAuthenticationFilter">
    <custom-filter position="AUTHENTICATION_PROCESSING_FILTER"/>
    </beans:bean>

  3. #3
    Join Date
    Mar 2008
    Posts
    16

    Default [Q] intercept-url Configuration

    I thought about doing it that way, but it really adds to the complexity because I want the implementation to be tied to a url pattern and that pattern is already configured in the intercept-url.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •