Author: alessio.soldano(a)jboss.com
Date: 2010-03-16 12:35:45 -0400 (Tue, 16 Mar 2010)
New Revision: 11791
Modified:
stack/metro/trunk/modules/client/src/main/java/org/jboss/wsf/stack/metro/tools/MetroConsumerImpl.java
Log:
[JBWS-2793] WSConsume support for implicit header
Modified:
stack/metro/trunk/modules/client/src/main/java/org/jboss/wsf/stack/metro/tools/MetroConsumerImpl.java
===================================================================
---
stack/metro/trunk/modules/client/src/main/java/org/jboss/wsf/stack/metro/tools/MetroConsumerImpl.java 2010-03-16
16:35:24 UTC (rev 11790)
+++
stack/metro/trunk/modules/client/src/main/java/org/jboss/wsf/stack/metro/tools/MetroConsumerImpl.java 2010-03-16
16:35:45 UTC (rev 11791)
@@ -49,6 +49,7 @@
private PrintStream messageStream = null;
private String wsdlLocation = null;
private List<String> additionalCompilerClassPath = new
ArrayList<String>();
+ private boolean additionalHeaders = false;
private String target = "2.0";
private boolean nocompile;
@@ -100,9 +101,16 @@
this.wsdlLocation = wsdlLocation;
}
+ @Override
public void setAdditionalCompilerClassPath(List<String>
additionalCompilerClassPath) {
this.additionalCompilerClassPath = additionalCompilerClassPath;
}
+
+ @Override
+ public void setAdditionalHeaders(boolean additionalHeaders)
+ {
+ this.additionalHeaders = additionalHeaders;
+ }
@Override
public void setTarget(String target) {
@@ -135,6 +143,11 @@
{
args.add("-extension");
}
+
+ if (additionalHeaders)
+ {
+ args.add("-XadditionalHeaders");
+ }
if (nocompile)
{