I'm trying to put together an SSL interceptor that does essentially two things:

(1) In intercept(), check the method and scheme; if it's an "http" (non-ssl) 
GET, then redirect to the SSL version of the page.
(2) In beforeResult(), check the scheme and result: if it's an "https" (ssl) 
and "success", then redirect to the non-SSL version of the page.

The first part works flawlessly.  But when I try similar logic in 
beforeResult(), an IllegalStateException is thrown by the redirect call.  I've 
verified it's heading to the correct URL (including the scheme, port number, 
and everything), and the response also claims it has not yet been committed.  
So, I'm at a loss as to why it's throwing the exception and failing to redirect.

Any ideas?

Thanks in advance.
 

Reply via email to