Package be.ehealth.businessconnector.therlink.service

# Class ServiceFactory

java.lang.Object
be.ehealth.businessconnector.therlink.service.ServiceFactory

public final class ServiceFactory extends Object
A factory for creating `TherLinkService`.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final String`
  `THERLINK_PROTOCOL`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static GenericRequest`
  `getTherLinkPort(SAMLToken token)`
  Gets the therlink port
  `static TherLinkService`
  `getTherLinkService()`
  Gets the therlink service.

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### THERLINK_PROTOCOL

    public static final String THERLINK_PROTOCOL
    See Also:
      - Constant Field Values

- ## Method Details

  - ### getTherLinkPort

    public static GenericRequest getTherLinkPort(SAMLToken token) throws MalformedURLException, TechnicalConnectorException, TherLinkBusinessConnectorException
    Gets the therlink port
    Parameters:
      `token` - the token
    Returns:
      the consultation service
    Throws:
      `MalformedURLException` - the malformed url exception
      `TechnicalConnectorException` - the technical connector exception
      `TherLinkBusinessConnectorException`

  - ### getTherLinkService

    public static TherLinkService getTherLinkService()
    Gets the therlink service. Use this method to put/get/revoke therapeutic links
    Returns:
      the therlink service