public interface FetchEntity<C extends FetchEntity<C>> extends Component<C>
Modifier and Type | Interface and Description |
---|---|
static class |
FetchEntity.EndpointTypes |
Modifier and Type | Method and Description |
---|---|
default C |
addReadEndpoint(Endpoint<?> endpoint)
Adds the
FetchEntity.EndpointTypes.READ endpoint for the component. |
default Optional<Endpoint<?>> |
findReadEndpoint()
Finds the
FetchEntity.EndpointTypes.READ endpoint for this component. |
default Endpoint<?> |
getReadEndpoint()
Retrieves the
FetchEntity.EndpointTypes.READ endpoint for this component. |
default C |
readEndpoint(UnaryOperator<Endpoint<?>> fn)
Configures the
FetchEntity.EndpointTypes.READ endpoint for the component. |
default C |
readScope(String scope)
Configures the
FetchEntity.EndpointTypes.READ endpoint with the given scope. |
default C |
readUrl(String url)
Configures the
FetchEntity.EndpointTypes.READ endpoint with the given url. |
default C |
readUrl(String url,
String scope)
Configures the
FetchEntity.EndpointTypes.READ endpoint with the given url and scope. |
addAction, addAction, addComponent, addEndpoint, addEndpoint, apply, attribute, augmentationKey, classifier, clearConditionals, clearEndpoints, conditional, conditionals, description, description, findAction, findAction, findActions, findAttribute, findComponent, findComponent, findComponents, findEndpoint, findEndpoint, findEndpoints, get, get, getAction, getAction, getActions, getActionsList, getAttribute, getAttribute, getAttributes, getAugmentationKey, getClassifier, getComponent, getComponent, getComponents, getComponentsList, getConditionals, getDescription, getEndpoint, getEndpoint, getEndpoints, getEndpointsList, getId, getLabel, getOrder, getScope, getType, hasAction, hasAttribute, hasComponent, hasEndpoint, id, isAugmentable, isTranslatable, label, label, notTranslatable, order, removeAction, removeAttribute, removeComponent, removeEndpoint, scope, self, setActions, setAttributes, setAugmentationKey, setClassifier, setComponents, setConditionals, setDescription, setEndpoints, setId, setLabel, setOrder, setScope, setTranslatable, setType, translatable, translatable, type
compareTo
default C addReadEndpoint(Endpoint<?> endpoint)
FetchEntity.EndpointTypes.READ
endpoint for the component.endpoint
- the endpointdefault C readEndpoint(UnaryOperator<Endpoint<?>> fn)
FetchEntity.EndpointTypes.READ
endpoint for the component.fn
- the function to configure the endpointdefault C readUrl(String url)
FetchEntity.EndpointTypes.READ
endpoint with the given url.url
- the urldefault C readScope(String scope)
FetchEntity.EndpointTypes.READ
endpoint with the given scope.scope
- the scopedefault C readUrl(String url, String scope)
FetchEntity.EndpointTypes.READ
endpoint with the given url and scope.url
- the urlscope
- the scopedefault Endpoint<?> getReadEndpoint()
FetchEntity.EndpointTypes.READ
endpoint for this component.for null-safe operation
default Optional<Endpoint<?>> findReadEndpoint()
FetchEntity.EndpointTypes.READ
endpoint for this component.Copyright © 2021. All rights reserved.