站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

JBossServletContextProvider - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.bridge
Class JBossServletContextProvider

java.lang.Object
  extended byorg.jboss.portal.bridge.JBossServletContextProvider

public class JBossServletContextProvider
extends java.lang.Object

The JBoss implementation of org.apache.portals.bridges.common.ServletContextProvider use thread local variables to keep the request associated with the current thread of execution.

Version:
$Revision: 5442 $
Author:
Swarn Dhaliwal, Julien Viet

Nested Class Summary
static class JBossServletContextProvider.BridgeInfo
           
 
Field Summary
private static java.lang.ThreadLocal local
           
 
Constructor Summary
JBossServletContextProvider()
           
 
Method Summary
(package private) static JBossServletContextProvider.BridgeInfo get()
           
 javax.servlet.http.HttpServletRequest getHttpServletRequest(GenericPortlet genericPortlet, PortletRequest portletRequest)
           
 javax.servlet.http.HttpServletResponse getHttpServletResponse(GenericPortlet genericPortlet, PortletResponse portletResponse)
           
 javax.servlet.ServletContext getServletContext(GenericPortlet genericPortlet)
           
private  void init(JBossServletContextProvider.BridgeInfo bridgeInfo)
          Lazy initialisation of the bridge info.
(package private) static void set(JBossServletContextProvider.BridgeInfo info)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

local

private static final java.lang.ThreadLocal local
Constructor Detail

JBossServletContextProvider

public JBossServletContextProvider()
Method Detail

set

static void set(JBossServletContextProvider.BridgeInfo info)

get

static JBossServletContextProvider.BridgeInfo get()

getServletContext

public javax.servlet.ServletContext getServletContext(GenericPortlet genericPortlet)
                                               throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException - if no bridge info is found

getHttpServletRequest

public javax.servlet.http.HttpServletRequest getHttpServletRequest(GenericPortlet genericPortlet,
                                                                   PortletRequest portletRequest)
                                                            throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException - if no bridge info is found

getHttpServletResponse

public javax.servlet.http.HttpServletResponse getHttpServletResponse(GenericPortlet genericPortlet,
                                                                     PortletResponse portletResponse)
                                                              throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException - if no bridge info is found

init

private void init(JBossServletContextProvider.BridgeInfo bridgeInfo)
Lazy initialisation of the bridge info.