Class RestEndpointHolderData
java.lang.Object
org.opencastproject.runtimeinfo.rest.RestEndpointHolderData
Represents a group of endpoints.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEndPoint(RestEndpointData endpoint) Add an endpoint to this holder and make sure the endpoints are sorted by their names.protected Objectclone()Returns a copy of this RestEndpointHolderData object.Returns a copy of this RestEndpointHolderData object.Gets the list of endpoints in this endpoint holder.getName()Gets the name of this endpoint holder.getTitle()Gets the title of this endpoint holder.toString()Return a string representation of this RestEndpointHolderData object.
-
Constructor Details
-
RestEndpointHolderData
- Parameters:
name- name of this endpoint holdertitle- title of this endpoint holder (to be shown on the documentation page)- Throws:
IllegalArgumentException- if name is null, name is not alphanumeric or title is null
-
-
Method Details
-
addEndPoint
Add an endpoint to this holder and make sure the endpoints are sorted by their names.- Parameters:
endpoint- an endpoint to be added to this holder
-
toString
Return a string representation of this RestEndpointHolderData object. -
duplicate
Returns a copy of this RestEndpointHolderData object.- Returns:
- a copy of this RestEndpointHolderData object
-
clone
Returns a copy of this RestEndpointHolderData object. -
getName
Gets the name of this endpoint holder.- Returns:
- the name of this endpoint holder
-
getTitle
Gets the title of this endpoint holder.- Returns:
- the title of this endpoint holder
-
getEndpoints
Gets the list of endpoints in this endpoint holder.- Returns:
- the list of endpoints in this endpoint holder
-