PortletInvoker.java |
1 /* 2 * Copyright 2000-2001,2004 The Apache Software Foundation. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package org.apache.wsrp4j.producer.provider; 18 19 import oasis.names.tc.wsrp.v1.types.BlockingInteractionResponse; 20 import oasis.names.tc.wsrp.v1.types.GetMarkup; 21 import oasis.names.tc.wsrp.v1.types.MarkupResponse; 22 import oasis.names.tc.wsrp.v1.types.PerformBlockingInteraction; 23 24 import org.apache.wsrp4j.exception.WSRPException; 25 26 /** 27 * Specifies the interface to the markup generating component. 28 The methods are called during a WSRP markup request 29 */ 30 public interface PortletInvoker { 31 32 /** 33 Generate the WSRP MarkupResponse for a given MarkupRequest 34 @param request _getMarkup WSRP markup request 35 @return MarkupResponse 36 @throw WSRPException 37 */ 38 public MarkupResponse invokeGetMarkup(GetMarkup request) 39 throws WSRPException; 40 41 /** 42 Invoke a portlet action for a given WSRP action request 43 @param request WSRP blocking interaction request 44 @return BlockingInteractionResponse 45 @throw WSRPExceptin 46 */ 47 public BlockingInteractionResponse invokePerformBlockingInteraction( 48 PerformBlockingInteraction request) throws WSRPException; 49 50 }