Class ServiceInfo
java.lang.Object
com.jk.services.server.commons.models.ServiceInfo
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addEndPoint
(EndPoint endpoint) This method adds an end-point to the list of end-points associated with the service.This method retrieves the list of end-points associated with the service.getName()
This method retrieves the name of the service.getPath()
This method retrieves the path at which the service is accessible.void
setEndPoints
(List<EndPoint> endPoints) This method sets the list of end-points associated with the service to the provided list.void
This method sets the name of the service to the provided value.void
This method sets the path at which the service is accessible to the provided value.
-
Constructor Details
-
ServiceInfo
public ServiceInfo()
-
-
Method Details
-
getName
This method retrieves the name of the service.- Returns:
- the name of the service.
-
setName
This method sets the name of the service to the provided value.- Parameters:
name
- Specifies the new name of the service.
-
getEndPoints
This method retrieves the list of end-points associated with the service.- Returns:
- the list of end-points associated with the service.
-
setEndPoints
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
This method retrieves the path at which the service is accessible.- Returns:
- the path at which the service is accessible.
-
setPath
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
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.
-