public class DiscoveryService extends BaseServiceClient
| Modifier and Type | Class and Description |
|---|---|
static class |
DiscoveryService.WSFServiceType
An enumeration of services currently supported by the client library
|
| Modifier and Type | Field and Description |
|---|---|
static String |
DISCO_QUERY
The urn indicating the default DS Action
|
private static String |
IDWSF_20_AUTHENTICATION_SERVICE_URN
Authentication Service URN
|
private static String |
IDWSF_20_DISCOVERY_SERVICE_URN
Discovery Service URN
|
private static String |
IDWSF_20_ID_SIS_DAP_SERVICE_URN
ID-SIS-DAP Directory Access Protocol Service URN
|
private static String |
IDWSF_20_PEOPLE_SERVICE_URN
People Service URN
|
private static String |
IDWSF_20_PERSONAL_PROFILE_SERVICE_URN
Personal Profile Service URN
|
protected static Logger |
log |
private List<RequestedService> |
requestedServices
stores requested services for discovery
|
| Constructor and Description |
|---|
DiscoveryService(DiscoveryService discoveryService,
EndpointReference initialEndpointReference) |
DiscoveryService(EndpointReference initialEndpointReference)
The discovery service EPR is not necessarily supplied by a Discovery Service,
therefore a constructor with only an EPR is provided.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addARequestedService(RequestedService requestedService)
Allows the ClientLib User to add a requested service to the up-coming request
|
static void |
addProviderIDsToRequestedService(String[] providerIDs,
RequestedService requestedService)
Utility Method to add ProviderID objects to an existing RequestedService
|
static void |
addSecurityMechIDsToRequestedService(String[] securityMechIDs,
RequestedService requestedService)
Utility Method to add SecurityMechID objects to an existing RequestedService
|
static void |
addServiceTypesToRequestedService(String[] serviceTypes,
RequestedService requestedService)
Utility Method to add ServiceType objects to an existing RequestedService
|
static RequestedService |
baseRequestedService()
Creates a base RequestedService, used by the other Factory methods
|
void |
clearRequestedServices() |
static List<EndpointReference> |
eprsFromDiscoResponse(WSFMessage message)
Utility method to extract the EndpointReferences from the WSFMessage response.
|
List<EndpointReference> |
invoke()
This method creates a disco request from the specified EndpointReference generating
a ServiceRequest for each ServiceType specified
|
static RequestedService |
requestedServiceForProviderIDs(String[] providerIDs)
Factory method that creates a RequestedService and adds the specified providerIDs
|
static RequestedService |
requestedServiceForSecurityMechIDs(String[] securityMechIDs)
Factory method that creates a RequestedService and adds the specified SecurityMechIDs
|
static RequestedService |
requestedServiceForServiceTypes(String[] serviceTypes)
Factory method that creates a RequestedService from a list of service types
|
BaseServiceClient |
serviceClientForTypeAndEndpointReference(DiscoveryService.WSFServiceType serviceType,
EndpointReference endpointReference)
Convenience method that returns a Service Client that is supported
and enumerated by the ClientLibrary, from this discovery service
|
static BaseServiceClient |
serviceClientForTypeAndEndpointReference(DiscoveryService discoveryService,
DiscoveryService.WSFServiceType serviceType,
EndpointReference endpointReference)
Convenience method that returns a Service Client that is supported
and enumerated by the ClientLibrary
|
getDiscoveryService, getServiceEndpointReference, getServiceEndpointReferenceStore, isSigningOutgoingMessages, replaceServiceEndpointReference, serviceExplicitlySupportsOption, setDiscoveryService, setServiceEndpointReference, setSigningOutgoingMessagesprotected static Logger log
private static final String IDWSF_20_PERSONAL_PROFILE_SERVICE_URN
NOTE: The Personal Profile Service is based on DST 1.1. For use in this library it was brought up to DST 2.1, which is now a non-conformant version of PP.
There are two URNs in use for PP presently. This library uses the latest one, but has been tested with an older URN. If the older URN is used, then the configuration in the pp-config.xml must be adjusted appropriately for the XML Tooling to work poroperly.
private static final String IDWSF_20_PEOPLE_SERVICE_URN
private static final String IDWSF_20_AUTHENTICATION_SERVICE_URN
private static final String IDWSF_20_DISCOVERY_SERVICE_URN
private static final String IDWSF_20_ID_SIS_DAP_SERVICE_URN
public static final String DISCO_QUERY
private List<RequestedService> requestedServices
public DiscoveryService(EndpointReference initialEndpointReference)
initialEndpointReference - public DiscoveryService(DiscoveryService discoveryService, EndpointReference initialEndpointReference)
public static RequestedService requestedServiceForServiceTypes(String[] serviceTypes)
serviceTypes - public static void addServiceTypesToRequestedService(String[] serviceTypes, RequestedService requestedService)
requestedService - providerIDs - public static RequestedService requestedServiceForProviderIDs(String[] providerIDs)
providerIDs - public static void addProviderIDsToRequestedService(String[] providerIDs, RequestedService requestedService)
requestedService - providerIDs - public static RequestedService requestedServiceForSecurityMechIDs(String[] securityMechIDs)
providerIDs - public static void addSecurityMechIDsToRequestedService(String[] securityMechIDs, RequestedService requestedService)
requestedService - securityMechIDs - public static RequestedService baseRequestedService()
At the moment only Version 2.0 is supported and therefore it is enforced in this method which specifies the 2.0 framework.
public void addARequestedService(RequestedService requestedService)
requestedService - public void clearRequestedServices()
public List<EndpointReference> invoke()
epr - serviceTypes - public static List<EndpointReference> eprsFromDiscoResponse(WSFMessage message)
message - public BaseServiceClient serviceClientForTypeAndEndpointReference(DiscoveryService.WSFServiceType serviceType, EndpointReference endpointReference)
serviceType - endpointReference - public static BaseServiceClient serviceClientForTypeAndEndpointReference(DiscoveryService discoveryService, DiscoveryService.WSFServiceType serviceType, EndpointReference endpointReference)
discoveryService - serviceType - endpointReference - Copyright © 1999–2015. All rights reserved.