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

CoreController - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.core.controller
Class CoreController

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended byorg.jboss.system.ServiceMBeanSupport
          extended byorg.jboss.portal.jems.as.system.AbstractJBossService
              extended byorg.jboss.portal.core.controller.CoreController
All Implemented Interfaces:
javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, RequestController, org.jboss.system.Service, org.jboss.system.ServiceMBean
Direct Known Subclasses:
AjaxController

public class CoreController
extends AbstractJBossService
implements RequestController

Version:
$Revision: 5448 $
Author:
Martin Holzner, Julien Viet

Nested Class Summary
static class CoreController.Forward
           
 
Field Summary
private  CommandFactory commandFactory
          .
private  InstanceContainer instanceContainer
          .
private  PageService pageService
          .
private  PortalAuthorizationManagerFactory portalAuthorizationManagerFactory
          .
private  PortalObjectContainer portalObjectContainer
          .
private  InterceptorStackFactory stackFactory
          .
private  URLFactory urlFactory
          .
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
CoreController()
           
 
Method Summary
 CommandFactory getCommandFactory()
           
 InstanceContainer getInstanceContainer()
           
 PageService getPageService()
           
 PortalAuthorizationManagerFactory getPortalAuthorizationManagerFactory()
           
 PortalObjectContainer getPortalObjectContainer()
           
 InterceptorStackFactory getStackFactory()
           
 URLFactory getURLFactory()
           
 void handle(ServerInvocation invocation)
          Handle the invocation.
private  CoreController.Forward handleResult(ControllerCommand cmd, java.lang.Object response, ServerInvocation invocation)
           
 boolean requiresRedirect(URLContext urlCtx, ControllerCommand cmd, ServerInvocation invocation)
           
private  void sendRedirect(ServerInvocation invocation, java.lang.String redirect)
           
private  void sendStatusCode(ServerInvocation invocation, int sc)
           
 void setCommandFactory(CommandFactory commandFactory)
           
 void setInstanceContainer(InstanceContainer instanceContainer)
           
 void setPageService(PageService pageService)
           
 void setPortalAuthorizationManagerFactory(PortalAuthorizationManagerFactory portalAuthorizationManagerFactory)
           
 void setPortalObjectContainer(PortalObjectContainer portalObjectContainer)
           
 void setStackFactory(InterceptorStackFactory stackFactory)
           
 void setURLFactory(URLFactory urlFactory)
           
 
Methods inherited from class org.jboss.portal.jems.as.system.AbstractJBossService
create, destroy, getState, getStateString, start, stop
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
createService, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, startService, stopService
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pageService

private PageService pageService
.


commandFactory

private CommandFactory commandFactory
.


urlFactory

private URLFactory urlFactory
.


stackFactory

private InterceptorStackFactory stackFactory
.


portalObjectContainer

private PortalObjectContainer portalObjectContainer
.


instanceContainer

private InstanceContainer instanceContainer
.


portalAuthorizationManagerFactory

private PortalAuthorizationManagerFactory portalAuthorizationManagerFactory
.

Constructor Detail

CoreController

public CoreController()
Method Detail

getPortalAuthorizationManagerFactory

public PortalAuthorizationManagerFactory getPortalAuthorizationManagerFactory()

setPortalAuthorizationManagerFactory

public void setPortalAuthorizationManagerFactory(PortalAuthorizationManagerFactory portalAuthorizationManagerFactory)

getInstanceContainer

public InstanceContainer getInstanceContainer()

setInstanceContainer

public void setInstanceContainer(InstanceContainer instanceContainer)

getPortalObjectContainer

public PortalObjectContainer getPortalObjectContainer()

setPortalObjectContainer

public void setPortalObjectContainer(PortalObjectContainer portalObjectContainer)

getURLFactory

public URLFactory getURLFactory()

setURLFactory

public void setURLFactory(URLFactory urlFactory)

getCommandFactory

public CommandFactory getCommandFactory()

setCommandFactory

public void setCommandFactory(CommandFactory commandFactory)

getPageService

public PageService getPageService()

setPageService

public void setPageService(PageService pageService)

getStackFactory

public InterceptorStackFactory getStackFactory()

setStackFactory

public void setStackFactory(InterceptorStackFactory stackFactory)

handle

public void handle(ServerInvocation invocation)
            throws ServerException
Description copied from interface: RequestController
Handle the invocation.

Specified by:
handle in interface RequestController
Parameters:
invocation - the server invocation
Throws:
ServerException

handleResult

private CoreController.Forward handleResult(ControllerCommand cmd,
                                            java.lang.Object response,
                                            ServerInvocation invocation)
                                     throws java.io.IOException,
                                            javax.servlet.ServletException,
                                            ServerException
Throws:
java.io.IOException
javax.servlet.ServletException
ServerException

sendStatusCode

private void sendStatusCode(ServerInvocation invocation,
                            int sc)
                     throws ServerException
Throws:
ServerException

sendRedirect

private void sendRedirect(ServerInvocation invocation,
                          java.lang.String redirect)
                   throws ServerException
Throws:
ServerException

requiresRedirect

public boolean requiresRedirect(URLContext urlCtx,
                                ControllerCommand cmd,
                                ServerInvocation invocation)