CWTRPC
0.9.0

de.itsvs.cwtrpc.security
Class RpcLogoutFilter

java.lang.Object
  extended by org.springframework.web.filter.GenericFilterBean
      extended by de.itsvs.cwtrpc.security.AbstractRpcProcessingFilter
          extended by de.itsvs.cwtrpc.security.RpcLogoutFilter
All Implemented Interfaces:
Filter, BeanFactoryAware, BeanNameAware, DisposableBean, InitializingBean, ServletContextAware

public class RpcLogoutFilter
extends AbstractRpcProcessingFilter

Since:
0.9
Author:
Volker Schmidt

Nested Class Summary
protected static class RpcLogoutFilter.RpcSessionInvalidationPolicyImpl
           
 
Field Summary
 
Fields inherited from class de.itsvs.cwtrpc.security.AbstractRpcProcessingFilter
GWT_RPC_REQUEST_ATTR_NAME
 
Fields inherited from class org.springframework.web.filter.GenericFilterBean
logger
 
Constructor Summary
RpcLogoutFilter()
           
 
Method Summary
 void afterPropertiesSet()
           
protected  RpcSessionInvalidationPolicy createRpcSessionInvalidationPolicy(HttpServletRequest request, HttpServletResponse response, Authentication authentication)
           
 LogoutFailureHandler getLogoutFailureHandler()
           
 List<LogoutHandler> getLogoutHandlers()
           
 LogoutSuccessHandler getLogoutSuccessHandler()
           
 boolean isInvalidateSession()
           
 boolean isInvalidateSessionOnExpectedException()
           
 boolean isInvalidateSessionOnUnexpectedException()
           
protected  void process(HttpServletRequest request, HttpServletResponse response, FilterChain chain)
           
 void setInvalidateSession(boolean invalidateSession)
           
 void setInvalidateSessionOnExpectedException(boolean invalidateSessionOnExpectedException)
           
 void setInvalidateSessionOnUnexpectedException(boolean invalidateSessionOnUnexpectedException)
           
 void setLogoutFailureHandler(LogoutFailureHandler logoutFailureHandler)
           
 void setLogoutHandlers(List<LogoutHandler> logoutHandlers)
           
 void setLogoutSuccessHandler(LogoutSuccessHandler logoutSuccessHandler)
           
 
Methods inherited from class de.itsvs.cwtrpc.security.AbstractRpcProcessingFilter
doFilter, filterProcesses, getBeanFactory, getFilterProcessesUrl, getMethodName, getRpcRequest, getSerializationPolicyProvider, getServiceInterface, invalidateSession, isPostOnly, matchesFilterProcessesUrl, matchesMethodName, readContent, readRpcRequest, setBeanFactory, setFilterProcessesUrl, setMethodName, setPostOnly, setSerializationPolicyProvider, setServiceInterface
 
Methods inherited from class org.springframework.web.filter.GenericFilterBean
addRequiredProperty, destroy, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setServletContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RpcLogoutFilter

public RpcLogoutFilter()
Method Detail

getLogoutHandlers

public List<LogoutHandler> getLogoutHandlers()

setLogoutHandlers

public void setLogoutHandlers(List<LogoutHandler> logoutHandlers)

getLogoutSuccessHandler

public LogoutSuccessHandler getLogoutSuccessHandler()

setLogoutSuccessHandler

public void setLogoutSuccessHandler(LogoutSuccessHandler logoutSuccessHandler)

getLogoutFailureHandler

public LogoutFailureHandler getLogoutFailureHandler()

setLogoutFailureHandler

public void setLogoutFailureHandler(LogoutFailureHandler logoutFailureHandler)

isInvalidateSession

public boolean isInvalidateSession()

setInvalidateSession

public void setInvalidateSession(boolean invalidateSession)

isInvalidateSessionOnExpectedException

public boolean isInvalidateSessionOnExpectedException()

setInvalidateSessionOnExpectedException

public void setInvalidateSessionOnExpectedException(boolean invalidateSessionOnExpectedException)

isInvalidateSessionOnUnexpectedException

public boolean isInvalidateSessionOnUnexpectedException()

setInvalidateSessionOnUnexpectedException

public void setInvalidateSessionOnUnexpectedException(boolean invalidateSessionOnUnexpectedException)

afterPropertiesSet

public void afterPropertiesSet()
                        throws ServletException
Specified by:
afterPropertiesSet in interface InitializingBean
Overrides:
afterPropertiesSet in class AbstractRpcProcessingFilter
Throws:
ServletException

process

protected void process(HttpServletRequest request,
                       HttpServletResponse response,
                       FilterChain chain)
                throws IOException,
                       ServletException
Specified by:
process in class AbstractRpcProcessingFilter
Throws:
IOException
ServletException

createRpcSessionInvalidationPolicy

protected RpcSessionInvalidationPolicy createRpcSessionInvalidationPolicy(HttpServletRequest request,
                                                                          HttpServletResponse response,
                                                                          Authentication authentication)
                                                                   throws IOException,
                                                                          ServletException
Throws:
IOException
ServletException

Controlled
Web Toolkit RPC

Copyright 2011 IT Services VS GmbH
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.