CWTRPC
0.9.0

de.itsvs.cwtrpc.security
Class AbstractRpcFailureHandler

java.lang.Object
  extended by de.itsvs.cwtrpc.security.AbstractRpcFailureHandler
All Implemented Interfaces:
InitializingBean, ServletContextAware
Direct Known Subclasses:
AbstractRpcAuthenticationFailureHandler, DefaultRpcLogoutFailureHandler

public abstract class AbstractRpcFailureHandler
extends Object
implements ServletContextAware, InitializingBean

Since:
0.9
Author:
Volker Schmidt

Constructor Summary
AbstractRpcFailureHandler()
           
 
Method Summary
protected  void addNoCacheResponseHeaders(HttpServletRequest request, HttpServletResponse response)
           
 void afterPropertiesSet()
           
 ServletContext getServletContext()
           
protected  void invalidateSession(HttpServletRequest request)
           
 void setServletContext(ServletContext servletContext)
           
protected  void writeExpectedException(HttpServletRequest request, HttpServletResponse response, Exception remoteException)
           
protected  void writeUnexpectedException(HttpServletRequest request, HttpServletResponse response, Throwable exception)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRpcFailureHandler

public AbstractRpcFailureHandler()
Method Detail

getServletContext

public ServletContext getServletContext()

setServletContext

public void setServletContext(ServletContext servletContext)
Specified by:
setServletContext in interface ServletContextAware

afterPropertiesSet

public void afterPropertiesSet()
Specified by:
afterPropertiesSet in interface InitializingBean

writeUnexpectedException

protected void writeUnexpectedException(HttpServletRequest request,
                                        HttpServletResponse response,
                                        Throwable exception)
                                 throws IOException
Throws:
IOException

writeExpectedException

protected void writeExpectedException(HttpServletRequest request,
                                      HttpServletResponse response,
                                      Exception remoteException)
                               throws IOException
Throws:
IOException

invalidateSession

protected void invalidateSession(HttpServletRequest request)

addNoCacheResponseHeaders

protected void addNoCacheResponseHeaders(HttpServletRequest request,
                                         HttpServletResponse response)

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.