From jbossws-commits at lists.jboss.org Thu Mar 27 08:11:51 2014 Content-Type: multipart/mixed; boundary="===============6918545302691111260==" MIME-Version: 1.0 From: jbossws-commits at lists.jboss.org To: jbossws-commits at lists.jboss.org Subject: [jbossws-commits] JBossWS SVN: r18546 - in stack/cxf/trunk: modules/jaspi/src/main/java/org/jboss/wsf/stack/cxf/jaspi/client/module and 6 other directories. Date: Thu, 27 Mar 2014 08:11:51 -0400 Message-ID: <201403271211.s2RCBpUK031110@svn01.web.mwc.hst.phx2.redhat.com> --===============6918545302691111260== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: psakar Date: 2014-03-27 08:11:50 -0400 (Thu, 27 Mar 2014) New Revision: 18546 Modified: stack/cxf/trunk/ stack/cxf/trunk/modules/jaspi/src/main/java/org/jboss/wsf/stack/cxf/jasp= i/client/module/SOAPClientAuthModule.java stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/con= figuration/ServerBeanCustomizer.java stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/dep= loyment/aspect/BusDeploymentAspect.java stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test= /ws/jaxws/samples/wsse/policy/trust/WSTrustActAsTestCase.java stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test= /ws/jaxws/samples/wsse/policy/trust/WSTrustOnBehalfOfTestCase.java stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test= /ws/jaxws/samples/wsse/policy/trust/actas/ActAsOutInterceptor.java stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/t= est/ws/jaxws/handlerauth/SecureEndpointImpl.java stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/t= est/ws/jaxws/handlerauth/SecureEndpointImpl2.java stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/t= est/ws/jaxws/handlerauth/SecureEndpointImpl3.java stack/cxf/trunk/modules/testsuite/test-utils/src/main/java/org/jboss/wsf= /test/AppclientHelper.java Log: Removed unused import stmts and fixed warnings Property changes on: stack/cxf/trunk ___________________________________________________________________ Modified: svn:ignore - ant.properties clipboard.* target .classpath .project .settings profiles.xml target.properties transaction.log + ant.properties clipboard.* target .classpath .project .settings profiles.xml target.properties transaction.log .git .gitignore Modified: stack/cxf/trunk/modules/jaspi/src/main/java/org/jboss/wsf/stack/c= xf/jaspi/client/module/SOAPClientAuthModule.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- stack/cxf/trunk/modules/jaspi/src/main/java/org/jboss/wsf/stack/cxf/jas= pi/client/module/SOAPClientAuthModule.java 2014-03-27 11:41:32 UTC (rev 185= 45) +++ stack/cxf/trunk/modules/jaspi/src/main/java/org/jboss/wsf/stack/cxf/jas= pi/client/module/SOAPClientAuthModule.java 2014-03-27 12:11:50 UTC (rev 185= 46) @@ -37,8 +37,8 @@ import org.jboss.security.SimplePrincipal; = /** - * SOAPClientAuthModule = - * TODO: Investigate what we can do with this module = + * SOAPClientAuthModule + * TODO: Investigate what we can do with this module * @author Jim Ma */ public class SOAPClientAuthModule implements ClientAuthModule @@ -62,7 +62,7 @@ private CallbackHandler handler =3D null; = @SuppressWarnings( - {"rawtypes"}) + {"rawtypes", "unused"}) private Map options =3D null; = public SOAPClientAuthModule() @@ -87,12 +87,10 @@ this.options =3D options; } = - @SuppressWarnings( - {"unchecked"}) public AuthStatus secureRequest(MessageInfo messageInfo, Subject source= ) throws AuthException { log =3D "secureRequest"; - SOAPMessage soapMessage =3D (SOAPMessage) messageInfo.getRequestMess= age(); + messageInfo.getRequestMessage(); return AuthStatus.SUCCESS; } = Modified: stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/= cxf/configuration/ServerBeanCustomizer.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/co= nfiguration/ServerBeanCustomizer.java 2014-03-27 11:41:32 UTC (rev 18545) +++ stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/co= nfiguration/ServerBeanCustomizer.java 2014-03-27 12:11:50 UTC (rev 18546) @@ -29,8 +29,6 @@ import org.jboss.ws.api.annotation.EndpointConfig; import org.jboss.ws.api.util.ServiceLoader; import org.jboss.ws.common.management.AbstractServerConfig; -import org.jboss.wsf.spi.SPIProvider; -import org.jboss.wsf.spi.WSFException; import org.jboss.wsf.spi.classloading.ClassLoaderProvider; import org.jboss.wsf.spi.deployment.Endpoint; import org.jboss.wsf.spi.deployment.UnifiedVirtualFile; @@ -47,7 +45,7 @@ import org.jboss.wsf.stack.cxf.security.authentication.AutenticationMgrSub= jectCreatingInterceptor; = /** - * = + * * @author alessio.soldano(a)jboss.com * @since 16-Jun-2010 */ @@ -56,13 +54,13 @@ private WSDLFilePublisher wsdlPublisher; = private List depEndpoints; - = + private UnifiedVirtualFile deploymentRoot; - = + private String epConfigName; - = + private String epConfigFile; - = + @Override public void customize(Object beanInstance) { @@ -107,11 +105,11 @@ = // setup our invoker for http endpoints if invoker is not configu= red in jbossws-cxf.xml DD boolean isHttpEndpoint =3D endpoint.getAddress() !=3D null && end= point.getAddress().substring(0, 5).toLowerCase().startsWith("http"); - if ((endpoint.getInvoker() =3D=3D null) && isHttpEndpoint) = + if ((endpoint.getInvoker() =3D=3D null) && isHttpEndpoint) { endpoint.setInvoker(new JBossWSInvoker()); } - = + // ** Endpoint configuration setup ** // 1) default values String configName =3D org.jboss.wsf.spi.metadata.config.EndpointC= onfig.STANDARD_ENDPOINT_CONFIG; @@ -157,7 +155,7 @@ { UnifiedVirtualFile vf =3D deploymentRoot.findChild(configFi= le); ConfigRoot config =3D ConfigMetaDataParser.parse(vf.toURL()= ); - endpoint.setEndpointConfig(config.getEndpointConfigByName(c= onfigName)); = + endpoint.setEndpointConfig(config.getEndpointConfigByName(c= onfigName)); } catch (IOException e) { @@ -180,14 +178,14 @@ } } } - = + private static ServerConfig getServerConfig() { if(System.getSecurityManager() =3D=3D null) { return AbstractServerConfig.getServerIntegrationServerConfig(); } return AccessController.doPrivileged(AbstractServerConfig.GET_SERVER= _INTEGRATION_SERVER_CONFIG); } - = + public void setDeploymentRoot(UnifiedVirtualFile deploymentRoot) { this.deploymentRoot =3D deploymentRoot; @@ -202,7 +200,7 @@ { this.depEndpoints =3D endpoints; } - = + public void setEpConfigName(String epConfigName) { this.epConfigName =3D epConfigName; @@ -212,7 +210,7 @@ { this.epConfigFile =3D epConfigFile; } - = - = = + + } Modified: stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/= cxf/deployment/aspect/BusDeploymentAspect.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/de= ployment/aspect/BusDeploymentAspect.java 2014-03-27 11:41:32 UTC (rev 18545) +++ stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/de= ployment/aspect/BusDeploymentAspect.java 2014-03-27 12:11:50 UTC (rev 18546) @@ -27,7 +27,6 @@ = import javax.xml.ws.spi.Provider; = -import org.apache.cxf.Bus; import org.apache.cxf.BusFactory; import org.apache.cxf.configuration.Configurer; import org.jboss.ws.api.binding.BindingCustomization; @@ -56,7 +55,7 @@ */ public final class BusDeploymentAspect extends AbstractDeploymentAspect { - = + @Override public void start(final Deployment dep) { @@ -68,7 +67,7 @@ } startDeploymentBus(dep); } - = + @Override public void stop(final Deployment dep) { @@ -118,7 +117,7 @@ DDBeans metadata =3D dep.getAttachment(DDBeans.class); holder =3D new NonSpringBusHolder(metadata); } - = + String epConfigName =3D null; String epConfigFile =3D null; JSEArchiveMetaData jsemd =3D dep.getAttachment(JSEArchiveMetaData= .class); @@ -131,7 +130,7 @@ epConfigName =3D wsmd.getConfigName(); epConfigFile =3D wsmd.getConfigFile(); } - = + Configurer configurer =3D holder.createServerConfigurer(dep.getAt= tachment(BindingCustomization.class), new WSDLFilePublisher(aDep), dep.getService().getEndpoints(= ), aDep.getRootFile(), epConfigName, epConfigFile); holder.configure(resolver, configurer, wsmd, dep); @@ -162,5 +161,5 @@ throw new RuntimeException(e); } } - = + } Modified: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jbo= ss/test/ws/jaxws/samples/wsse/policy/trust/WSTrustActAsTestCase.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/tes= t/ws/jaxws/samples/wsse/policy/trust/WSTrustActAsTestCase.java 2014-03-27 1= 1:41:32 UTC (rev 18545) +++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/tes= t/ws/jaxws/samples/wsse/policy/trust/WSTrustActAsTestCase.java 2014-03-27 1= 2:11:50 UTC (rev 18546) @@ -41,7 +41,6 @@ public class WSTrustActAsTestCase extends JBossWSTest { private final String serviceURL =3D "http://" + getServerHost() + ":808= 0/jaxws-samples-wsse-policy-trust-actas/ActAsService"; - private final String stsURL =3D "http://" + getServerHost() + ":8080/ja= xws-samples-wsse-policy-trust-sts/SecurityTokenService"; = public static Test suite() { Modified: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jbo= ss/test/ws/jaxws/samples/wsse/policy/trust/WSTrustOnBehalfOfTestCase.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/tes= t/ws/jaxws/samples/wsse/policy/trust/WSTrustOnBehalfOfTestCase.java 2014-03= -27 11:41:32 UTC (rev 18545) +++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/tes= t/ws/jaxws/samples/wsse/policy/trust/WSTrustOnBehalfOfTestCase.java 2014-03= -27 12:11:50 UTC (rev 18546) @@ -41,7 +41,6 @@ public class WSTrustOnBehalfOfTestCase extends JBossWSTest { private final String serviceURL =3D "http://" + getServerHost() + ":808= 0/jaxws-samples-wsse-policy-trust-onbehalfof/OnBehalfOfService"; - private final String stsURL =3D "http://" + getServerHost() + ":8080/ja= xws-samples-wsse-policy-trust-sts/SecurityTokenService"; = public static Test suite() { Modified: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jbo= ss/test/ws/jaxws/samples/wsse/policy/trust/actas/ActAsOutInterceptor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/tes= t/ws/jaxws/samples/wsse/policy/trust/actas/ActAsOutInterceptor.java 2014-03= -27 11:41:32 UTC (rev 18545) +++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/tes= t/ws/jaxws/samples/wsse/policy/trust/actas/ActAsOutInterceptor.java 2014-03= -27 12:11:50 UTC (rev 18546) @@ -64,7 +64,7 @@ dumpMsgInfo(key, mInfo); = } else if (o instanceof ArrayList) { - for (Object obj: (ArrayList)o){ + for (Object obj: (ArrayList)o){ System.out.println("##ACTAS arrayItem: " + obj.getClass().g= etCanonicalName()); } } Modified: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/= jboss/test/ws/jaxws/handlerauth/SecureEndpointImpl.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/= test/ws/jaxws/handlerauth/SecureEndpointImpl.java 2014-03-27 11:41:32 UTC (= rev 18545) +++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/= test/ws/jaxws/handlerauth/SecureEndpointImpl.java 2014-03-27 12:11:50 UTC (= rev 18546) @@ -21,35 +21,20 @@ */ package org.jboss.test.ws.jaxws.handlerauth; = -import javax.jws.Oneway; -import javax.jws.WebService; -import javax.ejb.Stateless; +import javax.annotation.Resource; import javax.annotation.security.DeclareRoles; import javax.annotation.security.DenyAll; import javax.annotation.security.PermitAll; import javax.annotation.security.RolesAllowed; - -import javax.jws.WebMethod; - -import java.util.Enumeration; -import javax.annotation.Resource; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpSession; -import javax.xml.ws.WebServiceContext; -import javax.xml.ws.handler.MessageContext; -import javax.xml.ws.handler.soap.SOAPMessageContext; -import javax.xml.ws.handler.soap.SOAPHandler; +import javax.ejb.Stateless; import javax.jws.HandlerChain; -import javax.xml.soap.SOAPMessage; -import javax.annotation.PostConstruct; +import javax.jws.Oneway; +import javax.jws.WebService; +import javax.xml.ws.WebServiceContext; = -import java.io.PrintStream; -import java.util.Map; -import java.util.Set; - -import org.jboss.ws.api.annotation.WebContext; import org.jboss.ejb3.annotation.SecurityDomain; import org.jboss.logging.Logger; +import org.jboss.ws.api.annotation.WebContext; = @WebService(name =3D "SecureEndpoint", targetNamespace =3D "http://ws/") @HandlerChain(file =3D "handlers.xml") @@ -61,7 +46,7 @@ public class SecureEndpointImpl implements SecureEndpoint { private Logger log =3D Logger.getLogger(this.getClass()); - = + @Resource WebServiceContext context; = @@ -88,23 +73,23 @@ return "Mr. " + name + ", you authenticated as \'" + principalNam= e + "\'"; } } - = + public int getHandlerCounter() { return SimpleHandler.counter.get(); } - = - = + + @Oneway @RolesAllowed("friend") public void ping() { //NOOP } - = + @DenyAll public void deniedMethod() { //NOOP } - = + @PermitAll public String echo(String s) { return s; Modified: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/= jboss/test/ws/jaxws/handlerauth/SecureEndpointImpl2.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/= test/ws/jaxws/handlerauth/SecureEndpointImpl2.java 2014-03-27 11:41:32 UTC = (rev 18545) +++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/= test/ws/jaxws/handlerauth/SecureEndpointImpl2.java 2014-03-27 12:11:50 UTC = (rev 18546) @@ -21,35 +21,20 @@ */ package org.jboss.test.ws.jaxws.handlerauth; = -import javax.jws.Oneway; -import javax.jws.WebService; -import javax.ejb.Stateless; +import javax.annotation.Resource; import javax.annotation.security.DeclareRoles; import javax.annotation.security.DenyAll; import javax.annotation.security.PermitAll; import javax.annotation.security.RolesAllowed; - -import javax.jws.WebMethod; - -import java.util.Enumeration; -import javax.annotation.Resource; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpSession; -import javax.xml.ws.WebServiceContext; -import javax.xml.ws.handler.MessageContext; -import javax.xml.ws.handler.soap.SOAPMessageContext; -import javax.xml.ws.handler.soap.SOAPHandler; +import javax.ejb.Stateless; import javax.jws.HandlerChain; -import javax.xml.soap.SOAPMessage; -import javax.annotation.PostConstruct; +import javax.jws.Oneway; +import javax.jws.WebService; +import javax.xml.ws.WebServiceContext; = -import java.io.PrintStream; -import java.util.Map; -import java.util.Set; - -import org.jboss.ws.api.annotation.WebContext; import org.jboss.ejb3.annotation.SecurityDomain; import org.jboss.logging.Logger; +import org.jboss.ws.api.annotation.WebContext; = @WebService(name =3D "SecureEndpoint2", targetNamespace =3D "http://ws/") @HandlerChain(file =3D "handlers2.xml") @@ -61,7 +46,7 @@ public class SecureEndpointImpl2 implements SecureEndpoint { private Logger log =3D Logger.getLogger(this.getClass()); - = + @Resource WebServiceContext context; = @@ -88,23 +73,23 @@ return "Mr. " + name + ", you authenticated as \'" + principalNam= e + "\'"; } } - = + public int getHandlerCounter() { return LogicalSimpleHandler.counter.get(); } - = - = + + @Oneway @RolesAllowed("friend") public void ping() { //NOOP } - = + @DenyAll public void deniedMethod() { //NOOP } - = + @PermitAll public String echo(String s) { return s; Modified: stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/= jboss/test/ws/jaxws/handlerauth/SecureEndpointImpl3.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/= test/ws/jaxws/handlerauth/SecureEndpointImpl3.java 2014-03-27 11:41:32 UTC = (rev 18545) +++ stack/cxf/trunk/modules/testsuite/shared-tests/src/test/java/org/jboss/= test/ws/jaxws/handlerauth/SecureEndpointImpl3.java 2014-03-27 12:11:50 UTC = (rev 18546) @@ -21,35 +21,20 @@ */ package org.jboss.test.ws.jaxws.handlerauth; = -import javax.jws.Oneway; -import javax.jws.WebService; -import javax.ejb.Stateless; +import javax.annotation.Resource; import javax.annotation.security.DeclareRoles; import javax.annotation.security.DenyAll; import javax.annotation.security.PermitAll; import javax.annotation.security.RolesAllowed; - -import javax.jws.WebMethod; - -import java.util.Enumeration; -import javax.annotation.Resource; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpSession; -import javax.xml.ws.WebServiceContext; -import javax.xml.ws.handler.MessageContext; -import javax.xml.ws.handler.soap.SOAPMessageContext; -import javax.xml.ws.handler.soap.SOAPHandler; +import javax.ejb.Stateless; import javax.jws.HandlerChain; -import javax.xml.soap.SOAPMessage; -import javax.annotation.PostConstruct; +import javax.jws.Oneway; +import javax.jws.WebService; +import javax.xml.ws.WebServiceContext; = -import java.io.PrintStream; -import java.util.Map; -import java.util.Set; - -import org.jboss.ws.api.annotation.WebContext; import org.jboss.ejb3.annotation.SecurityDomain; import org.jboss.logging.Logger; +import org.jboss.ws.api.annotation.WebContext; = @WebService(name =3D "SecureEndpoint3", targetNamespace =3D "http://ws/") @HandlerChain(file =3D "handlers.xml") @@ -61,7 +46,7 @@ public class SecureEndpointImpl3 implements SecureEndpoint { private Logger log =3D Logger.getLogger(this.getClass()); - = + @Resource WebServiceContext context; = @@ -88,23 +73,23 @@ return "Mr. " + name + ", you authenticated as \'" + principalNam= e + "\'"; } } - = + public int getHandlerCounter() { return SimpleHandler.counter.get(); } - = - = + + @Oneway @RolesAllowed("friend") public void ping() { //NOOP } - = + @DenyAll public void deniedMethod() { //NOOP } - = + @PermitAll public String echo(String s) { return s; Modified: stack/cxf/trunk/modules/testsuite/test-utils/src/main/java/org/jb= oss/wsf/test/AppclientHelper.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- stack/cxf/trunk/modules/testsuite/test-utils/src/main/java/org/jboss/ws= f/test/AppclientHelper.java 2014-03-27 11:41:32 UTC (rev 18545) +++ stack/cxf/trunk/modules/testsuite/test-utils/src/main/java/org/jboss/ws= f/test/AppclientHelper.java 2014-03-27 12:11:50 UTC (rev 18546) @@ -58,7 +58,7 @@ private static Map appclients =3D Collections= .synchronizedMap(new HashMap(2)); private static ExecutorService executors =3D Executors.newCachedThreadP= ool(AppclientDaemonFactory.INSTANCE); private static String appclientOutputDir; - = + private static class AppclientProcess { public Process process; public CopyJob outTask; @@ -66,7 +66,7 @@ public OutputStream output; public OutputStream log; } - = + private AppclientHelper() { // forbidden instantiation @@ -75,7 +75,7 @@ /** * Triggers appclient deployment and returns the corresponding Process * Please note the provided output stream (if any) is not automatically= closed. - * = + * * @param archive * @param appclientOS * @param appclientArgs @@ -149,15 +149,16 @@ args.add(appclientArg); } } - = + //note on output streams closing: we're not caring about closing = any here as it's quite a complex thing due to the TeeOutputStream nesting; //we're however still safe, given the ap.output is a ByteArrayOut= putStream (whose .close() does nothing), ap.log is explicitly closed at //undeploy and closing appclientOS is a caller responsibility. - = + ap.log =3D new FileOutputStream(new File(getAppclientOutputDir(),= appclientShortName + ".log-" + System.currentTimeMillis())); + @SuppressWarnings("resource") final OutputStream logOutputStreams =3D (appclientOS =3D=3D null)= ? ap.log : new TeeOutputStream(ap.log, appclientOS); printLogTrailer(logOutputStreams, appclientFullName); - = + final ProcessBuilder pb =3D new ProcessBuilder().command(args); // always propagate IPv6 related properties final StringBuilder javaOptsValue =3D new StringBuilder(); @@ -179,7 +180,7 @@ throw e; } } - = + private static void printLogTrailer(OutputStream logOutputStreams, Stri= ng appclientFullName) { final PrintWriter pw =3D new PrintWriter(logOutputStreams); pw.write("Starting appclient process: " + appclientFullName + "...\n= "); @@ -188,7 +189,7 @@ = private static String undoIPv6Brackets(final String s) { - return s.startsWith("[") ? s.substring(1, s.length() - 1) : s; = + return s.startsWith("[") ? s.substring(1, s.length() - 1) : s; } = private static void shutdownAppclient(final String archive, final Outpu= tStream os) throws IOException, InterruptedException @@ -214,7 +215,7 @@ int countOfAttempts =3D 0; final int maxCountOfAttempts =3D TIMEOUT * 2; // max wait time: defa= ult 2 minutes while (!os.toString().contains(patternToMatch)) - { = + { Thread.sleep(500); if (countOfAttempts++ =3D=3D maxCountOfAttempts) { @@ -223,7 +224,7 @@ } return true; } - = + private static String getKillFileName(final String archive) { final int sharpIndex =3D archive.indexOf('#'); @@ -250,7 +251,7 @@ } return appclientOutputDir; } - = + private static String getAppclientFullName(final String archive) { final int sharpIndex =3D archive.indexOf('#'); @@ -269,7 +270,7 @@ final int sharpIndex =3D archive.indexOf('#'); return archive.substring(0, sharpIndex); } - = + // [JBPAPP-10027] appclient threads are always daemons (to don't block = JVM shutdown) private static class AppclientDaemonFactory implements ThreadFactory { static final AppclientDaemonFactory INSTANCE =3D new AppclientDaemo= nFactory(); @@ -289,5 +290,5 @@ return t; } } - = + } --===============6918545302691111260==--