接口 ResourceAwareController
- 所有已知实现类:
PortletWrappingController
public interface ResourceAwareController
Extension of the PortletController
interface that allows for handling Portlet 2.0 resource requests as well. Can also be implemented byAbstractController
subclasses.- 从以下版本开始:
- 3.0
- 作者:
- Juergen Hoeller
- 另请参阅:
ResourceServingPortlet
,Controller
,EventAwareController
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 ModelAndView
handleResourceRequest(ResourceRequest request, ResourceResponse response)
Process the resource request and return a ModelAndView object which the DispatcherPortlet will render.
方法详细资料
handleResourceRequest
ModelAndView handleResourceRequest(ResourceRequest request, ResourceResponse response) throws Exception
Process the resource request and return a ModelAndView object which the DispatcherPortlet will render. Anull
return value is not an error: It indicates that this object completed request processing itself, thus there is no ModelAndView to render.- 参数:
request
- current portlet resource requestresponse
- current portlet resource response- 返回:
- a ModelAndView to render, or null if handled directly
- 抛出:
Exception
- in case of errors