I am trying to test a case where the end-state redirection leads to a url, which for my test is "down".

<end-state id="serviceEndState" view="externalRedirect:contextRelative:/login?service=${flowScope.service.id}"/>

The way it is set up, a url string apprears in url bar, and stays there for a while and after a while I get a server time out message.

What I want:
After spending a total of a few seconds, I want the spring to give up accessing that "down" url, and return control to caller.

Somewhere else in the the chain, I have codes that test another url. If one of them is down, I want to proceed and check other(s).

Can someone give some hint?

Thanks.