Consumer.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 /* 18 19 */ 20 21 package org.apache.wsrp4j.consumer; 22 23 /** 24 * The consumer provides access to consumer specific components. 25 * 26 * @author <a href='mailto:peter.fischer@de.ibm.com'>Peter Fischer</a> 27 */ 28 public interface Consumer { 29 30 /** 31 * Get the session handler of the consumer. 32 * 33 * @return Interface to the consumer specific session handler 34 **/ 35 public SessionHandler getSessionHandler(); 36 37 /** 38 * Get the portlet registry of the consumer. 39 * 40 * @return Interface to the consumer specific portlet registry 41 **/ 42 public PortletRegistry getPortletRegistry(); 43 44 /** 45 * Get the portlet driver registry of the consumer. 46 * 47 * @return Interface to the consumer specific portlet driver registry 48 **/ 49 public PortletDriverRegistry getPortletDriverRegistry(); 50 51 /** 52 * Get the producer registry of the consumer. 53 * 54 * @return The consumer specific producer registry 55 **/ 56 public ProducerRegistry getProducerRegistry(); 57 58 /** 59 * Get the user registry of the consumer. 60 * 61 * @return The consumer specific user registry 62 **/ 63 public UserRegistry getUserRegistry(); 64 65 /** 66 * Get the url template composer for template proccessing 67 * 68 * @return Interface to the consumer specific template composer 69 **/ 70 public URLTemplateComposer getTemplateComposer(); 71 72 /** 73 * Get the url rewriter for consumer url-rewriting 74 * 75 * @return The consumer specific url rewriter 76 **/ 77 public URLRewriter getURLRewriter(); 78 79 }