org.jboss.solder.servlet.http
Class HttpSessionStatusImpl

java.lang.Object
  extended by org.jboss.solder.servlet.http.HttpSessionStatusImpl
All Implemented Interfaces:
org.jboss.solder.servlet.http.HttpSessionStatus

@RequestScoped
@Requires(value="javax.servlet.Servlet")
public class HttpSessionStatusImpl
extends Object
implements org.jboss.solder.servlet.http.HttpSessionStatus

A helper bean that can be injected to check the status of the HttpSession and acquiring it

Author:
Nicklas Karlsson, Dan Allen, Shane Bryzak

Constructor Summary
HttpSessionStatusImpl()
           
 
Method Summary
 javax.servlet.http.HttpSession get()
          Returns the current HttpSession associated with this request.
 boolean isActive()
          Checks whether there is an active HttpSession associated with the current request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpSessionStatusImpl

public HttpSessionStatusImpl()
Method Detail

isActive

public boolean isActive()
Checks whether there is an active HttpSession associated with the current request.

Specified by:
isActive in interface org.jboss.solder.servlet.http.HttpSessionStatus
Returns:
Whether a valid session is associated with this request

get

public javax.servlet.http.HttpSession get()
Returns the current HttpSession associated with this request. If a session is not associated with the current request, a new session is first initialized.

Specified by:
get in interface org.jboss.solder.servlet.http.HttpSessionStatus
Returns:
HttpSession The existing session, or a new session if one has not yet been created


Copyright © 2008-2011 Seam Framework. All Rights Reserved.