Author: keith
Date: Sat Jan 19 00:16:15 2008
New Revision: 12503
Log:
Fixing Mashup-545
Modified:
trunk/mashup/java/modules/core/src/org/wso2/mashup/requestprocessor/StubProcessor.java
Modified:
trunk/mashup/java/modules/core/src/org/wso2/mashup/requestprocessor/StubProcessor.java
==============================================================================
---
trunk/mashup/java/modules/core/src/org/wso2/mashup/requestprocessor/StubProcessor.java
(original)
+++
trunk/mashup/java/modules/core/src/org/wso2/mashup/requestprocessor/StubProcessor.java
Sat Jan 19 00:16:15 2008
@@ -126,6 +126,13 @@
contentType = contentTypeParameter;
}
response.setContentType(contentType + "; charset=utf-8");
+
+ // Handling the localhost parameter. If set to tru the stub
will use localhost instead of the IP.
+ // Needed when stubs are needed fir inclusion in a mashup.
+ String localhostParameter = request.getParameter("localhost");
+ if ("true".equals(localhostParameter)) {
+ transformer.setParameter("localhost-endpoints", "true");
+ }
transformer.transform(xmlSource, result);
} else {
response.setContentType("text/html");
_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev