GenericCollectionEndpointImpl
constructor(referrer: Endpoint, relativeUri: URI, entityType: Class<TEntity>, elementEndpointFactory: (referrer: Endpoint, relativeUri: URI) -> TElementEndpoint)
Parameters
referrer
The endpoint used to navigate to this one.
relativeUri
The URI of this endpoint relative to the referrer's.
entityType
The type of individual elements in the collection.
elementEndpointFactory
The factory for constructing TElementEndpoints to provide for individual elements.
TEntity
The type of individual elements in the collection.
TElementEndpoint
The type of ElementEndpoint to provide for individual TEntitys.
constructor(referrer: Endpoint, relativeUri: String, entityType: Class<TEntity>, elementEndpointFactory: (referrer: Endpoint, relativeUri: URI) -> TElementEndpoint)
Creates a new element collection endpoint.
Parameters
referrer
The endpoint used to navigate to this one.
relativeUri
The URI of this endpoint relative to the referrer's. Add a ./ prefix here to imply a trailing slash on referrer's URI.
entityType
The type of individual elements in the collection.
elementEndpointFactory
The factory for constructing TElementEndpoints to provide for individual elements.