01: /******************************************************************************
02: * JBoss, a division of Red Hat *
03: * Copyright 2006, Red Hat Middleware, LLC, and individual *
04: * contributors as indicated by the @authors tag. See the *
05: * copyright.txt in the distribution for a full listing of *
06: * individual contributors. *
07: * *
08: * This is free software; you can redistribute it and/or modify it *
09: * under the terms of the GNU Lesser General Public License as *
10: * published by the Free Software Foundation; either version 2.1 of *
11: * the License, or (at your option) any later version. *
12: * *
13: * This software is distributed in the hope that it will be useful, *
14: * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
16: * Lesser General Public License for more details. *
17: * *
18: * You should have received a copy of the GNU Lesser General Public *
19: * License along with this software; if not, write to the Free *
20: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
21: * 02110-1301 USA, or see the FSF site: http://www.fsf.org. *
22: ******************************************************************************/package org.jboss.portal.wsrp.endpoints;
23:
24: import org.jboss.portal.wsrp.core.AccessDeniedFault;
25: import org.jboss.portal.wsrp.core.BlockingInteractionResponse;
26: import org.jboss.portal.wsrp.core.GetMarkup;
27: import org.jboss.portal.wsrp.core.InconsistentParametersFault;
28: import org.jboss.portal.wsrp.core.InitCookie;
29: import org.jboss.portal.wsrp.core.InvalidCookieFault;
30: import org.jboss.portal.wsrp.core.InvalidHandleFault;
31: import org.jboss.portal.wsrp.core.InvalidRegistrationFault;
32: import org.jboss.portal.wsrp.core.InvalidSessionFault;
33: import org.jboss.portal.wsrp.core.InvalidUserCategoryFault;
34: import org.jboss.portal.wsrp.core.MarkupResponse;
35: import org.jboss.portal.wsrp.core.MissingParametersFault;
36: import org.jboss.portal.wsrp.core.OperationFailedFault;
37: import org.jboss.portal.wsrp.core.PerformBlockingInteraction;
38: import org.jboss.portal.wsrp.core.PortletStateChangeRequiredFault;
39: import org.jboss.portal.wsrp.core.ReleaseSessions;
40: import org.jboss.portal.wsrp.core.ReturnAny;
41: import org.jboss.portal.wsrp.core.UnsupportedLocaleFault;
42: import org.jboss.portal.wsrp.core.UnsupportedMimeTypeFault;
43: import org.jboss.portal.wsrp.core.UnsupportedModeFault;
44: import org.jboss.portal.wsrp.core.UnsupportedWindowStateFault;
45: import org.jboss.portal.wsrp.core.WSRP_v1_Markup_PortType;
46:
47: import java.rmi.RemoteException;
48:
49: /**
50: * @author <a href="mailto:palber@novell.com">Polina Alber</a>
51: * @author <a href="mailto:chris.laprun@jboss.com">Chris Laprun</a>
52: * @version $Revision: 8784 $
53: * @since 2.4
54: */
55: public class MarkupEndpoint extends WSRPBaseEndpoint implements
56: WSRP_v1_Markup_PortType {
57: public MarkupResponse getMarkup(GetMarkup getMarkup)
58: throws UnsupportedWindowStateFault, InvalidCookieFault,
59: InvalidSessionFault, AccessDeniedFault,
60: InconsistentParametersFault, InvalidHandleFault,
61: UnsupportedLocaleFault, UnsupportedModeFault,
62: OperationFailedFault, MissingParametersFault,
63: InvalidUserCategoryFault, InvalidRegistrationFault,
64: UnsupportedMimeTypeFault, RemoteException {
65: forceSessionAccess();
66: return producer.getMarkup(getMarkup);
67: }
68:
69: public BlockingInteractionResponse performBlockingInteraction(
70: PerformBlockingInteraction performBlockingInteraction)
71: throws InvalidSessionFault, UnsupportedModeFault,
72: UnsupportedMimeTypeFault, OperationFailedFault,
73: UnsupportedWindowStateFault, UnsupportedLocaleFault,
74: AccessDeniedFault, PortletStateChangeRequiredFault,
75: InvalidRegistrationFault, MissingParametersFault,
76: InvalidUserCategoryFault, InconsistentParametersFault,
77: InvalidHandleFault, InvalidCookieFault, RemoteException {
78: forceSessionAccess();
79: return producer
80: .performBlockingInteraction(performBlockingInteraction);
81: }
82:
83: public ReturnAny releaseSessions(ReleaseSessions releaseSessions)
84: throws InvalidRegistrationFault, OperationFailedFault,
85: MissingParametersFault, AccessDeniedFault, RemoteException {
86: forceSessionAccess();
87: return producer.releaseSessions(releaseSessions);
88: }
89:
90: public ReturnAny initCookie(InitCookie initCookie)
91: throws AccessDeniedFault, OperationFailedFault,
92: InvalidRegistrationFault, RemoteException {
93: forceSessionAccess();
94: return producer.initCookie(initCookie);
95: }
96: }
|