net.sf.jguard.jee.authentication.http
Class HttpServletScopes

java.lang.Object
  extended by net.sf.jguard.core.technology.AbstractScopes<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse>
      extended by net.sf.jguard.jee.authentication.http.HttpServletScopes
All Implemented Interfaces:
Scopes, StatefulScopes

public class HttpServletScopes
extends AbstractScopes<javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse>
implements StatefulScopes

Author:
Charles Gay

Field Summary
 
Fields inherited from class net.sf.jguard.core.technology.AbstractScopes
request
 
Constructor Summary
HttpServletScopes(Request<javax.servlet.http.HttpServletRequest> request, Response<javax.servlet.http.HttpServletResponse> response)
          Creates a new instance of HttpServletScopes
 
Method Summary
 Object getApplicationAttribute(String key)
           
 String getInitApplicationAttribute(String key)
           
 Object getRequestAttribute(String key)
           
 Object getSessionAttribute(String key)
           
 Iterator<String> getSessionAttributeNames()
           
 void invalidateSession()
           
 void removeApplicationAttribute(String key)
           
 void removeRequestAttribute(String key)
           
 void removeSessionAttribute(String key)
           
 void setApplicationAttribute(String key, Object value)
           
 void setRequestAttribute(String key, Object value)
           
 void setSessionAttribute(String key, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpServletScopes

@Inject
public HttpServletScopes(Request<javax.servlet.http.HttpServletRequest> request,
                                Response<javax.servlet.http.HttpServletResponse> response)
Creates a new instance of HttpServletScopes

Parameters:
request -
response -
Method Detail

getSessionAttribute

public Object getSessionAttribute(String key)
Specified by:
getSessionAttribute in interface StatefulScopes

getSessionAttributeNames

public Iterator<String> getSessionAttributeNames()
Specified by:
getSessionAttributeNames in interface StatefulScopes

setSessionAttribute

public void setSessionAttribute(String key,
                                Object value)
Specified by:
setSessionAttribute in interface StatefulScopes

removeSessionAttribute

public void removeSessionAttribute(String key)
Specified by:
removeSessionAttribute in interface StatefulScopes

removeApplicationAttribute

public void removeApplicationAttribute(String key)
Specified by:
removeApplicationAttribute in interface Scopes

removeRequestAttribute

public void removeRequestAttribute(String key)
Specified by:
removeRequestAttribute in interface Scopes

setRequestAttribute

public void setRequestAttribute(String key,
                                Object value)
Specified by:
setRequestAttribute in interface Scopes

setApplicationAttribute

public void setApplicationAttribute(String key,
                                    Object value)
Specified by:
setApplicationAttribute in interface Scopes

getRequestAttribute

public Object getRequestAttribute(String key)
Specified by:
getRequestAttribute in interface Scopes

getApplicationAttribute

public Object getApplicationAttribute(String key)
Specified by:
getApplicationAttribute in interface Scopes

invalidateSession

public void invalidateSession()
Specified by:
invalidateSession in interface StatefulScopes

getInitApplicationAttribute

public String getInitApplicationAttribute(String key)
Specified by:
getInitApplicationAttribute in interface Scopes


Copyright © 2004-2011. All Rights Reserved.