CWTRPC
0.9.0

de.itsvs.cwtrpc.security
Class AbstractRpcProcessingFilter

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

public abstract class AbstractRpcProcessingFilter
extends GenericFilterBean
implements BeanFactoryAware

Since:
0.9
Author:
Volker Schmidt

Field Summary
static String GWT_RPC_REQUEST_ATTR_NAME
           
 
Fields inherited from class org.springframework.web.filter.GenericFilterBean
logger
 
Constructor Summary
AbstractRpcProcessingFilter()
           
 
Method Summary
 void afterPropertiesSet()
           
 void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
           
protected  boolean filterProcesses(HttpServletRequest request)
           
 BeanFactory getBeanFactory()
           
 String getFilterProcessesUrl()
           
 String getMethodName()
           
static RPCRequest getRpcRequest(HttpServletRequest request)
           
 ExtendedSerializationPolicyProvider getSerializationPolicyProvider()
           
 Class<?> getServiceInterface()
           
protected  void invalidateSession(HttpServletRequest request)
           
 boolean isPostOnly()
           
protected  boolean matchesFilterProcessesUrl(HttpServletRequest request)
           
protected  boolean matchesMethodName(HttpServletRequest request)
           
protected abstract  void process(HttpServletRequest request, HttpServletResponse response, FilterChain chain)
           
protected  String readContent(HttpServletRequest request)
           
protected  RPCRequest readRpcRequest(HttpServletRequest request)
           
 void setBeanFactory(BeanFactory beanFactory)
           
 void setFilterProcessesUrl(String filterProcessesUrl)
           
 void setMethodName(String methodName)
           
 void setPostOnly(boolean postOnly)
           
 void setSerializationPolicyProvider(ExtendedSerializationPolicyProvider serializationPolicyProvider)
           
 void setServiceInterface(Class<?> serviceInterface)
           
 
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
 

Field Detail

GWT_RPC_REQUEST_ATTR_NAME

public static final String GWT_RPC_REQUEST_ATTR_NAME
Constructor Detail

AbstractRpcProcessingFilter

public AbstractRpcProcessingFilter()
Method Detail

getBeanFactory

public BeanFactory getBeanFactory()

setBeanFactory

public void setBeanFactory(BeanFactory beanFactory)
Specified by:
setBeanFactory in interface BeanFactoryAware

getFilterProcessesUrl

public String getFilterProcessesUrl()

setFilterProcessesUrl

public void setFilterProcessesUrl(String filterProcessesUrl)

isPostOnly

public boolean isPostOnly()

setPostOnly

public void setPostOnly(boolean postOnly)

getServiceInterface

public Class<?> getServiceInterface()

setServiceInterface

public void setServiceInterface(Class<?> serviceInterface)

getMethodName

public String getMethodName()

setMethodName

public void setMethodName(String methodName)

getSerializationPolicyProvider

public ExtendedSerializationPolicyProvider getSerializationPolicyProvider()

setSerializationPolicyProvider

public void setSerializationPolicyProvider(ExtendedSerializationPolicyProvider serializationPolicyProvider)

afterPropertiesSet

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

doFilter

public void doFilter(ServletRequest request,
                     ServletResponse response,
                     FilterChain chain)
              throws IOException,
                     ServletException
Specified by:
doFilter in interface Filter
Throws:
IOException
ServletException

filterProcesses

protected boolean filterProcesses(HttpServletRequest request)
                           throws IOException,
                                  ServletException
Throws:
IOException
ServletException

matchesFilterProcessesUrl

protected boolean matchesFilterProcessesUrl(HttpServletRequest request)
                                     throws IOException,
                                            ServletException
Throws:
IOException
ServletException

matchesMethodName

protected boolean matchesMethodName(HttpServletRequest request)
                             throws IOException,
                                    ServletException
Throws:
IOException
ServletException

invalidateSession

protected void invalidateSession(HttpServletRequest request)
                          throws IOException,
                                 ServletException
Throws:
IOException
ServletException

process

protected abstract void process(HttpServletRequest request,
                                HttpServletResponse response,
                                FilterChain chain)
                         throws IOException,
                                ServletException
Throws:
IOException
ServletException

readRpcRequest

protected RPCRequest readRpcRequest(HttpServletRequest request)
                             throws IOException,
                                    ServletException
Throws:
IOException
ServletException

readContent

protected String readContent(HttpServletRequest request)
                      throws ServletException,
                             IOException,
                             SecurityException
Throws:
ServletException
IOException
SecurityException

getRpcRequest

public static RPCRequest getRpcRequest(HttpServletRequest request)

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.