public class WSCUtilities extends Object
| Constructor and Description |
|---|
WSCUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static EndpointReference |
boostrapDiscoveryEPRFromDefaultAS(AuthenticationService.AuthMechanism authMechanism)
Attempts to retrieve a Discovery Service Endpoint Reference from the default
Authentication Service.
|
static EndpointReference |
boostrapDiscoveryEPRFromDefaultAS(AuthenticationService.AuthMechanism authMechanism,
String username,
String password)
Returns a DS EPR by attempting the suggested AuthMechanism using the
username/password supplied and the default Authentication service settings
that are loaded by OpenLibertyBootstrap
|
static BaseServiceClient |
clientForDiscoveryEPR(EndpointReference discoEPR,
DiscoveryService.WSFServiceType serviceType)
This method takes a discovery EndpointReference and a WSFServiceType and returns an instantiated service client.
|
static BaseServiceClient |
clientForDiscoveryEPR(EndpointReference discoEPR,
DiscoveryService.WSFServiceType serviceType,
Konstantz.WSFSecurityMechanism sechMech) |
static List<EndpointReference> |
queryDiscoveryServiceForServiceEPRs(DiscoveryService discoService,
DiscoveryService.WSFServiceType type,
Konstantz.WSFSecurityMechanism mechanism)
Retrieves a list of
EndpointReference objects from the specified
Discovery Service using the supplied parameters. |
static List<EndpointReference> |
queryDiscoveryServiceForServiceEPRs(DiscoveryService discoService,
String[] serviceTypes,
String[] providerIDs,
String[] securityMechIDs)
Retrieves a list of
EndpointReference objects from the specified
Discovery Service using the supplied parameters. |
public static BaseServiceClient clientForDiscoveryEPR(EndpointReference discoEPR, DiscoveryService.WSFServiceType serviceType) throws WSCException
The process is:
discoEPR - the endpoint reference for the discovery service that will be used to discover the specified serviceserviceType - an enumerated reference to a WSF service that the client library supportsWSCExceptionpublic static BaseServiceClient clientForDiscoveryEPR(EndpointReference discoEPR, DiscoveryService.WSFServiceType serviceType, Konstantz.WSFSecurityMechanism sechMech) throws WSCException
WSCExceptionpublic static EndpointReference boostrapDiscoveryEPRFromDefaultAS(AuthenticationService.AuthMechanism authMechanism) throws WSCException
This convenience method assumes that there are values set in OpenLibertyBootstrap for authenticationServiceUrl, authUsername, and authPassword.
authMechanism - WSCExceptionNullPointerException - if authMechanism is nullpublic static EndpointReference boostrapDiscoveryEPRFromDefaultAS(AuthenticationService.AuthMechanism authMechanism, String username, String password) throws WSCException
authMechanism - username - password - WSCExceptionpublic static List<EndpointReference> queryDiscoveryServiceForServiceEPRs(DiscoveryService discoService, DiscoveryService.WSFServiceType type, Konstantz.WSFSecurityMechanism mechanism)
EndpointReference objects from the specified
Discovery Service using the supplied parameters.discoService - type - mechanism - public static List<EndpointReference> queryDiscoveryServiceForServiceEPRs(DiscoveryService discoService, String[] serviceTypes, String[] providerIDs, String[] securityMechIDs)
EndpointReference objects from the specified
Discovery Service using the supplied parameters.discoService - serviceTypes - providerIDs - securityMechIDs - Copyright © 1999–2015. All rights reserved.