You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by ge...@apache.org on 2007/07/19 21:53:50 UTC
svn commit: r557757 - in
/incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-http:
pom.xml src/main/java/org/apache/servicemix/http/BasicAuthCredentials.java
src/main/java/org/apache/servicemix/http/processors/ProviderProcessor.java
Author: gertv
Date: Thu Jul 19 12:53:49 2007
New Revision: 557757
URL: http://svn.apache.org/viewvc?view=rev&rev=557757
Log:
Fix for SM-932: PMD/CheckStyle for servicemix-http
Modified:
incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-http/pom.xml
incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-http/src/main/java/org/apache/servicemix/http/BasicAuthCredentials.java
incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-http/src/main/java/org/apache/servicemix/http/processors/ProviderProcessor.java
Modified: incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-http/pom.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-http/pom.xml?view=diff&rev=557757&r1=557756&r2=557757
==============================================================================
--- incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-http/pom.xml (original)
+++ incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-http/pom.xml Thu Jul 19 12:53:49 2007
@@ -68,8 +68,6 @@
<excludes>
<!-- exclude abstract test cases -->
<exclude>**/Abstract*.*</exclude>
-
- <exclude>**/HttpAddressingTest.*</exclude>
<exclude>**/HttpTxTest.*</exclude>
<exclude>**/HttpSecurityTest.*</exclude>
</excludes>
Modified: incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-http/src/main/java/org/apache/servicemix/http/BasicAuthCredentials.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-http/src/main/java/org/apache/servicemix/http/BasicAuthCredentials.java?view=diff&rev=557757&r1=557756&r2=557757
==============================================================================
--- incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-http/src/main/java/org/apache/servicemix/http/BasicAuthCredentials.java (original)
+++ incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-http/src/main/java/org/apache/servicemix/http/BasicAuthCredentials.java Thu Jul 19 12:53:49 2007
@@ -68,22 +68,22 @@
}
- /**
+ /**
* Applies this authentication to the given method.
*
* @param client the client on which to set the authentication information
* @param exchange the message exchange to be used for evaluating the expression
* @param message the normalized message to be used for evaluating the expression
- * @throws MessagingException if the correct value for username/password cannot be determined when using an expression
+ * @throws MessagingException if the correct value for username/password cannot be determined when using an expression
*/
public void applyCredentials(HttpClient client, MessageExchange exchange, NormalizedMessage message) throws MessagingException {
AuthScope scope = new AuthScope(AuthScope.ANY_HOST, AuthScope.ANY_PORT);
Credentials credentials =
- new UsernamePasswordCredentials((String) this.username.evaluate(exchange, message),
- (String) this.password.evaluate(exchange, message));
+ new UsernamePasswordCredentials((String) this.username.evaluate(exchange, message),
+ (String) this.password.evaluate(exchange, message));
client.getState().setCredentials(scope, credentials);
}
-
+
/**
* Applies this authentication to the given method.
*
@@ -95,8 +95,8 @@
public void applyProxyCredentials(HttpClient client, MessageExchange exchange, NormalizedMessage message) throws MessagingException {
AuthScope scope = new AuthScope(AuthScope.ANY_HOST, AuthScope.ANY_PORT);
Credentials credentials =
- new UsernamePasswordCredentials((String) this.username.evaluate(exchange, message),
- (String) this.password.evaluate(exchange, message));
+ new UsernamePasswordCredentials((String) this.username.evaluate(exchange, message),
+ (String) this.password.evaluate(exchange, message));
client.getState().setProxyCredentials(scope, credentials);
}
Modified: incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-http/src/main/java/org/apache/servicemix/http/processors/ProviderProcessor.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-http/src/main/java/org/apache/servicemix/http/processors/ProviderProcessor.java?view=diff&rev=557757&r1=557756&r2=557757
==============================================================================
--- incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-http/src/main/java/org/apache/servicemix/http/processors/ProviderProcessor.java (original)
+++ incubator/servicemix/trunk/deployables/bindingcomponents/servicemix-http/src/main/java/org/apache/servicemix/http/processors/ProviderProcessor.java Thu Jul 19 12:53:49 2007
@@ -256,7 +256,8 @@
return close;
}
- private HostConfiguration getHostConfiguration(String locationURI, MessageExchange exchange, NormalizedMessage message) throws Exception {
+ private HostConfiguration getHostConfiguration(String locationURI, MessageExchange exchange, NormalizedMessage message)
+ throws Exception {
HostConfiguration host;
URI uri = new URI(locationURI, false);
if (uri.getScheme().equals("https")) {