public StateAwareResponseImpl(PortletStateAwareResponseContext responseContext) { super(responseContext); this.responseContext = responseContext; this.windowId = responseContext.getPortletWindow().getId().getStringId(); }
/** * Returns the portlet session. * <p> * Note that since portlet request instance is created everytime the portlet container receives an incoming request, * the portlet session instance held by the request instance is also re-created for each incoming request. * </p> */ @Override public PortletSession getPortletSession(boolean create) { return requestContext.getPortletSession(create); }
/** * @param responseContext * @param copy */ public RenderURLImpl(PortletResponseContext responseContext, Copy copy) { super(responseContext, responseContext.getPortletURLProvider(PortletURLProvider.TYPE.RENDER), copy); }
public HttpServletPortletRequestWrapper(HttpServletRequest hreq, HttpSession session, PortletRequest preq) { super(hreq); this.preq = preq; this.session = session; reqctx = (PortletRequestContext) preq.getAttribute(PortletInvokerService.REQUEST_CONTEXT); this.mapper = reqctx.getContainer().getContainerServices().getNamespaceMapper(); this.winId = reqctx.getPortletWindow().getId(); this.phase = (String) preq.getAttribute(PortletRequest.LIFECYCLE_PHASE); }
protected BaseURLImpl(PortletResponseContext responseContext, PortletURLProvider urlProvider) { this.responseContext = responseContext; this.portalContext = responseContext.getContainer() .getContainerServices().getPortalContext(); this.windowId = responseContext.getPortletWindow().getId().getStringId(); this.urlProvider = urlProvider; renderURL = PortletURLProvider.TYPE.RENDER == urlProvider.getType(); if (isTrace) { StringBuilder txt = new StringBuilder(); txt.append("URL provider type=").append(urlProvider.getType()); txt.append(", WindowId=").append(windowId); txt.append(", isRender=").append(renderURL); LOGGER.debug(txt.toString()); } }
protected String encodeAttributeName(String name) { if (isReservedAttributeName(name)) { return name; } return container.getContainerServices().getNamespaceMapper().encode(window.getId(), name); }
protected String decodeAttributeName(String name) { if (isReservedAttributeName(name)) { return name; } String result = container.getContainerServices().getNamespaceMapper().decode(window.getId(), name); return result != null ? result : name; }
public void doEvent(PortletWindow portletWindow, HttpServletRequest request, HttpServletResponse response, Event event) throws PortletException, IOException, PortletContainerException { pluto.doEvent(portletWindow, request, response, event); }
/** * The method initialise the FilterManager for later use in the PortletServlet * @param portletWindow the PortletWindow * @param lifeCycle like ACTION_PHASE, RENDER_PHASE,... * @return FilterManager * @throws PortletContainerException */ private FilterManager filterInitialisation(PortletWindow portletWindow, String lifeCycle) throws PortletContainerException{ return getContainerServices().getFilterManagerService().getFilterManager(portletWindow, lifeCycle); } }
public void doAdmin(PortletWindow portletWindow, HttpServletRequest servletRequest, HttpServletResponse servletResponse) throws PortletException, IOException, PortletContainerException { pluto.doAdmin(portletWindow, servletRequest, servletResponse); }
public void doRender(PortletWindow portletWindow, HttpServletRequest servletRequest, HttpServletResponse servletResponse) throws PortletException, IOException, PortletContainerException { pluto.doRender(portletWindow, servletRequest, servletResponse); }
/** * For creating a new object from scratch * * @param urlProvider * @param windowId */ public RenderParametersImpl(PortletURLProvider urlProvider, String windowId) { super(urlProvider, windowId, ParamType.RENDER); prpNames = urlProvider.getPublicParameterNames(windowId); }
public RenderRequestImpl(PortletRequestContext requestContext, PortletRenderResponseContext responseContext) { super(requestContext, responseContext, PortletRequest.RENDER_PHASE); this.cacheControl = responseContext.getCacheControl(); }
/** * @param responseContext */ public ResourceURLImpl(PortletMimeResponseContext responseContext) { super(responseContext, responseContext.getPortletURLProvider(PortletURLProvider.TYPE.RESOURCE)); }
/** * @param responseContext * @param cacheLevel */ public ResourceURLImpl(PortletMimeResponseContext responseContext, String cacheLevel) { this(responseContext); if (cacheLevel != null) { this.cacheLevel = cacheLevel; } urlProvider.setCacheability(this.cacheLevel); }
public void doLoad(PortletWindow portletWindow, HttpServletRequest servletRequest, HttpServletResponse servletResponse) throws PortletException, IOException, PortletContainerException { pluto.doLoad(portletWindow, servletRequest, servletResponse); }
@Override public void setFragmentIdentifier(String fragment) { urlProvider.setFragmentIdentifier(fragment); }
protected HttpServletResponse getServletResponse() { return responseContext.getServletResponse(); }
public PortletRequestDispatcher getNamedDispatcher(String name) { return rdService.getNamedDispatcher(servletContext, portletApp, name); }
public void setTitle(String title) { ((PortletRenderResponseContext) responseContext).setTitle(title); } }