org.openliberty.wsc
Class BaseServiceClient

java.lang.Object
  extended by org.openliberty.wsc.BaseServiceClient
Direct Known Subclasses:
AuthenticationService, DirectoryAccessProtocolService, DiscoveryService, PeopleService, PersonalProfileService

public abstract class BaseServiceClient
extends java.lang.Object


Field Summary
private  DiscoveryService discoveryService
          Holds a reference to the discovery service that provided the epr.
private static org.apache.log4j.Logger log
           
private  java.util.List<EndpointReference> serviceEndpointReferenceStore
          The EndpointReferences that are used to invoke the service.
private  boolean signingOutgoingMessages
          Indicates whether outgoing messages should be signed.
 
Constructor Summary
BaseServiceClient(DiscoveryService discoveryService, EndpointReference initialEndpointReference)
          The base constructor requires a DiscoverService parameter.
 
Method Summary
 DiscoveryService getDiscoveryService()
          Returns the DS Client that was used to get an EPR to the service extending BaseServiceClient
 EndpointReference getServiceEndpointReference()
          Get the ID-WSF 2.0 Endpoint Reference for the Service that will be invoked.
 java.util.List<EndpointReference> getServiceEndpointReferenceStore()
          Returns the full list of stored EPRs
 boolean isSigningOutgoingMessages()
          Indicates whether or not outgoing messages will be signed.
 void replaceServiceEndpointReference(EndpointReference serviceEndPointReference)
          This method clears out the epr chain and sets it to the specified epr
 boolean serviceExplicitlySupportsOption(java.lang.String optionUri)
          Test to see whether the Service has registered support for the specified Service
 void setDiscoveryService(DiscoveryService discoveryService)
          Used to explicitly set the DS
 void setServiceEndpointReference(EndpointReference serviceEndPointReference)
          Set the ID-WSF 2.0 Endpoint Reference for the Service that will be invoked.
 void setSigningOutgoingMessages(boolean signingOutgoingMessages)
          Sets whether outgoing messages should be signed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static org.apache.log4j.Logger log

discoveryService

private DiscoveryService discoveryService
Holds a reference to the discovery service that provided the epr. This is used when a


serviceEndpointReferenceStore

private java.util.List<EndpointReference> serviceEndpointReferenceStore
The EndpointReferences that are used to invoke the service.


signingOutgoingMessages

private boolean signingOutgoingMessages
Indicates whether outgoing messages should be signed.

Constructor Detail

BaseServiceClient

public BaseServiceClient(DiscoveryService discoveryService,
                         EndpointReference initialEndpointReference)
The base constructor requires a DiscoverService parameter. If not null, the DS reference is used when attempting to get a new sech mech if there is a CredentialsContext header specifying appropriate sech mechs

Parameters:
discoveryService -
Method Detail

replaceServiceEndpointReference

public void replaceServiceEndpointReference(EndpointReference serviceEndPointReference)
This method clears out the epr chain and sets it to the specified epr

Parameters:
serviceEndPointReference -

setServiceEndpointReference

public void setServiceEndpointReference(EndpointReference serviceEndPointReference)
Set the ID-WSF 2.0 Endpoint Reference for the Service that will be invoked.

Parameters:
serviceEndPointReference -

getServiceEndpointReference

public EndpointReference getServiceEndpointReference()
Get the ID-WSF 2.0 Endpoint Reference for the Service that will be invoked.

Returns:

getServiceEndpointReferenceStore

public java.util.List<EndpointReference> getServiceEndpointReferenceStore()
Returns the full list of stored EPRs

Returns:

isSigningOutgoingMessages

public boolean isSigningOutgoingMessages()
Indicates whether or not outgoing messages will be signed.

Returns:

setSigningOutgoingMessages

public void setSigningOutgoingMessages(boolean signingOutgoingMessages)
Sets whether outgoing messages should be signed.

Parameters:
signingOutgoingMessages -

serviceExplicitlySupportsOption

public boolean serviceExplicitlySupportsOption(java.lang.String optionUri)
Test to see whether the Service has registered support for the specified Service

Parameters:
optionUri -
Returns:

getDiscoveryService

public DiscoveryService getDiscoveryService()
Returns the DS Client that was used to get an EPR to the service extending BaseServiceClient

Returns:

setDiscoveryService

public void setDiscoveryService(DiscoveryService discoveryService)
Used to explicitly set the DS

Parameters:
discoveryService -