com.poscoict.glueframework.web.control.portlet
Class GlueSimpleController

java.lang.Object
  extended by com.poscoict.glueframework.web.control.portlet.GlueAbstractController
      extended by com.poscoict.glueframework.web.control.portlet.GlueSimpleController
All Implemented Interfaces:
org.springframework.web.portlet.mvc.Controller, org.springframework.web.portlet.mvc.EventAwareController

public class GlueSimpleController
extends GlueAbstractController

Spring Portlet MVC ÀÇ Controller.

 
 <?xml version="1.0" encoding="UTF-8"?>
 <beans xmlns="http://www.springframework.org/schema/beans"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xmlns:context="http://www.springframework.org/schema/context"
     xmlns:p="http://www.springframework.org/schema/p"
     xsi:schemaLocation="
         http://www.springframework.org/schema/beans
         http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
         http://www.springframework.org/schema/context
         http://www.springframework.org/schema/context/spring-context-3.0.xsd">
     <bean id="handlerMapping" class="org.springframework.web.portlet.handler.PortletModeHandlerMapping">
         <property name="portletModeMap">
             <map>
                 <entry key="view" value-ref="controller"/>
             </map>
         </property>
     </bean>
     <bean id="controller" class="com.poscoict.glueframework.web.control.portlet.GlueSimpleController" >
         <property name="includeMode" value="false" />
         <property name="viewPage" value="sample" />
         <property name="serviceName" value="sample-service" />
     </bean>
     <bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
         <property name="prefix" value="/WEB-INF/jsp/" />
         <property name="suffix" value=".jsp" />
     </bean>
 </beans>
 
 


Field Summary
 
Fields inherited from class com.poscoict.glueframework.web.control.portlet.GlueAbstractController
logger
 
Constructor Summary
GlueSimpleController()
           
 
Method Summary
protected  void afterHandleActionRequest(javax.portlet.ActionRequest actionRequest, javax.portlet.ActionResponse actionResponse, GluePortletContext ctx)
           
protected  void afterHandleEventRequest(javax.portlet.EventRequest eventRequest, javax.portlet.EventResponse eventResponse, GluePortletContext ctx)
           
protected  org.springframework.web.portlet.ModelAndView afterHandleRenderRequest(javax.portlet.RenderRequest renderRequest, javax.portlet.RenderResponse renderResponse, GluePortletContext ctx)
           
protected  GluePortletContext beforeHandleActionRequest(javax.portlet.ActionRequest actionRequest, javax.portlet.ActionResponse actionResponse)
           
protected  GluePortletContext beforeHandleEventRequest(javax.portlet.EventRequest eventRequest, javax.portlet.EventResponse eventResponse)
           
protected  GluePortletContext beforeHandleRenderRequest(javax.portlet.RenderRequest renderRequest, javax.portlet.RenderResponse renderResponse)
           
 void setActionServiceName(String serviceName)
           
 void setEventServiceName(String serviceName)
           
 void setIncludeMode(boolean includeMode)
           
 void setRenderServiceName(String serviceName)
           
 void setSkipActionEvent(Set<String> skipActionEvent)
           
 void setViewPage(String viewPage)
           
 
Methods inherited from class com.poscoict.glueframework.web.control.portlet.GlueAbstractController
handleActionRequest, handleEventRequest, handleRenderRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlueSimpleController

public GlueSimpleController()
Method Detail

setIncludeMode

public void setIncludeMode(boolean includeMode)
Parameters:
includeMode -

setViewPage

public void setViewPage(String viewPage)
Parameters:
viewPage -

setRenderServiceName

public void setRenderServiceName(String serviceName)
Parameters:
serviceName -

setEventServiceName

public void setEventServiceName(String serviceName)
Parameters:
serviceName -

setActionServiceName

public void setActionServiceName(String serviceName)
Parameters:
serviceName -

setSkipActionEvent

public void setSkipActionEvent(Set<String> skipActionEvent)
Parameters:
skipActionEvent -

beforeHandleActionRequest

protected GluePortletContext beforeHandleActionRequest(javax.portlet.ActionRequest actionRequest,
                                                       javax.portlet.ActionResponse actionResponse)
Specified by:
beforeHandleActionRequest in class GlueAbstractController
Returns:

afterHandleActionRequest

protected void afterHandleActionRequest(javax.portlet.ActionRequest actionRequest,
                                        javax.portlet.ActionResponse actionResponse,
                                        GluePortletContext ctx)
Specified by:
afterHandleActionRequest in class GlueAbstractController

beforeHandleRenderRequest

protected GluePortletContext beforeHandleRenderRequest(javax.portlet.RenderRequest renderRequest,
                                                       javax.portlet.RenderResponse renderResponse)
Specified by:
beforeHandleRenderRequest in class GlueAbstractController
Returns:

afterHandleRenderRequest

protected org.springframework.web.portlet.ModelAndView afterHandleRenderRequest(javax.portlet.RenderRequest renderRequest,
                                                                                javax.portlet.RenderResponse renderResponse,
                                                                                GluePortletContext ctx)
Specified by:
afterHandleRenderRequest in class GlueAbstractController
Returns:

beforeHandleEventRequest

protected GluePortletContext beforeHandleEventRequest(javax.portlet.EventRequest eventRequest,
                                                      javax.portlet.EventResponse eventResponse)
Specified by:
beforeHandleEventRequest in class GlueAbstractController
Returns:

afterHandleEventRequest

protected void afterHandleEventRequest(javax.portlet.EventRequest eventRequest,
                                       javax.portlet.EventResponse eventResponse,
                                       GluePortletContext ctx)
Specified by:
afterHandleEventRequest in class GlueAbstractController


Copyright © 2013–2017 POSCO ICT. All rights reserved.