org.jboss.solder.servlet.http
Class HttpSessionStatus

java.lang.Object
  extended by org.jboss.solder.servlet.http.HttpSessionStatus

@RequestScoped
public class HttpSessionStatus
extends Object

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

Author:
Nicklas Karlsson, Dan Allen

Constructor Summary
HttpSessionStatus()
           
 
Method Summary
 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

HttpSessionStatus

public HttpSessionStatus()
Method Detail

isActive

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

Returns:
Whether a valid session is associated with this request

get

public 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.

Returns:
HttpSession The existing session, or a new session if one has not yet been created


Copyright © 2011 Seam Framework. All Rights Reserved.