CWTRPC
0.9.0

de.itsvs.cwtrpc.security
Class DefaultRpcHttpSessionStrategy

java.lang.Object
  extended by de.itsvs.cwtrpc.security.DefaultRpcHttpSessionStrategy
All Implemented Interfaces:
RpcHttpSessionStrategy

public class DefaultRpcHttpSessionStrategy
extends Object
implements RpcHttpSessionStrategy

Since:
0.9
Author:
Volker Schmidt

Nested Class Summary
protected static class DefaultRpcHttpSessionStrategy.RpcSessionInvalidationPolicyImpl
           
 
Constructor Summary
DefaultRpcHttpSessionStrategy()
           
 
Method Summary
protected  void clearSession(HttpServletRequest request, HttpServletResponse response, HttpSession session)
           
protected  RpcSessionInvalidationPolicy createRpcSessionInvalidationPolicy(HttpServletRequest request, HttpServletResponse response, boolean createdSession)
           
 boolean isClearSession()
           
 boolean isCreateSession()
           
 boolean isInvalidateSessionOnExpectedException()
           
 RpcSessionInvalidationPolicy prepareSession(HttpServletRequest request, HttpServletResponse response)
           
protected  RpcSessionInvalidationPolicy prepareUnpreparedSession(HttpServletRequest request, HttpServletResponse response)
           
 void setClearSession(boolean clearSession)
           
 void setCreateSession(boolean createSession)
           
 void setInvalidateSessionOnExpectedException(boolean invalidateSessionOnExpectedException)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRpcHttpSessionStrategy

public DefaultRpcHttpSessionStrategy()
Method Detail

isCreateSession

public boolean isCreateSession()

setCreateSession

public void setCreateSession(boolean createSession)

isClearSession

public boolean isClearSession()

setClearSession

public void setClearSession(boolean clearSession)

isInvalidateSessionOnExpectedException

public boolean isInvalidateSessionOnExpectedException()

setInvalidateSessionOnExpectedException

public void setInvalidateSessionOnExpectedException(boolean invalidateSessionOnExpectedException)

prepareSession

public RpcSessionInvalidationPolicy prepareSession(HttpServletRequest request,
                                                   HttpServletResponse response)
                                            throws IOException,
                                                   ServletException
Specified by:
prepareSession in interface RpcHttpSessionStrategy
Throws:
IOException
ServletException

prepareUnpreparedSession

protected RpcSessionInvalidationPolicy prepareUnpreparedSession(HttpServletRequest request,
                                                                HttpServletResponse response)
                                                         throws IOException,
                                                                ServletException
Throws:
IOException
ServletException

clearSession

protected void clearSession(HttpServletRequest request,
                            HttpServletResponse response,
                            HttpSession session)
                     throws IOException,
                            ServletException
Throws:
IOException
ServletException

createRpcSessionInvalidationPolicy

protected RpcSessionInvalidationPolicy createRpcSessionInvalidationPolicy(HttpServletRequest request,
                                                                          HttpServletResponse response,
                                                                          boolean createdSession)
                                                                   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.