*/\r
package com.gitblit.wicket;\r
\r
-import java.io.IOException;\r
-\r
-import javax.servlet.http.HttpServletResponse;\r
-\r
import org.apache.wicket.Component;\r
import org.apache.wicket.RestartResponseException;\r
import org.apache.wicket.authorization.IUnauthorizedComponentInstantiationListener;\r
import org.apache.wicket.authorization.strategies.page.AbstractPageAuthorizationStrategy;\r
-import org.apache.wicket.protocol.http.WebResponse;\r
-import org.apache.wicket.protocol.http.servlet.AbortWithWebErrorCodeException;\r
\r
import com.gitblit.GitBlit;\r
import com.gitblit.Keys;\r
if (component instanceof BasePage) {\r
throw new RestartResponseException(RepositoriesPage.class);\r
}\r
- /*** DISABLED CODE ***\r
- if (component instanceof BasePage) {\r
- HttpServletResponse response = ((WebResponse)component.getResponse()).getHttpServletResponse();\r
- response.setHeader("WWW-Authenticate", "Basic realm=test");\r
- throw new AbortWithWebErrorCodeException(HttpServletResponse.SC_UNAUTHORIZED);\r
- \r
- } \r
- *** END DISABLED ***/\r
}\r
}\r