diff options
author | Christof Rabensteiner <christof.rabensteiner@iaik.tugraz.at> | 2019-10-30 16:06:12 +0100 |
---|---|---|
committer | Christof Rabensteiner <christof.rabensteiner@iaik.tugraz.at> | 2019-10-30 16:06:12 +0100 |
commit | c7551ed1dbf25fd786500a1516ddec9ec12dcf84 (patch) | |
tree | 8546071ba6b009247ec5d9a2098285602647e659 /src/main/java/at/gv/egiz/moazs/client | |
parent | fca03ea334be5eb34e919a5cc7ca8bc25d79a564 (diff) | |
download | moa-zs-c7551ed1dbf25fd786500a1516ddec9ec12dcf84.tar.gz moa-zs-c7551ed1dbf25fd786500a1516ddec9ec12dcf84.tar.bz2 moa-zs-c7551ed1dbf25fd786500a1516ddec9ec12dcf84.zip |
Refactor: Rename ClientFactory.create Interface
- Reason: Consistency
Diffstat (limited to 'src/main/java/at/gv/egiz/moazs/client')
-rw-r--r-- | src/main/java/at/gv/egiz/moazs/client/ClientFactory.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/at/gv/egiz/moazs/client/ClientFactory.java b/src/main/java/at/gv/egiz/moazs/client/ClientFactory.java index a14e693..c294aa3 100644 --- a/src/main/java/at/gv/egiz/moazs/client/ClientFactory.java +++ b/src/main/java/at/gv/egiz/moazs/client/ClientFactory.java @@ -84,8 +84,8 @@ public class ClientFactory { * @param params for the client, such as service url and ssl parameters. * @return the client */ - public <T> T create(ClientType params, Class<T> clazz) { - return create(params, clazz, true); + public <T> T createSOAP12(ClientType params, Class<T> clazz) { + return createSOAPClient(params, clazz, true); } /** @@ -94,12 +94,12 @@ public class ClientFactory { * @param params for the client, such as service url and ssl parameters. * @return the client */ - public <T> T createSoap11(ClientType params, Class<T> clazz) { - return create(params, clazz, false); + public <T> T createSOAP11(ClientType params, Class<T> clazz) { + return createSOAPClient(params, clazz, false); } - private <T> T create(ClientType params, Class<T> clazz, boolean isSoap12) { + private <T> T createSOAPClient(ClientType params, Class<T> clazz, boolean isSoap12) { log.info("Create client for service {}", params.getURL()); |