You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-dev@portals.apache.org by dd...@apache.org on 2004/03/26 04:39:05 UTC
cvs commit: jakarta-pluto/sandbox/kuiper/src/java/org/apache/pluto/services OptionalServiceFactory.java PortletConfigFactoryService.java PortletRequestFactoryService.java PortletResponseFactoryService.java
ddewolf 2004/03/25 19:39:05
Added: sandbox/kuiper/src/java/org/apache/pluto/services
OptionalServiceFactory.java
PortletConfigFactoryService.java
PortletRequestFactoryService.java
PortletResponseFactoryService.java
Log:
Adding Optional Services
Revision Changes Path
1.1 jakarta-pluto/sandbox/kuiper/src/java/org/apache/pluto/services/OptionalServiceFactory.java
Index: OptionalServiceFactory.java
===================================================================
/*
* 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.services;
/** ServiceFactory which provides optional services which a
* Portal may provide to the PlutoContainer. If these
* services are not provided, Pluto will use it's default
* implementations.
*
* @author <A href="mailto:david.dewolf@vivare.com">David H. DeWolf</A>
* @version 1.0
* @since Mar 25, 2004 at 7:05:29 PM
*/
public interface OptionalServiceFactory extends ServiceFactory {
PortletRequestFactoryService getRequestFactoryService();
PortletResponseFactoryService getResponseFactoryService();
PortletConfigFactoryService getPortletConfigFactoryService();
}
1.1 jakarta-pluto/sandbox/kuiper/src/java/org/apache/pluto/services/PortletConfigFactoryService.java
Index: PortletConfigFactoryService.java
===================================================================
/*
* 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.services;
import javax.servlet.ServletConfig;
import javax.portlet.PortletConfig;
/** Optional Factory Service used by the PlutoContainer
* to create PortletConfigs.
*
* @author <A href="mailto:david.dewolf@vivare.com">David H. DeWolf</A>
* @version 1.0
* @since Mar 25, 2004 at 7:13:53 PM
*/
public interface PortletConfigFactoryService {
/** Create a PortletConfig for the given portletId
* and the servlet config within which it resides.
*
* @param portletId
* @param config
* @return
*/
PortletConfig createPortletConfig(String portletId, ServletConfig config);
}
1.1 jakarta-pluto/sandbox/kuiper/src/java/org/apache/pluto/services/PortletRequestFactoryService.java
Index: PortletRequestFactoryService.java
===================================================================
/*
* 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.services;
import org.apache.pluto.PortletWindow;
import javax.servlet.http.HttpServletRequest;
import javax.portlet.RenderRequest;
import javax.portlet.ActionRequest;
import javax.portlet.PortletRequest;
/** Optional Factory Service used by the Pluto Container
* to create PortletRequests.
*
* @author <A href="mailto:david.dewolf@vivare.com">David H. DeWolf</A>
* @version 1.0
* @since Mar 25, 2004 at 7:07:35 PM
*/
public interface PortletRequestFactoryService {
/** Create a RenderRequest for the given
* servlet request and associated window.
* @param req
* @param window
* @return
*/
RenderRequest createRenderRequest(HttpServletRequest req, PortletWindow window);
/** Create an ActionRequest for the given
* servlet request and associated window.
* @param req
* @param window
* @return
*/
ActionRequest createActionRequest(HttpServletRequest req, PortletWindow window);
/** Create a load request for the given
* servlet request and associated window.
*
* @param req
* @param window
* @return
*/
PortletRequest createLoadRequest(HttpServletRequest req, PortletWindow window);
}
1.1 jakarta-pluto/sandbox/kuiper/src/java/org/apache/pluto/services/PortletResponseFactoryService.java
Index: PortletResponseFactoryService.java
===================================================================
/*
* 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.services;
import org.apache.pluto.PortletWindow;
import javax.servlet.http.HttpServletResponse;
import javax.portlet.RenderResponse;
import javax.portlet.ActionResponse;
import javax.portlet.PortletResponse;
/** Options Factory Service used by the Pluto Container
* to create PortletResponses.
*
* @author <A href="mailto:david.dewolf@vivare.com">David H. DeWolf</A>
* @version 1.0
* @since Mar 25, 2004 at 7:11:05 PM
*/
public interface PortletResponseFactoryService {
/** Create a RenderResponse for the given response and
* associated window.
*
* @param res
* @param window
* @return
*/
RenderResponse createRenderResponse(HttpServletResponse res, PortletWindow window);
/** Create an ActionResponse for the given response and
* associated window.
*
* @param res
* @param window
* @return
*/
ActionResponse createActionResponse(HttpServletResponse res, PortletWindow window);
/** Create a Load Response for the given response and
* associated window.
*
* @param res
* @param window
* @return
*/
PortletResponse createLoadResponse(HttpServletResponse res, PortletWindow window);
}