<commit_before>/*
 * Copyright 2003,2004 The Apache Software Foundation.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.apache.pluto;

import java.util.Properties;
import java.io.IOException;

import javax.portlet.PortletException;
import javax.servlet.ServletConfig;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.pluto.om.window.PortletWindow;
import org.apache.pluto.services.PortletContainerEnvironment;

/**
 * The <CODE>PortletContainer</CODE> interface is the entrance point of the portlet
 * container. This singleton is normally called by the aggregation in a specific
 * order, meaning that each method of this singleton has to be called in a
 * defined way.<P>
 * The base functionality of the portlet container can be enhanced or even
 * modified by PortletContainerServices.
 * <P>
 * The methods of this class have to be called in the following order:
 * <UL>
 * <LI>only once</LI>
 *   <UL>
 *   <LI>init</LI>
 *   <LI>destroy</LI>
 *   </UL>
 * <LI>for each request</LI>
 *   <UL>
 *   <LI>renderPortlet (for each portlet)</LI>
 *   </UL>
 * <LI>optional for each request</LI>
 *   <UL>
 *   <LI>processPortletAction (for portlet receiving the action request)</LI>
 *   </UL>
 * </UL>
 * 
 * @version $Id: PortletContainer.java,v 1.4 2004/05/27 11:53:43 cziegeler Exp $
 */
public interface PortletContainer
{

    /**
     * Initializes the portlet container.<commit_msg>Resolving Issues: PLUTO-28.  Fixing JavaDoc to reference actual method shutdown (as opposed to destroy).  Added links to methods.<commit_after>/*
 * Copyright 2003,2004 The Apache Software Foundation.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.apache.pluto;

import java.util.Properties;
import java.io.IOException;

import javax.portlet.PortletException;
import javax.servlet.ServletConfig;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.pluto.om.window.PortletWindow;
import org.apache.pluto.services.PortletContainerEnvironment;

/**
 * The <CODE>PortletContainer</CODE> interface is the entrance point of the portlet
 * container. This singleton is normally called by the aggregation in a specific
 * order, meaning that each method of this singleton has to be called in a
 * defined way.<P>
 * The base functionality of the portlet container can be enhanced or even
 * modified by PortletContainerServices.
 *
 * <P>
 * The methods of this class have to be called in the following order:
 * <UL>
 * <LI>only once</LI>
 *   <UL>
 *   <LI>{@link #init(java.lang.String, javax.servlet.ServletConfig, org.apache.pluto.services.PortletContainerEnvironment, java.util.Properties)}</LI>
 *   <LI>{@link #shutdown()}</LI>
 *   </UL>
 * <LI>for each request</LI>
 *   <UL>
 *   <LI>{@link #renderPortlet(org.apache.pluto.om.window.PortletWindow, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)} (for each portlet)</LI>
 *   </UL>
 * <LI>optional for each request</LI>
 *   <UL>
 *   <LI>{@link #processPortletAction(org.apache.pluto.om.window.PortletWindow, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)} (for portlet receiving the action request)</LI>
 *   </UL>
 * </UL>
 * 
 * @version $Id: PortletContainer.java,v 1.5 2004/07/30 14:16:06 ddewolf Exp $
 */
public interface PortletContainer
{

    /**
     * Initializes the portlet container.
{'fraction_non_alphanumeric': 0.10489977728285078, 'fraction_numerical': 0.012917594654788419, 'mean_word_length': 4.109215017064846, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2493136', 'n_tokens_mistral': 1319, 'n_tokens_neox': 1272, 'n_words': 457}