/** * Get the service URI. * @param serviceName The service name. * @param isSecure true if the secure service URL is required false if the normal service URL is required * @return The service URI or null if not registered. */ public String getServiceURI(final String serviceName, boolean isSecure) { if (isSecure) { return getSecureServiceURI(serviceName); } else { return getServiceURI(serviceName); } } }
/** * Get the service URI. * @param serviceName The service name. * @param isSecure true if the secure service URL is required false if the normal service URL is required * @return The service URI or null if not registered. */ public String getServiceURI(final String serviceName, boolean isSecure) { if (isSecure) { return getSecureServiceURI(serviceName); } else { return getServiceURI(serviceName); } } }
/** * Get the service URI. * @param serviceName The service name. * @param isSecure true if the secure service URL is required false if the normal service URL is required * @return The service URI or null if not registered. */ public String getServiceURI(final String serviceName, boolean isSecure) { if (isSecure) { return getSecureServiceURI(serviceName); } else { return getServiceURI(serviceName); } } }
/** * Get the service URI. * @param serviceName The service name. * @param isSecure true if the secure service URL is required false if the normal service URL is required * @return The service URI or null if not registered. */ public String getServiceURI(final String serviceName, boolean isSecure) { if (isSecure) { return getSecureServiceURI(serviceName); } else { return getServiceURI(serviceName); } } }
private static MAP getRegistrationPortMap(Map<String, Object> requestContext) { final WSCEnvironmentBean wscEnvironmentBean = XTSPropertyManager.getWSCEnvironmentBean(); MAP map; if (WSCEnvironmentBean.SECURE_ASYNC_REQUEST.equals(wscEnvironmentBean.getUseAsynchronousRequest())) { String responseService = PrivilegedServiceRegistryFactory.getInstance().getServiceRegistry() .getSecureServiceURI(CoordinationConstants.REGISTRATION_RESPONSE_SERVICE_NAME); String faultService = PrivilegedServiceRegistryFactory.getInstance().getServiceRegistry() .getSecureServiceURI(CoordinationConstants.COORDINATION_SOAP_FAULT_SERVICE_NAME); WSCLogger.logger.tracev("WSCOORClient Using secure endpoints {0} {1}", responseService, faultService); map = AddressingHelper.outboundMap(requestContext, responseService, faultService); } else if (WSCEnvironmentBean.PLAIN_ASYNC_REQUEST.equals(wscEnvironmentBean.getUseAsynchronousRequest())) { String responseService = PrivilegedServiceRegistryFactory.getInstance().getServiceRegistry() .getServiceURI(CoordinationConstants.REGISTRATION_RESPONSE_SERVICE_NAME); String faultService = PrivilegedServiceRegistryFactory.getInstance().getServiceRegistry() .getServiceURI(CoordinationConstants.COORDINATION_SOAP_FAULT_SERVICE_NAME); WSCLogger.logger.tracev("WSCOORClient Using plain endpoints {0} {1}", responseService, faultService); map = AddressingHelper.outboundMap(requestContext, responseService, faultService); } else { WSCLogger.logger.tracev("WSCOORClient Using anonymous endpoints"); map = AddressingHelper.outboundMap(requestContext); } return map; } }