|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openliberty.wsc.BaseServiceClient
org.openliberty.wsc.DiscoveryService
public class DiscoveryService
This class bootstraps into the WSF environment using an AuthenticationService to retrieve a Discovery Service Endpoint Reference, utilizing SASL
| Nested Class Summary | |
|---|---|
static class |
DiscoveryService.WSFServiceType
An enumeration of services currently supported by the client library |
| Field Summary | |
|---|---|
static java.lang.String |
DISCO_QUERY
The urn indicating the default DS Action |
private static java.lang.String |
IDWSF_20_AUTHENTICATION_SERVICE_URN
|
private static java.lang.String |
IDWSF_20_DISCOVERY_SERVICE_URN
|
private static java.lang.String |
IDWSF_20_ID_SIS_DAP_SERVICE_URN
|
private static java.lang.String |
IDWSF_20_PEOPLE_SERVICE_URN
|
private static java.lang.String |
IDWSF_20_PERSONAL_PROFILE_SERVICE_URN
Service Types, used by the WSFService enum |
protected static org.apache.log4j.Logger |
log
|
private java.util.List<RequestedService> |
requestedServices
stores requested services for discovery |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
void |
addARequestedService(RequestedService requestedService)
Allows the ClientLib User to add a requested service to the upcoming request |
static void |
addProviderIDsToRequestedService(java.lang.String[] providerIDs,
RequestedService requestedService)
Utility Method to add ProviderID objects to an existing RequestedService |
static void |
addSecurityMechIDsToRequestedService(java.lang.String[] securityMechIDs,
RequestedService requestedService)
Utility Method to add SecurityMechID objects to an existing RequestedService |
static void |
addServiceTypesToRequestedService(java.lang.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 |
static java.util.List<EndpointReference> |
eprsFromDiscoResponse(WSFMessage message)
Utility method to extract the EndpointReferences from the WSFMessage response. |
java.util.List<EndpointReference> |
invoke()
This method creates a disco request from the specified EndpointReference generating a ServiceRequest for each ServiceType specified |
static RequestedService |
requestedServiceForProviderIDs(java.lang.String[] providerIDs)
Factory method that creates a RequestedService and adds the specified providerIDs |
static RequestedService |
requestedServiceForSecurityMechIDs(java.lang.String[] securityMechIDs)
Factory method that creates a RequestedService and adds the specified SecurityMechIDs |
static RequestedService |
requestedServiceForServiceTypes(java.lang.String[] serviceTypes)
Factory method that creates a RequestedService and add the specified 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 |
| Methods inherited from class org.openliberty.wsc.BaseServiceClient |
|---|
getDiscoveryService, getServiceEndpointReference, getServiceEndpointReferenceStore, isSigningOutgoingMessages, replaceServiceEndpointReference, serviceExplicitlySupportsOption, setDiscoveryService, setServiceEndpointReference, setSigningOutgoingMessages |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.log4j.Logger log
private static final java.lang.String IDWSF_20_PERSONAL_PROFILE_SERVICE_URN
private static final java.lang.String IDWSF_20_PEOPLE_SERVICE_URN
private static final java.lang.String IDWSF_20_AUTHENTICATION_SERVICE_URN
private static final java.lang.String IDWSF_20_DISCOVERY_SERVICE_URN
private static final java.lang.String IDWSF_20_ID_SIS_DAP_SERVICE_URN
public static final java.lang.String DISCO_QUERY
private java.util.List<RequestedService> requestedServices
| Constructor Detail |
|---|
public DiscoveryService(EndpointReference initialEndpointReference)
initialEndpointReference -
public DiscoveryService(DiscoveryService discoveryService,
EndpointReference initialEndpointReference)
| Method Detail |
|---|
public static RequestedService requestedServiceForServiceTypes(java.lang.String[] serviceTypes)
public static void addServiceTypesToRequestedService(java.lang.String[] serviceTypes,
RequestedService requestedService)
requestedService - providerIDs - public static RequestedService requestedServiceForProviderIDs(java.lang.String[] providerIDs)
providerIDs -
public static void addProviderIDsToRequestedService(java.lang.String[] providerIDs,
RequestedService requestedService)
requestedService - providerIDs - public static RequestedService requestedServiceForSecurityMechIDs(java.lang.String[] securityMechIDs)
providerIDs -
public static void addSecurityMechIDsToRequestedService(java.lang.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 java.util.List<EndpointReference> invoke()
epr - serviceTypes -
public static java.util.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 -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||