From: Chris L. <chr...@jb...> - 2006-05-29 16:50:01
|
User: claprun Date: 06/05/29 12:49:59 Modified: wsrp/src/main/org/jboss/portal/wsrp WSRPTypeFactory.java Log: Added support for ClientData (required due to a bug in BEA's portal, plus it doesn't hurt... ^_^). Can now access BEA's public producer portlets. Revision Changes Path 1.14 +13 -1 jboss-portal/wsrp/src/main/org/jboss/portal/wsrp/WSRPTypeFactory.java (In the diff below, changes in quantity of whitespace are not shown.) Index: WSRPTypeFactory.java =================================================================== RCS file: /cvsroot/jboss/jboss-portal/wsrp/src/main/org/jboss/portal/wsrp/WSRPTypeFactory.java,v retrieving revision 1.13 retrieving revision 1.14 diff -u -b -r1.13 -r1.14 --- WSRPTypeFactory.java 29 May 2006 16:34:47 -0000 1.13 +++ WSRPTypeFactory.java 29 May 2006 16:49:59 -0000 1.14 @@ -30,6 +30,7 @@ import org.jboss.portal.portlet.StateString; import org.jboss.portal.portlet.spi.InvocationContext; import org.jboss.portal.wsrp.core.BlockingInteractionResponse; +import org.jboss.portal.wsrp.core.ClientData; import org.jboss.portal.wsrp.core.GetMarkup; import org.jboss.portal.wsrp.core.GetServiceDescription; import org.jboss.portal.wsrp.core.InitCookie; @@ -57,7 +58,7 @@ * information. * * @author <a href="mailto:chr...@jb...">Chris Laprun</a> - * @version $Revision: 1.13 $ + * @version $Revision: 1.14 $ * @since 2.4 */ public class WSRPTypeFactory @@ -522,4 +523,15 @@ //todo: deal with resources return templates; } + + /** + * userAgent(xsd:string)?, extensions(Extension)* + * + * @param userAgent + * @return + */ + public static ClientData createClientData(String userAgent) + { + return new ClientData(userAgent, null); + } } |