cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1155003 - /cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSClient.java
Date Mon, 08 Aug 2011 16:13:02 GMT
Author: dkulp
Date: Mon Aug  8 16:13:02 2011
New Revision: 1155003

URL: http://svn.apache.org/viewvc?rev=1155003&view=rev
Log:
Add accessor for Client to allow programatic config of the client

Modified:
    cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSClient.java

Modified: cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSClient.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSClient.java?rev=1155003&r1=1155002&r2=1155003&view=diff
==============================================================================
--- cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSClient.java
(original)
+++ cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/trust/STSClient.java
Mon Aug  8 16:13:02 2011
@@ -398,6 +398,12 @@ public class STSClient implements Config
         this.setPolicyInternal(bus.getExtension(PolicyBuilder.class).getPolicy(newPolicy));
     }
 
+    public Client getClient()  throws BusException, EndpointException {
+        if (client == null) {
+            createClient();
+        }
+        return client;
+    }
 
     private void createClient() throws BusException, EndpointException {
         if (client != null) {



Mime
View raw message