Author: asoldano
Date: 2014-10-23 13:04:10 -0400 (Thu, 23 Oct 2014)
New Revision: 19027
Modified:
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/configuration/ServerBeanCustomizer.java
Log:
Specify locale when using toLowerCase
Modified:
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/configuration/ServerBeanCustomizer.java
===================================================================
---
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/configuration/ServerBeanCustomizer.java 2014-10-22
14:18:48 UTC (rev 19026)
+++
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/configuration/ServerBeanCustomizer.java 2014-10-23
17:04:10 UTC (rev 19027)
@@ -25,6 +25,7 @@
import java.net.URL;
import java.security.AccessController;
import java.util.List;
+import java.util.Locale;
import org.apache.cxf.frontend.ServerFactoryBean;
import org.apache.cxf.transport.http.DestinationRegistry;
@@ -115,7 +116,7 @@
Object implementor = endpoint.getImplementor();
// setup our invoker for http endpoints if invoker is not configured in
jbossws-cxf.xml DD
- boolean isHttpEndpoint = endpoint.getAddress() != null &&
endpoint.getAddress().substring(0, 5).toLowerCase().startsWith("http");
+ boolean isHttpEndpoint = endpoint.getAddress() != null &&
endpoint.getAddress().substring(0,
5).toLowerCase(Locale.ENGLISH).startsWith("http");
if ((endpoint.getInvoker() == null) && isHttpEndpoint)
{
endpoint.setInvoker(new JBossWSInvoker());
Show replies by date