Author: apatel
Date: Thu Jun 28 19:18:12 2007 New Revision: 551754 URL: http://svn.apache.org/viewvc?view=rev&rev=551754 Log: Removed unused screen rendering code. Modified: ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisServices.java ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisShipmentServices.java Modified: ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisServices.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisServices.java?view=diff&rev=551754&r1=551753&r2=551754 ============================================================================== --- ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisServices.java (original) +++ ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisServices.java Thu Jun 28 19:18:12 2007 @@ -85,7 +85,6 @@ bodyParameters.put("origRef", context.get("origRefId")); OutputStream out = (OutputStream) context.get("outputStream"); String bodyScreenUri = UtilProperties.getPropertyValue("oagis.properties", "Oagis.Template.ConfirmBod"); - OagisShipmentServices.writeScreenToOutputStream(out, bodyScreenUri, bodyParameters); Writer writer = new OutputStreamWriter(out); ScreenRenderer screens = new ScreenRenderer(writer, bodyParameters, new HtmlScreenRenderer()); try { Modified: ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisShipmentServices.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisShipmentServices.java?view=diff&rev=551754&r1=551753&r2=551754 ============================================================================== --- ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisShipmentServices.java (original) +++ ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisShipmentServices.java Thu Jun 28 19:18:12 2007 @@ -229,45 +229,6 @@ } - public static void writeScreenToOutputStream(OutputStream out, String bodyScreenUri, MapStack parameters){ - - Writer writer = new OutputStreamWriter(out); - ScreenRenderer screens = new ScreenRenderer(writer, parameters, new HtmlScreenRenderer()); - try { - screens.render(bodyScreenUri); - } catch (Exception e) { - Debug.logError(e, "Error rendering [text/xml]: ", module); - } - - } - - - public static Map exportMsgFromScreen(DispatchContext dctx, Map serviceContext) { - - String bodyScreenUri = (String) serviceContext.remove("bodyScreenUri"); - Map bodyParameters = (Map) serviceContext.remove("bodyParameters"); - - MapStack screenContext = MapStack.create(); - Writer bodyWriter = new StringWriter(); - ScreenRenderer screens = new ScreenRenderer(bodyWriter, screenContext, htmlScreenRenderer); - if (bodyParameters != null) { - screens.populateContextForService(dctx, bodyParameters); - screenContext.putAll(bodyParameters); - } - //screenContext.putAll(serviceContext); - //screens.getContext().put("formStringRenderer", foFormRenderer); - try { - screens.render(bodyScreenUri); - } catch (Exception e) { - String errMsg = "Error rendering [text/xml]: " + e.toString(); - Debug.logError(e, errMsg, module); - return ServiceUtil.returnError(errMsg); - } - Map result = ServiceUtil.returnSuccess(); - Debug.logInfo(bodyWriter.toString(), module); - result.put("body", bodyWriter.toString()); - return result; - } public static Map processShipment(DispatchContext ctx, Map context) { LocalDispatcher dispatcher = ctx.getDispatcher(); |
Free forum by Nabble | Edit this page |