de.itsvs.cwtrpc.security
Class AbstractRpcProcessingFilter
java.lang.Object
org.springframework.web.filter.GenericFilterBean
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GWT_RPC_REQUEST_ATTR_NAME
public static final String GWT_RPC_REQUEST_ATTR_NAME
AbstractRpcProcessingFilter
public AbstractRpcProcessingFilter()
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)
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
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.