Class ServiceInfo

java.lang.Object
com.jk.services.server.commons.models.ServiceInfo

public class ServiceInfo extends Object
This class represents information about a service, including its name, path, and a list of end-points.
Version:
1.0
Author:
Dr. Jalal H. Kiswani
  • Constructor Details

    • ServiceInfo

      public ServiceInfo()
  • Method Details

    • getName

      public String getName()
      This method retrieves the name of the service.
      Returns:
      the name of the service.
    • setName

      public void setName(String name)
      This method sets the name of the service to the provided value.
      Parameters:
      name - Specifies the new name of the service.
    • getEndPoints

      public List<EndPoint> getEndPoints()
      This method retrieves the list of end-points associated with the service.
      Returns:
      the list of end-points associated with the service.
    • setEndPoints

      public void setEndPoints(List<EndPoint> endPoints)
      This method sets the list of end-points associated with the service to the provided list.
      Parameters:
      endPoints - Specifies the new list of end-points associated with the service.
    • getPath

      public String getPath()
      This method retrieves the path at which the service is accessible.
      Returns:
      the path at which the service is accessible.
    • setPath

      public void setPath(String path)
      This method sets the path at which the service is accessible to the provided value.
      Parameters:
      path - Specifies the new path at which the service is accessible.
    • addEndPoint

      public void addEndPoint(EndPoint endpoint)
      This method adds an end-point to the list of end-points associated with the service.
      Parameters:
      endpoint - Represents the end-point to be added.