/** {@inheritDoc} */ protected void startInternal() throws LifecycleException { super.startInternal(); logger.info("Starting..."); this.handler.init(); logger.info("Startup completed."); } }
/** {@inheritDoc} */ protected void startInternal() throws LifecycleException { super.startInternal(); logger.info("Starting..."); this.handler.init(); logger.info("Startup completed."); } }
/** {@inheritDoc} */ protected void startInternal() throws LifecycleException { super.startInternal(); logger.info("Starting..."); this.handler.init(); logger.info("Startup completed."); } }
/** {@inheritDoc} */ public void start() throws LifecycleException { super.start(); this.handler.init(); logger.info("Startup completed."); }
/** {@inheritDoc} */ protected void startInternal() throws LifecycleException { super.startInternal(); logger.info("Starting..."); this.handler.init(); logger.info("Startup completed."); } }
protected static SingleSignOutHandler getHandler() { SingleSignOutHandler handler = GeoServerExtensions.bean(SingleSignOutHandler.class); if (!handlerInitialized) { handler.init(); handlerInitialized = true; } return handler; }
public void doFilter(final ServletRequest servletRequest, final ServletResponse servletResponse, final FilterChain filterChain) throws IOException, ServletException { final HttpServletRequest request = (HttpServletRequest) servletRequest; final HttpServletResponse response = (HttpServletResponse) servletResponse; /** * <p>Workaround for now for the fact that Spring Security will fail since it doesn't call {@link #init(javax.servlet.FilterConfig)}.</p> * <p>Ultimately we need to allow deployers to actually inject their fully-initialized {@link org.jasig.cas.client.session.SingleSignOutHandler}.</p> */ if (!this.handlerInitialized.getAndSet(true)) { HANDLER.init(); } if (HANDLER.process(request, response)) { filterChain.doFilter(servletRequest, servletResponse); } }
public void init(final FilterConfig filterConfig) throws ServletException { if (!isIgnoreInitConfiguration()) { handler.setArtifactParameterName(getPropertyFromInitParams(filterConfig, "artifactParameterName", "ticket")); handler.setLogoutParameterName(getPropertyFromInitParams(filterConfig, "logoutParameterName", "logoutRequest")); } handler.init(); }
public void init(final FilterConfig filterConfig) throws ServletException { super.init(filterConfig); if (!isIgnoreInitConfiguration()) { setArtifactParameterName(getString(ConfigurationKeys.ARTIFACT_PARAMETER_NAME)); setLogoutParameterName(getString(ConfigurationKeys.LOGOUT_PARAMETER_NAME)); setRelayStateParameterName(getString(ConfigurationKeys.RELAY_STATE_PARAMETER_NAME)); setCasServerUrlPrefix(getString(ConfigurationKeys.CAS_SERVER_URL_PREFIX)); setLogoutCallbackPath(getString(ConfigurationKeys.LOGOUT_CALLBACK_PATH)); HANDLER.setArtifactParameterOverPost(getBoolean(ConfigurationKeys.ARTIFACT_PARAMETER_OVER_POST)); HANDLER.setEagerlyCreateSessions(getBoolean(ConfigurationKeys.EAGERLY_CREATE_SESSIONS)); } HANDLER.init(); handlerInitialized.set(true); }
@Before public void setUp() throws Exception { handler = new SingleSignOutHandler(); handler.setLogoutParameterName(LOGOUT_PARAMETER_NAME); handler.setRelayStateParameterName(RELAY_STATE_PARAMETER_NAME); handler.setArtifactParameterName(ARTIFACT_PARAMETER_NAME); handler.setCasServerUrlPrefix(URL); handler.init(); request = new MockHttpServletRequest(); response = new MockHttpServletResponse(); }