[Yanel-commits] rev 41658 -
public/yanel/trunk/src/contributions/resources/resource-creator/src/java/org/wyona/yanel/impl/resources
michi at wyona.com
michi at wyona.com
Fri Feb 20 11:13:39 CET 2009
Author: michi
Date: 2009-02-20 11:13:39 +0100 (Fri, 20 Feb 2009)
New Revision: 41658
Modified:
public/yanel/trunk/src/contributions/resources/resource-creator/src/java/org/wyona/yanel/impl/resources/ResourceCreatorResource.java
Log:
make getScreen method accessible by derived classes
Modified: public/yanel/trunk/src/contributions/resources/resource-creator/src/java/org/wyona/yanel/impl/resources/ResourceCreatorResource.java
===================================================================
--- public/yanel/trunk/src/contributions/resources/resource-creator/src/java/org/wyona/yanel/impl/resources/ResourceCreatorResource.java 2009-02-20 10:09:03 UTC (rev 41657)
+++ public/yanel/trunk/src/contributions/resources/resource-creator/src/java/org/wyona/yanel/impl/resources/ResourceCreatorResource.java 2009-02-20 10:13:39 UTC (rev 41658)
@@ -176,9 +176,9 @@
}
/**
- * Flow
+ * Generate XHTML screen
*/
- private String getScreen() {
+ protected String getScreen() {
StringBuffer sb = new StringBuffer("<?xml version=\"1.0\"?>");
sb.append("<html xmlns=\"http://www.w3.org/1999/xhtml\">");
sb.append("<head><title>create resource</title>");
@@ -191,7 +191,7 @@
sb.append("</head>");
sb.append("<body>");
- HttpServletRequest request = getRequest();
+ HttpServletRequest request = getEnvironment().getRequest();
Enumeration parameters = request.getParameterNames();
if (!parameters.hasMoreElements()) {
getSelectResourceTypeScreen(sb);
@@ -675,7 +675,7 @@
node = sitetree.getNode(getRealm(), "/");
}
- String rtps = getRequest().getParameter("resource-type");
+ String rtps = getEnvironment().getRequest().getParameter("resource-type");
String resNamespace = rtps.substring(0, rtps.indexOf("::"));
String resName = rtps.substring(rtps.indexOf("::") + 2);
More information about the Yanel-commits
mailing list