Java Code Examples for javax.portlet.ActionResponse#setEvent()
The following examples show how to use
javax.portlet.ActionResponse#setEvent() .
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: AddlPortletTests_SPEC2_5_EventHandling.java From portals-pluto with Apache License 2.0 | 6 votes |
@Override public void processAction(ActionRequest portletReq, ActionResponse portletResp) throws PortletException, IOException { portletResp.setRenderParameters(portletReq.getParameterMap()); long tid = Thread.currentThread().getId(); portletReq.setAttribute(THREADID_ATTR, tid); QName eventQName_tr0 = new QName(TCKNAMESPACE, "AddlPortletTests_SPEC2_5_EventHandling_exception4"); portletResp.setEvent(eventQName_tr0, "Hi!"); QName eventQName_tr1 = new QName(TCKNAMESPACE, "AddlPortletTests_SPEC2_5_EventHandling_exception5"); portletResp.setEvent(eventQName_tr1, "Hi!"); }
Example 2
Source File: FilterTests_EventFilter_ApiEventFilter.java From portals-pluto with Apache License 2.0 | 6 votes |
@Override public void processAction(ActionRequest portletReq, ActionResponse portletResp) throws PortletException, IOException { portletResp.setRenderParameters(portletReq.getParameterMap()); long tid = Thread.currentThread().getId(); portletReq.setAttribute(THREADID_ATTR, tid); String action = portletReq.getParameter("inputval"); if (action.equals("V2FilterTests_EventFilter_ApiEventFilter_doFilterBlock")) { QName eventQName_tr5 = new QName(TCKNAMESPACE, "FilterTests_EventFilter_ApiEventFilter_tr5"); portletResp.setEvent(eventQName_tr5, "Hi!"); } QName eventQName = new QName(TCKNAMESPACE, "FilterTests_EventFilter_ApiEventFilter"); portletResp.setEvent(eventQName, "Hi!"); }
Example 3
Source File: SigTestsEvent_EventResponse_SIGEvent.java From portals-pluto with Apache License 2.0 | 5 votes |
@Override public void processAction(ActionRequest portletReq, ActionResponse portletResp) throws PortletException, IOException { portletResp.setRenderParameters(portletReq.getParameterMap()); long tid = Thread.currentThread().getId(); portletReq.setAttribute(THREADID_ATTR, tid); QName eventQName = new QName(TCKNAMESPACE, "SigTestsEvent_EventResponse_SIGEvent"); portletResp.setEvent(eventQName, "Hi!"); }
Example 4
Source File: DispatcherReqRespTests3_SPEC2_19_IncludeJSPEventRequest.java From portals-pluto with Apache License 2.0 | 5 votes |
@Override public void processAction(ActionRequest portletReq, ActionResponse portletResp) throws PortletException, IOException { portletResp.setRenderParameters(portletReq.getParameterMap()); long tid = Thread.currentThread().getId(); portletReq.setAttribute(THREADID_ATTR, tid); QName eventQName = new QName(TCKNAMESPACE, "DispatcherReqRespTests3_SPEC2_19_IncludeJSPEventRequest"); portletResp.setEvent(eventQName, "Hi!"); }
Example 5
Source File: DispatcherTests_SPEC2_19_IncludeServletEvent.java From portals-pluto with Apache License 2.0 | 5 votes |
@Override public void processAction(ActionRequest portletReq, ActionResponse portletResp) throws PortletException, IOException { portletResp.setRenderParameters(portletReq.getParameterMap()); long tid = Thread.currentThread().getId(); portletReq.setAttribute(THREADID_ATTR, tid); QName eventQName = new QName(TCKNAMESPACE, "DispatcherTests_SPEC2_19_IncludeServletEvent"); portletResp.setEvent(eventQName, new TckParameters(portletReq.getParameterMap())); }
Example 6
Source File: AddlRequestTests_SPEC2_11_Event.java From portals-pluto with Apache License 2.0 | 5 votes |
@Override public void processAction(ActionRequest portletReq, ActionResponse portletResp) throws PortletException, IOException { portletResp.setRenderParameters(portletReq.getParameterMap()); long tid = Thread.currentThread().getId(); portletReq.setAttribute(THREADID_ATTR, tid); QName eventQName = new QName(TCKNAMESPACE, "AddlRequestTests_SPEC2_11_Event"); portletResp.setEvent(eventQName, "Hi!"); }
Example 7
Source File: SigTestsEvent_Event_SIGEvent.java From portals-pluto with Apache License 2.0 | 5 votes |
@Override public void processAction(ActionRequest portletReq, ActionResponse portletResp) throws PortletException, IOException { portletResp.setRenderParameters(portletReq.getParameterMap()); long tid = Thread.currentThread().getId(); portletReq.setAttribute(THREADID_ATTR, tid); QName eventQName = new QName(TCKNAMESPACE, "SigTestsEvent_Event_SIGEvent"); portletResp.setEvent(eventQName, "Hi!"); }
Example 8
Source File: DispatcherTests6_SPEC2_19_FwdThenIncludeServletEvent.java From portals-pluto with Apache License 2.0 | 5 votes |
@Override public void processAction(ActionRequest portletReq, ActionResponse portletResp) throws PortletException, IOException { portletResp.setRenderParameters(portletReq.getParameterMap()); long tid = Thread.currentThread().getId(); portletReq.setAttribute(THREADID_ATTR, tid); new StringWriter(); QName eventQName = new QName(TCKNAMESPACE, "DispatcherTests6_SPEC2_19_FwdThenIncludeServletEvent"); portletResp.setEvent(eventQName, "Hi!"); }
Example 9
Source File: RequestTests_EventRequest_ApiEvent.java From portals-pluto with Apache License 2.0 | 5 votes |
@Override public void processAction(ActionRequest portletReq, ActionResponse portletResp) throws PortletException, IOException { LOGGER.trace("main portlet processAction entry"); portletResp.setRenderParameters(portletReq.getParameterMap()); long tid = Thread.currentThread().getId(); portletReq.setAttribute(THREADID_ATTR, tid); QName eventQName = new QName(TCKNAMESPACE, "RequestTests_EventRequest_ApiEvent"); portletResp.setEvent(eventQName, "Hi!"); }
Example 10
Source File: DispatcherTests3S_SPEC2_19_IncludeJSPEvent.java From portals-pluto with Apache License 2.0 | 5 votes |
@Override public void processAction(ActionRequest portletReq, ActionResponse portletResp) throws PortletException, IOException { portletResp.setRenderParameters(portletReq.getParameterMap()); long tid = Thread.currentThread().getId(); portletReq.setAttribute(THREADID_ATTR, tid); new StringWriter(); QName eventQName = new QName(TCKNAMESPACE, "DispatcherTests3S_SPEC2_19_IncludeJSPEvent"); portletResp.setEvent(eventQName, "Hi!"); }
Example 11
Source File: SigTestsEvent_PortletResponse_SIGEvent.java From portals-pluto with Apache License 2.0 | 5 votes |
@Override public void processAction(ActionRequest portletReq, ActionResponse portletResp) throws PortletException, IOException { portletResp.setRenderParameters(portletReq.getParameterMap()); long tid = Thread.currentThread().getId(); portletReq.setAttribute(THREADID_ATTR, tid); QName eventQName = new QName(TCKNAMESPACE, "SigTestsEvent_PortletResponse_SIGEvent"); portletResp.setEvent(eventQName, "Hi!"); }
Example 12
Source File: DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest.java From portals-pluto with Apache License 2.0 | 5 votes |
@Override public void processAction(ActionRequest portletReq, ActionResponse portletResp) throws PortletException, IOException { portletResp.setRenderParameters(portletReq.getParameterMap()); long tid = Thread.currentThread().getId(); portletReq.setAttribute(THREADID_ATTR, tid); QName eventQName = new QName(TCKNAMESPACE, "DispatcherReqRespTests4_SPEC2_19_IncludeServletEventRequest"); portletResp.setEvent(eventQName, "Hi!"); }
Example 13
Source File: DispatcherReqRespTests1_SPEC2_19_ForwardJSPEventRequest.java From portals-pluto with Apache License 2.0 | 5 votes |
@Override public void processAction(ActionRequest portletReq, ActionResponse portletResp) throws PortletException, IOException { portletResp.setRenderParameters(portletReq.getParameterMap()); long tid = Thread.currentThread().getId(); portletReq.setAttribute(THREADID_ATTR, tid); QName eventQName = new QName(TCKNAMESPACE, "DispatcherReqRespTests1_SPEC2_19_ForwardJSPEventRequest"); portletResp.setEvent(eventQName, "Hi!"); }
Example 14
Source File: DispatcherTests2_SPEC2_19_ForwardJSPEvent.java From portals-pluto with Apache License 2.0 | 5 votes |
@Override public void processAction(ActionRequest portletReq, ActionResponse portletResp) throws PortletException, IOException { portletResp.setRenderParameters(portletReq.getParameterMap()); long tid = Thread.currentThread().getId(); portletReq.setAttribute(THREADID_ATTR, tid); new StringWriter(); QName eventQName = new QName(TCKNAMESPACE, "DispatcherTests2_SPEC2_19_ForwardJSPEvent"); portletResp.setEvent(eventQName, "Hi!"); }
Example 15
Source File: DispatcherTests2_SPEC2_19_IncludeJSPEvent.java From portals-pluto with Apache License 2.0 | 5 votes |
@Override public void processAction(ActionRequest portletReq, ActionResponse portletResp) throws PortletException, IOException { portletResp.setRenderParameters(portletReq.getParameterMap()); long tid = Thread.currentThread().getId(); portletReq.setAttribute(THREADID_ATTR, tid); new StringWriter(); QName eventQName = new QName(TCKNAMESPACE, "DispatcherTests2_SPEC2_19_IncludeJSPEvent"); portletResp.setEvent(eventQName, "Hi!"); }
Example 16
Source File: SigTestsEvent_StateAwareResponse_SIGEvent.java From portals-pluto with Apache License 2.0 | 5 votes |
@Override public void processAction(ActionRequest portletReq, ActionResponse portletResp) throws PortletException, IOException { portletResp.setRenderParameters(portletReq.getParameterMap()); long tid = Thread.currentThread().getId(); portletReq.setAttribute(THREADID_ATTR, tid); QName eventQName = new QName(TCKNAMESPACE, "SigTestsEvent_StateAwareResponse_SIGEvent"); portletResp.setEvent(eventQName, "Hi!"); }
Example 17
Source File: AnnotationPortletAppConfigOverrideTests_SPEC1_28_EventConfiguration1.java From portals-pluto with Apache License 2.0 | 5 votes |
@ActionMethod( portletName = "AnnotationPortletAppConfigOverrideTests_SPEC1_28_EventConfiguration1", publishingEvents = { @PortletQName( localPart = "AnnotationPortletAppConfigOverrideTests_SPEC1_28_EventConfiguration1", namespaceURI = "http://www.apache.org/portals/pluto/portlet-tck_3.0" ) } ) public void processAction(ActionRequest portletReq, ActionResponse portletResp) throws PortletException, IOException { QName eventQName = new QName( "http://www.apache.org/portals/pluto/portlet-tck_3.0", "AnnotationPortletAppConfigOverrideTests_SPEC1_28_EventConfiguration1"); portletResp.setEvent(eventQName, "Hi!"); }
Example 18
Source File: TagLibPortlet.java From portals-pluto with Apache License 2.0 | 5 votes |
@ActionMethod(portletName = "TagLibPortlet", publishingEvents= {@PortletQName(namespaceURI=URI, localPart=LPART)}) public void handleDialog(ActionRequest req, ActionResponse resp) throws PortletException, IOException { String ttype = req.getActionParameters().getValue(TEST); if (ttype == null) { ttype = TEST_OBJ; } resp.getRenderParameters().setValue(TEST, ttype); String phase = req.getActionParameters().getValue(PHASE); if (phase != null) { resp.getRenderParameters().setValue(PHASE, phase); if (phase.equals(PHASE_ACT)) { req.setAttribute(ATTRIB_PHASE_TITLE, req.getAttribute(LIFECYCLE_PHASE)); PortletRequestDispatcher prd = req.getPortletContext().getRequestDispatcher(PROXY); prd.include(req, resp); } else if (phase.equals(PHASE_EVT)) { QName qn = new QName(URI, LPART); resp.setEvent(qn, resp.getNamespace()); } } StringBuilder txt = new StringBuilder(128); txt.append("Parameter: ").append(PHASE); txt.append(", value: ").append(phase); logger.debug(txt.toString()); }
Example 19
Source File: FilterTests_FilterChain_ApiEventFilter.java From portals-pluto with Apache License 2.0 | 5 votes |
@Override public void processAction(ActionRequest portletReq, ActionResponse portletResp) throws PortletException, IOException { portletResp.setRenderParameters(portletReq.getParameterMap()); long tid = Thread.currentThread().getId(); portletReq.setAttribute(THREADID_ATTR, tid); QName eventQName = new QName(TCKNAMESPACE, "FilterTests_FilterChain_ApiEventFilter"); portletResp.setEvent(eventQName, "Hi!"); }
Example 20
Source File: DispatcherReqRespTests2_SPEC2_19_ForwardServletEventRequest.java From portals-pluto with Apache License 2.0 | 5 votes |
@Override public void processAction(ActionRequest portletReq, ActionResponse portletResp) throws PortletException, IOException { portletResp.setRenderParameters(portletReq.getParameterMap()); long tid = Thread.currentThread().getId(); portletReq.setAttribute(THREADID_ATTR, tid); QName eventQName = new QName(TCKNAMESPACE, "DispatcherReqRespTests2_SPEC2_19_ForwardServletEventRequest"); portletResp.setEvent(eventQName, "Hi!"); }