org.jboss.seam.servlet.http
Class ImplicitHttpServletObjectsProducer

java.lang.Object
  extended by org.jboss.seam.servlet.http.ImplicitHttpServletObjectsProducer
All Implemented Interfaces:
Serializable

public class ImplicitHttpServletObjectsProducer
extends Object
implements Serializable

A producer for implicit HTTP Servlet objects, specifically the HttpServletRequest, HttpServletResponse and HttpSession. References are obtained from the ImplicitServletObjectsHolder.

TODO should probably throw IllegalStateException if accessed outside request

Author:
Nicklas Karlsson, Dan Allen
See Also:
Serialized Form

Constructor Summary
ImplicitHttpServletObjectsProducer()
           
 
Method Summary
protected  String getContextPath()
           
protected  List<Cookie> getCookies()
           
protected  HttpServletRequest getHttpServletRequest()
           
protected  HttpServletRequestContext getHttpServletRequestContext()
           
protected  HttpServletResponse getHttpServletResponse()
           
protected  HttpSession getHttpSession()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImplicitHttpServletObjectsProducer

public ImplicitHttpServletObjectsProducer()
Method Detail

getHttpSession

@Produces
@RequestScoped
protected HttpSession getHttpSession()

getHttpServletRequestContext

@Produces
@Typed(value=org.jboss.seam.servlet.http.HttpServletRequestContext.class)
@RequestScoped
protected HttpServletRequestContext getHttpServletRequestContext()

getHttpServletRequest

@Produces
@Typed(value=javax.servlet.http.HttpServletRequest.class)
@RequestScoped
protected HttpServletRequest getHttpServletRequest()

getHttpServletResponse

@Produces
@Typed(value=javax.servlet.http.HttpServletResponse.class)
@RequestScoped
protected HttpServletResponse getHttpServletResponse()

getCookies

@Produces
@RequestScoped
protected List<Cookie> getCookies()

getContextPath

@Produces
@ContextPath
protected String getContextPath()


Copyright © 2011 Seam Framework. All Rights Reserved.