Java Code Examples for javax.portlet.PortletRequest#RESOURCE_PHASE
The following examples show how to use
javax.portlet.PortletRequest#RESOURCE_PHASE .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AnnotationMethodHandlerAdapter.java From spring4-understanding with Apache License 2.0 | 6 votes |
private String determineDefaultPhase(Method handlerMethod) { if (void.class != handlerMethod.getReturnType()) { return PortletRequest.RENDER_PHASE; } for (Class<?> argType : handlerMethod.getParameterTypes()) { if (ActionRequest.class.isAssignableFrom(argType) || ActionResponse.class.isAssignableFrom(argType) || InputStream.class.isAssignableFrom(argType) || Reader.class.isAssignableFrom(argType)) { return PortletRequest.ACTION_PHASE; } else if (RenderRequest.class.isAssignableFrom(argType) || RenderResponse.class.isAssignableFrom(argType) || OutputStream.class.isAssignableFrom(argType) || Writer.class.isAssignableFrom(argType)) { return PortletRequest.RENDER_PHASE; } else if (ResourceRequest.class.isAssignableFrom(argType) || ResourceResponse.class.isAssignableFrom(argType)) { return PortletRequest.RESOURCE_PHASE; } else if (EventRequest.class.isAssignableFrom(argType) || EventResponse.class.isAssignableFrom(argType)) { return PortletRequest.EVENT_PHASE; } } return ""; }
Example 2
Source File: PortletResourceRequestContextImpl.java From portals-pluto with Apache License 2.0 | 5 votes |
public PortletResourceRequestContextImpl(PortletContainer container, HttpServletRequest containerRequest, HttpServletResponse containerResponse, PortletWindow window) { // if pageState != null, we're dealing with a Partial Action request, so // the servlet parameters are not to be used. Otherwise, resource params could be // passed as servlet parameters. super(container, containerRequest, containerResponse, window, true, PortletRequest.RESOURCE_PHASE); }
Example 3
Source File: ResourceRequestImpl.java From portals-pluto with Apache License 2.0 | 4 votes |
public ResourceRequestImpl(PortletResourceRequestContext requestContext, PortletResourceResponseContext responseContext) { super(requestContext, responseContext, PortletRequest.RESOURCE_PHASE); this.cacheControl = responseContext.getCacheControl(); }