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

ComponentRequest - JBOSS Portal 2.2 API 英文版文档


org.jboss.portal.server.app
Class ComponentRequest

java.lang.Object
  extended byorg.jboss.portal.server.app.ComponentRequest

public class ComponentRequest
extends java.lang.Object


Field Summary
protected  Component component
           
protected  ComponentRequestContext context
           
protected  javax.servlet.http.HttpServletRequest dreq
           
protected  InstanceContext instanceContext
           
protected  PortalContext portalContext
           
protected  PreferencesContext preferencesContext
           
protected  Properties properties
           
protected  RequestContext requestContext
           
protected  SecurityContext securityContext
           
protected  SessionContext sessionContext
           
protected  java.util.Set supportedModes
           
protected  java.util.Set supportedWindowStates
           
protected  UserContext userContext
           
 
Constructor Summary
ComponentRequest()
           
 
Method Summary
 Component getComponent()
           
 ComponentRequestContext getContext()
           
 javax.servlet.http.HttpServletRequest getDispatchedRequest()
          Return the dispatched http servlet request.
 javax.servlet.http.HttpServletRequest getDreq()
           
 InstanceContext getInstanceContext()
           
 PortalContext getPortalContext()
           
 PreferencesContext getPreferencesContext()
           
 Properties getProperties()
           
 RequestContext getRequestContext()
           
 SecurityContext getSecurityContext()
           
 SessionContext getSessionContext()
           
 java.util.Set getSupportedModes()
           
 java.util.Collection getSupportedModes(java.lang.String contentType)
          Return the set portlet modes allowed by this portlet window.
 java.util.Set getSupportedWindowStates()
           
 UserContext getUserContext()
           
 boolean isSupportedMode(Mode mode)
          Return true if the given content type is supported for the given mode.
 boolean isSupportedWindowState(WindowState windowState)
           
 void setComponent(Component component)
           
 void setContext(ComponentRequestContext context)
           
 void setDispatchedRequest(javax.servlet.http.HttpServletRequest dreq)
          Set the dispatched http servlet request.
 void setDreq(javax.servlet.http.HttpServletRequest dreq)
           
 void setInstanceContext(InstanceContext instanceContext)
           
 void setPortalContext(PortalContext portalContext)
           
 void setPreferencesContext(PreferencesContext preferencesContext)
           
 void setProperties(Properties properties)
           
 void setRequestContext(RequestContext requestContext)
           
 void setSecurityContext(SecurityContext securityContext)
           
 void setSessionContext(SessionContext sessionContext)
           
 void setSupportedModes(java.util.Set supportedModes)
           
 void setSupportedWindowStates(java.util.Set supportedWindowStates)
           
 void setUserContext(UserContext userContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected ComponentRequestContext context

dreq

protected javax.servlet.http.HttpServletRequest dreq

properties

protected Properties properties

component

protected Component component

supportedWindowStates

protected java.util.Set supportedWindowStates

supportedModes

protected java.util.Set supportedModes

portalContext

protected PortalContext portalContext

sessionContext

protected SessionContext sessionContext

requestContext

protected RequestContext requestContext

securityContext

protected SecurityContext securityContext

userContext

protected UserContext userContext

instanceContext

protected InstanceContext instanceContext

preferencesContext

protected PreferencesContext preferencesContext
Constructor Detail

ComponentRequest

public ComponentRequest()
Method Detail

getSupportedWindowStates

public java.util.Set getSupportedWindowStates()

setSupportedWindowStates

public void setSupportedWindowStates(java.util.Set supportedWindowStates)

getSupportedModes

public java.util.Set getSupportedModes()

setSupportedModes

public void setSupportedModes(java.util.Set supportedModes)

getContext

public ComponentRequestContext getContext()

setContext

public void setContext(ComponentRequestContext context)

getComponent

public Component getComponent()

setComponent

public void setComponent(Component component)

getProperties

public Properties getProperties()

setProperties

public void setProperties(Properties properties)

getDispatchedRequest

public javax.servlet.http.HttpServletRequest getDispatchedRequest()
Return the dispatched http servlet request.


setDispatchedRequest

public void setDispatchedRequest(javax.servlet.http.HttpServletRequest dreq)
Set the dispatched http servlet request.


getSupportedModes

public java.util.Collection getSupportedModes(java.lang.String contentType)
Return the set portlet modes allowed by this portlet window.


isSupportedMode

public boolean isSupportedMode(Mode mode)
Return true if the given content type is supported for the given mode.

Throws:
java.lang.IllegalArgumentException - if the content type or the mode is null

isSupportedWindowState

public boolean isSupportedWindowState(WindowState windowState)
Throws:
java.lang.IllegalArgumentException - if the window state is null

getDreq

public javax.servlet.http.HttpServletRequest getDreq()

setDreq

public void setDreq(javax.servlet.http.HttpServletRequest dreq)

getPortalContext

public PortalContext getPortalContext()

setPortalContext

public void setPortalContext(PortalContext portalContext)

getSessionContext

public SessionContext getSessionContext()

setSessionContext

public void setSessionContext(SessionContext sessionContext)

getRequestContext

public RequestContext getRequestContext()

setRequestContext

public void setRequestContext(RequestContext requestContext)

getSecurityContext

public SecurityContext getSecurityContext()

setSecurityContext

public void setSecurityContext(SecurityContext securityContext)

getUserContext

public UserContext getUserContext()

setUserContext

public void setUserContext(UserContext userContext)

getInstanceContext

public InstanceContext getInstanceContext()

setInstanceContext

public void setInstanceContext(InstanceContext instanceContext)

getPreferencesContext

public PreferencesContext getPreferencesContext()

setPreferencesContext

public void setPreferencesContext(PreferencesContext preferencesContext)