Author: julien(a)jboss.com
Date: 2007-11-13 10:43:48 -0500 (Tue, 13 Nov 2007)
New Revision: 8902
Added:
branches/UIServer/uiserver/src/main/org/jboss/portal/presentation/RequestContext.java
Modified:
branches/UIServer/build/ide/intellij/idea60/modules/web/web.iml
Log:
added RequestContext to be the contract of what the client provides to the server
Modified: branches/UIServer/build/ide/intellij/idea60/modules/web/web.iml
===================================================================
--- branches/UIServer/build/ide/intellij/idea60/modules/web/web.iml 2007-11-13 15:11:32
UTC (rev 8901)
+++ branches/UIServer/build/ide/intellij/idea60/modules/web/web.iml 2007-11-13 15:43:48
UTC (rev 8902)
@@ -19,6 +19,10 @@
</orderEntry>
<orderEntryProperties />
</component>
+ <component name="VcsManagerConfiguration">
+ <option name="ACTIVE_VCS_NAME" value="svn" />
+ <option name="USE_PROJECT_VCS" value="false" />
+ </component>
<component name="copyright">
<Base>
<setting name="state" value="1" />
Added:
branches/UIServer/uiserver/src/main/org/jboss/portal/presentation/RequestContext.java
===================================================================
--- branches/UIServer/uiserver/src/main/org/jboss/portal/presentation/RequestContext.java
(rev 0)
+++
branches/UIServer/uiserver/src/main/org/jboss/portal/presentation/RequestContext.java 2007-11-13
15:43:48 UTC (rev 8902)
@@ -0,0 +1,45 @@
+/******************************************************************************
+ * JBoss, a division of Red Hat *
+ * Copyright 2006, Red Hat Middleware, LLC, and individual *
+ * contributors as indicated by the @authors tag. See the *
+ * copyright.txt in the distribution for a full listing of *
+ * individual contributors. *
+ * *
+ * This is free software; you can redistribute it and/or modify it *
+ * under the terms of the GNU Lesser General Public License as *
+ * published by the Free Software Foundation; either version 2.1 of *
+ * the License, or (at your option) any later version. *
+ * *
+ * This software is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
+ * Lesser General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU Lesser General Public *
+ * License along with this software; if not, write to the Free *
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org. *
+ ******************************************************************************/
+package org.jboss.portal.presentation;
+
+import org.jboss.portal.presentation.action.server.ServerAction;
+
+/**
+ * The contract that defines the services that the client provides to the server during a
server invocation.
+ *
+ * @author <a href="mailto:julien@jboss.org">Julien Viet</a>
+ * @version $Revision: 1.1 $
+ */
+public interface RequestContext
+{
+
+ /**
+ * Create a string representation of the server action.
+ *
+ * @param action the server action to render
+ * @return the rendition of the server action
+ * @throws IllegalArgumentException if the action cannot be rendered
+ */
+ String render(ServerAction action) throws IllegalArgumentException;
+
+}